This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc v5+ generates code that cause segment faults
- From: "Michael J. Fuhrman" <mfuhrman at enetarch dot net>
- Cc: GCC help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 6 Oct 2016 12:28:16 -0700
- Subject: Re: gcc v5+ generates code that cause segment faults
- Authentication-results: sourceware.org; auth=none
- References: <380-220161013011136@M2W160.mail2web.com> <57F22427.8020400@free.fr>
Johann,
gdb cjson
(gdb) run
enetering ... json->addNumber (json, [number], 123)
Program received signal SIGFPE, Arithmetic exception.
0x00007fffffffdcfb in ___ ()
(gdb) disass
No function contains program counter for selected frame.
(gdb)=20
I've tried running gdb to step through the core dump, but this is
alluding me.
Mike,
PS .. I ran this same code through Android's cppDroid, and it ran fine.