Help with segfault - Programming On Unix

Users browsing this thread: 2 Guest(s)
z3bra
Grey Hair Nixers
Your issue is not a direct call to strlen(3), it an internal function of the libc called strlen.S which seems to fail. This is the kind of things that happen when you pass a NULL pointer to a function in string.h (eg. strdup(3).

I ran it on my computer and don't get any warning at compilation, and couldn't get it to segfault though. We'll need the full trace of your runs here.


Messages In This Thread
Help with segfault - by robotchaos - 27-07-2017, 06:57 PM
RE: Help with segfault - by xcko - 28-07-2017, 12:12 AM
RE: Help with segfault - by z3bra - 28-07-2017, 03:22 AM
RE: Help with segfault - by robotchaos - 28-07-2017, 01:02 PM
RE: Help with segfault - by z3bra - 28-07-2017, 01:25 PM
RE: Help with segfault - by pranomostro - 28-07-2017, 03:37 PM
RE: Help with segfault - by robotchaos - 28-07-2017, 05:00 PM
RE: Help with segfault - by z3bra - 28-07-2017, 05:52 PM
RE: Help with segfault - by robotchaos - 28-07-2017, 06:39 PM