http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1011
Summary: Dissectors crash when wireshark is built with -DNDEBUG
Product: Wireshark
Version: 0.99.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Low
Component: Wireshark
AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
ReportedBy: zlynx@xxxxxxx
The exact version is what Gentoo calls wireshark-0.99.2.
The exact system is Gentoo Linux 64-bit (amd64).
I generally compile with -DNDEBUG defined in CFLAGS. After building Wireshark,
it would immediately seg-fault. I knew it had to be me, since none of you
wouldn't release software that didn't work at all. :)
It appears that the code in tools/lemon/lempar.c that does this:
memset(&yygotominor, 0, sizeof(yygotominor));
is needed for more than debugging.
I am not 100% sure, but I think leaving out the memset opens the door for some
kind of bad data in the other NDEBUG section in lempar.c where:
yymsp->minor = yygotominor
I fixed it by removing the NDEBUG ifdefs from the memset. Patch will be
attached.
--
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.