Xplico.org
http://forum.xplico.org/

Bug in 0.7.1 Source ?
http://forum.xplico.org/viewtopic.php?f=4&t=502
Page 1 of 1

Author:  ipfrag [ Thu Feb 23, 2012 10:39 pm ]
Post subject:  Bug in 0.7.1 Source ?

I occasionally get this seg fault with Xplico. This occurs when only the default dissectors are used. Not sure if you ever see this error in your testing... it could be something that I screwed up in the source code - but I didn't modify much outside of my dissector module.

Code:
Program received signal SIGSEGV, Segmentation fault.
0x0805a32f in ProtSearchDissec (pkt=0x868be98, prot_id=0xbfffd0e0)
    at prot.c:654
654                       while (flame_stk != NULL && flame_stk->flow == FALSE) {
(gdb) bt
#0  0x0805a32f in ProtSearchDissec (pkt=0x868be98, prot_id=0xbfffd0e0)
    at prot.c:654
#1  0x0805b05d in ProtDissec (prot_id=0, pkt=0x868be98) at prot.c:928
#2  0x002e2e51 in PcapDissector (user=0xbfffd1ec "\001", h=0xbfffd14c,
    bytes=0x86768c0 "") at pcap.c:131
#3  0x002ff027 in ?? () from /usr/lib/i386-linux-gnu/libpcap.so.0.8
#4  0x002f061f in pcap_loop () from /usr/lib/i386-linux-gnu/libpcap.so.0.8
#5  0x002e3487 in CaptDisMain (argc=5, argv=0xbffff744) at pcap.c:302
#6  0x08063130 in CapMain (argc=5, argv=0xbffff744) at capture.c:162
#7  0x0804e39a in main (argc=5, argv=0xbffff744) at xplico.c:383
(gdb)

Author:  ipfrag [ Thu Feb 23, 2012 10:43 pm ]
Post subject:  Re: Bug in 0.7.1 Source ?

It seems to be a race condition... it doesn't occur all of the time. It seems to occur less when I install Xplico without using the GeoLiteCity.dat file.

Author:  gianluca.costa [ Fri Feb 24, 2012 8:49 am ]
Post subject:  Re: Bug in 0.7.1 Source ?

Hi,
with the same pcap the fault sometime comes and sometime not?
Ciao.
Gianluca

Author:  ipfrag [ Fri Feb 24, 2012 8:41 pm ]
Post subject:  Re: Bug in 0.7.1 Source ?

Yes. But doing the following change stopped the error from occurring:

Changing
Code:
#define XP_MEM_DEBUG              0

To
Code:
#define XP_MEM_DEBUG              1

Author:  gianluca.costa [ Sat Feb 25, 2012 7:26 am ]
Post subject:  Re: Bug in 0.7.1 Source ?

Well,
we know the bug and we fixed it.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/