BLOG     |     FORUM
Welcome, Guest
Username: Password: Remember me
Issues related to installation, running, bugs, and features.

TOPIC: Trisul segmentation fault error

Re:Trisul segmentation fault error 12 years 1 month ago #671

Thanks Chris,

Lets nail this today :-)

I uploaded the latest 2.4 build along with a trisul executable with debug symbols.

1. Download the new trisul DEB (version 2.4.1067 ) from trisul.org/download/
2. Uninstall the old one (dpkg -r trisul)
3. Install the new DEB
4. Download the trisul.gz executable file containing the symbols
5. Gunzip the downloaded trisul.gz into /usr/local/bin (you should have a file called /usr/local/bin/trisul )

Now run the same way.

gdb /usr/local/bin/trisul
(gdb) r -nodemon <etc etc>


Now when the segfault happens you can type bt (Backtrace) or where

Also do you see anything funny in /usr/local/var/log/trisul ? Can you send me the latest log file by email to vivek at unleashnetworks dott com ?

Also feel free to contact me directly by mail. I really appreciate all your help with this.
Vivek R
Unleash Networks
Support : www.unleashnetworks.com/forums
The administrator has disabled public write access.

Re:Trisul segmentation fault error 12 years 4 weeks ago #672

  • Chris
  • Chris's Avatar
Hopefully this will be of help:
[New Thread 0x6e7ffb70 (LWP 16234)]
[Thread 0x6e7ffb70 (LWP 16234) exited]
[Thread 0x6ddfdb70 (LWP 16233) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x71cffb70 (LWP 15812)]
0x081bc250 in CDProtData::GetPacketBuffer (this=0x0) at ../../../src/pim/DProtData.h:45
45      ../../../src/pim/DProtData.h: No such file or directory.
        in ../../../src/pim/DProtData.h

(gdb) bt
#0  0x081bc250 in CDProtData::GetPacketBuffer (this=0x0) at ../../../src/pim/DProtData.h:45
#1  0x081bbf7b in CXDatagram::MkSessionKey (this=0x6f1c07c0, bufout=0x71cff07b "", buflen=96) at ../../../src/pim/XDatagram.cpp:446
#2  0x0812445a in CLocalStatsEngine::AddResource (this=0x844d778, ResourceGroupID=..., ResourceName=0x6f2746b4 "ergogroup.no")
    at ../../../src/pcappipe/LocalStatsEngine.cpp:228
#3  0x00714f5e in CPIDNSWatch::Count(ITrisulStatsEngine*, ITrisulProtData*) () from /usr/local/lib/trisul/plugins/libdnswatcher.so
#4  0x081bbc9f in CXDatagram::GenerateCounterUnits (this=0x6f1c07c0, opPICTX=0x844d3f4, pEngine=0x844d778) at ../../../src/pim/XDatagram.cpp:392
#5  0x0811ec3a in trisul::packetpipe::CFilterGCU::operator() (this=0x724a21f4, pin=0x844d3d8) at ../../../src/pcappipe/FilterGCU.cpp:55
#6  0x0013d3b4 in ?? () from /usr/local/lib/trisul/libtbb.so.2
#7  0x0014873f in ?? () from /usr/local/lib/trisul/libtbb.so.2
#8  0x001453e3 in ?? () from /usr/local/lib/trisul/libtbb.so.2
#9  0x00144871 in ?? () from /usr/local/lib/trisul/libtbb.so.2
#10 0x001429fd in ?? () from /usr/local/lib/trisul/libtbb.so.2
#11 0x00142bcd in ?? () from /usr/local/lib/trisul/libtbb.so.2
#12 0x0033496e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#13 0x00584a4e in clone () from /lib/tls/i686/cmov/libc.so.6

(gdb) where
#0  0x081bc250 in CDProtData::GetPacketBuffer (this=0x0) at ../../../src/pim/DProtData.h:45
#1  0x081bbf7b in CXDatagram::MkSessionKey (this=0x6f1c07c0, bufout=0x71cff07b "", buflen=96) at ../../../src/pim/XDatagram.cpp:446
#2  0x0812445a in CLocalStatsEngine::AddResource (this=0x844d778, ResourceGroupID=..., ResourceName=0x6f2746b4 "ergogroup.no")
    at ../../../src/pcappipe/LocalStatsEngine.cpp:228
