Here is the output. It still fails. So I am not supposed to use valgrind when I use boehm gc?
$ valgrind --tool=none ./main.l.exe <<EOF 1a23b 10.8 456c EOF ==47141== Nulgrind, the minimal Valgrind tool ==47141== Copyright (C) 2002-2017, and GNU GPL'd, by Nicholas Nethercote. ==47141== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info ==47141== Command: ./main.l.exe ==47141== ==47141== ==47141== Process terminating with default action of signal 11 (SIGSEGV) ==47141== Access not within mapped region at address 0x18 ==47141== at 0x1006B55BA: _pthread_body (in /usr/lib/system/libsystem_pthread.dylib) ==47141== by 0x1006B550C: _pthread_start (in /usr/lib/system/libsystem_pthread.dylib) ==47141== by 0x1006B4BF8: thread_start (in /usr/lib/system/libsystem_pthread.dylib) ==47141== If you believe this happened as a result of a stack ==47141== overflow in your program's main thread (unlikely but ==47141== possible), you can try to increase the size of the ==47141== main thread stack using the --main-stacksize= flag. ==47141== The main thread stack size used in this run was 8388608. ==47141== Segmentation fault: 11 > You might first try with --tool=none to see if the basis of valgrind+boehm > gc works. -- Regards, Peng _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users