https://issues.dlang.org/show_bug.cgi?id=23654

--- Comment #7 from kdevel <kde...@vogtner.de> ---
Created attachment 1888
  --> https://issues.dlang.org/attachment.cgi?id=1888&action=edit
D-Program execv-recur.d demonstrating the memory corruption

//
// execv-recur.d
// 2023-08-29 stvo
// 
// disable the GC with
//
//    DRT_GCOPT=disable:1 ./execv-recur 1
//
// this program then expectedly reports
//
//    rc = <-1> errno = <7> strerror = <Argument list too long>
//
// If run with enabled GC
//
//    ./execv-recur 1
//
// the memory gets corrupted and the program reports
//
//    object.Exception@execv-recur.d(49): exp <4> actual <131072>
//

--

Reply via email to