#3  0x00714f5e in CPIDNSWatch::Count(ITrisulStatsEngine*, ITrisulProtData*) () from /usr/local/lib/trisul/plugins/libdnswatcher.so
#4  0x081bbc9f in CXDatagram::GenerateCounterUnits (this=0x6f1c07c0, opPICTX=0x844d3f4, pEngine=0x844d778) at ../../../src/pim/XDatagram.cpp:392
#5  0x0811ec3a in trisul::packetpipe::CFilterGCU::operator() (this=0x724a21f4, pin=0x844d3d8) at ../../../src/pcappipe/FilterGCU.cpp:55
#6  0x0013d3b4 in ?? () from /usr/local/lib/trisul/libtbb.so.2
#7  0x0014873f in ?? () from /usr/local/lib/trisul/libtbb.so.2
#8  0x001453e3 in ?? () from /usr/local/lib/trisul/libtbb.so.2
#9  0x00144871 in ?? () from /usr/local/lib/trisul/libtbb.so.2
#10 0x001429fd in ?? () from /usr/local/lib/trisul/libtbb.so.2
#11 0x00142bcd in ?? () from /usr/local/lib/trisul/libtbb.so.2
#12 0x0033496e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#13 0x00584a4e in clone () from /lib/tls/i686/cmov/libc.so.6


root@trisul:/usr/local/var/log/trisul# tail -n 20 ns-004.log
Fri Mar 30 14:14:00 2012.926619 DEBUG Oper AG-Thr-Prune-Flush Flow activity in 00h 00m 00s 002244u (0)
Fri Mar 30 14:14:00 2012.929014 DEBUG Oper AG-Thr-Prune-Flush Blacklist activity in 00h 00m 00s 002279u (0)
Fri Mar 30 14:14:00 2012.931206 DEBUG Oper AG-Thr-Prune-Flush External IDS in 00h 00m 00s 002083u (0)
Fri Mar 30 14:14:00 2012.934095 DEBUG Oper RG-Thr-Prune-Flush HTTP URIs in 00h 00m 00s 002773u (0)
Fri Mar 30 14:14:00 2012.982517 DEBUG Oper RG-Thr-Prune-Flush DNS Resources in 00h 00m 00s 048261u (534)
Fri Mar 30 14:14:00 2012.982608 DEBUG Thread 1 processed 14 flush operations
Fri Mar 30 14:14:01 2012.651272 DEBUG Session Group : Flushed 927 flows
Fri Mar 30 14:14:01 2012.651938 DEBUG Oper SG-Thr-Prune-Flush TCP Sessions in 00h 00m 00s 845206u (all=1767,mru=1767,closed=915)
Fri Mar 30 14:14:01 2012.652132 DEBUG Thread 0 processed 8 flush operations
Fri Mar 30 14:14:01 2012.653571 DEBUG Thread finished its work and terminated 0
Fri Mar 30 14:14:01 2012.653660 DEBUG Thread finished its work and terminated 1
Fri Mar 30 14:14:01 2012.654171 INFO  Oper GLOBALFLUSH: in 00h 00m 01s 652014u
Fri Mar 30 14:14:46 2012.001959 DEBUG Pipeline context stats : queuedrop=0,trypush=156379(0%)
Fri Mar 30 14:14:46 2012.002785 DEBUG Pipeline context stats : queuedrop=0,trypush=152430(0%)
Fri Mar 30 14:14:46 2012.003230 DEBUG Pipeline context stats : queuedrop=0,trypush=153327(0%)
Fri Mar 30 14:14:46 2012.004769 DEBUG Pipeline context stats : queuedrop=0,trypush=155133(0%)
Fri Mar 30 14:14:46 2012.006156 DEBUG Pipeline context stats : queuedrop=0,trypush=157781(0%)
Fri Mar 30 14:14:46 2012.006766 DEBUG Pipeline context stats : queuedrop=0,trypush=158185(0%)
Fri Mar 30 14:14:46 2012.007536 DEBUG Pipeline context stats : queuedrop=0,trypush=155158(0%)
Fri Mar 30 14:14:46 2012.008783 DEBUG Pipeline context stats : queuedrop=0,trypush=155650(0%)


root@trisul:/usr/local/var/log/trisul# dmesg | grep trisul
[117491.198607] trisul[26328]: segfault at 14 ip 081a0fc0 sp 71d7b9b0 error 4 in trisul[8048000+323000]


Cheers,

Chris
The administrator has disabled public write access.
Moderators: vivek [unleash]
Time to create page: 0.049 seconds