View unanswered posts | View active topics It is currently Wed May 24, 2017 1:32 pm



Post new topic Reply to topic  [ 5 posts ] 
 Bug in 0.7.1 Source ? 
Author Message

Joined: Thu Feb 02, 2012 3:25 pm
Posts: 26
Reply with quote
Post 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)


Thu Feb 23, 2012 10:39 pm
Profile

Joined: Thu Feb 02, 2012 3:25 pm
Posts: 26
Reply with quote
Post 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.


Thu Feb 23, 2012 10:43 pm
Profile
Site Admin

Joined: Wed Sep 16, 2009 10:09 pm
Posts: 390
Reply with quote
Post Re: Bug in 0.7.1 Source ?
Hi,
with the same pcap the fault sometime comes and sometime not?
Ciao.
Gianluca


Fri Feb 24, 2012 8:49 am
Profile WWW

Joined: Thu Feb 02, 2012 3:25 pm
Posts: 26
Reply with quote
Post 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


Fri Feb 24, 2012 8:41 pm
Profile
Site Admin

Joined: Wed Sep 16, 2009 10:09 pm
Posts: 390
Reply with quote
Post Re: Bug in 0.7.1 Source ?
Well,
we know the bug and we fixed it.


Sat Feb 25, 2012 7:26 am
Profile WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.