aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: SIGSEV Segmentation fault/ high ip_conntrack/ zombie processes  (Read 2028 times)

Ralf1108

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
SIGSEV Segmentation fault/ high ip_conntrack/ zombie processes
« on: December 28, 2004, 02:20:47 PM »

Hi,

my aMule was running almost 15 hours, then it crashed. But I don't get the message "OOps .. aMule crashed".

My aMule version :
"This is aMule 2.0.0rc8 using wxGTK2 v2.5.3 (Unicoded) (based on eMule)"
Compiled with : ./configure --enable-debug --disable-optimise

Running on :
Duron 800, 256MB,  DSL 1000, Debian (testing),  Linux Kernel 2.6.10


I got this in gdb :


----------------------------------------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1226075360 (LWP 1071)]
0x08146876 in CUpDownClient::GetRequestFile (this=0x0) at updownclient.h:336
336             CPartFile*      GetRequestFile() const { return m_reqfile; }
----------------------------------------------------------------------------------------------


(gdb) bt
#0  0x08146876 in CUpDownClient::GetRequestFile (this=0x0)
    at updownclient.h:336
#1  0x0814170e in CClientReqSocket::ProcessExtPacket (this=0xeeb4440,
    packet=0xf0e2b08 "\207§¾·\231P\210n©/\\E\221.r4", size=10443,
    opcode=64 '@') at ListenSocket.cpp:1623
#2  0x0814437a in CClientReqSocket::PacketReceived (this=0xeeb4440,
    packet=0xef2fe38) at ListenSocket.cpp:2069
#3  0x08149869 in CEMSocket::OnReceive (this=0xeeb4440, nErrorCode=0)
    at EMSocket.cpp:261
#4  0x0814445d in CClientReqSocket::OnReceive (this=0xeeb4440, nErrorCode=0)
    at ListenSocket.cpp:2087
#5  0x08149934 in CEMSocket::SetDownloadLimit (this=0xeeb4440, limit=461)
    at EMSocket.cpp:286
#6  0x0815bfde in CUpDownClient::SetDownloadLimit (this=0xee3b5e0, limit=461)
    at BaseClient.cpp:2087
#7  0x0824d33f in CPartFile::Process (this=0xb37f480, reducedownload=110,
    m_icounter=2 '\002') at PartFile.cpp:1609
#8  0x0819ee82 in CDownloadQueue::Process (this=0x8ce4f98)
    at DownloadQueue.cpp:378
#9  0x082cf086 in CamuleApp::OnCoreTimer (this=0x86199c0) at amule.cpp:1378
#10 0xb79aed78 in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.5.so.3
#11 0xb7a5c850 in wxEvtHandler::ProcessEventIfMatches ()
---Type to continue, or q to quit---
   from /usr/lib/libwx_baseu-2.5.so.3
#12 0xb7a5bccf in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.5.so.3
#13 0xb7a5c9f0 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.5.so.3
#14 0xb7d4737a in wxTimerBase::Notify ()
   from /usr/lib/libwx_gtk2u_core-2.5.so.3
#15 0xb7c35cdd in timeout_callback () from /usr/lib/libwx_gtk2u_core-2.5.so.3
#16 0xb737c67c in g_main_context_wakeup () from /usr/lib/libglib-2.0.so.0
#17 0xb7379c02 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#18 0xb737acf8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0xb737b030 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#20 0xb737b673 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#21 0xb76194e3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#22 0xb7c2c208 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.5.so.3
#23 0xb7cbd233 in wxAppBase::MainLoop ()
   from /usr/lib/libwx_gtk2u_core-2.5.so.3
#24 0xb7cbd39a in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.5.so.3
#25 0xb79f2a63 in wxEntry () from /usr/lib/libwx_baseu-2.5.so.3
#26 0xb79f2b3d in wxEntry () from /usr/lib/libwx_baseu-2.5.so.3
#27 0x082d1d24 in main (argc=1, argv=0xbffffa44) at amule-gui.cpp:161
(gdb)

----------------------------------------------------------------------------------------------

bt full



#0  0x08146876 in CUpDownClient::GetRequestFile (this=0x0)
    at updownclient.h:336
No locals.
#1  0x0814170e in CClientReqSocket::ProcessExtPacket (this=0xeeb4440,
    packet=0xf0e2b08 "\207§¾·\231P\210n©/\\E\221.r4", size=10443,
    opcode=64 '@') at ListenSocket.cpp:1623
No locals.
#2  0x0814437a in CClientReqSocket::PacketReceived (this=0xeeb4440,
    packet=0xef2fe38) at ListenSocket.cpp:2069
        bResult = 8
        uRawSize = 10443
#3  0x08149869 in CEMSocket::OnReceive (this=0xeeb4440, nErrorCode=0)
    at EMSocket.cpp:261
        bPacketResult = 189
        toCopy = 287
        GlobalReadBuffer = "¬Z\227ëíÚ]\030f¤f)þ1¨køn\214$\237\004\200¶\234u\021Ø#i3\b\202!®\203\024½\200u°\020~3ëë\vÚÁ°\027v§Q²W>×Ô\024\016ä±¶\223;¤\217\021\n³\003öë(\216º;ëGÍ@î\233roKCb6\035\222\215Õ±6¬\235/\021ÃMµdýÒ\233|cvõÖGæ\227¼\236\207í¤¨\020\226RâoÃ:I\024Å\226C\032\rù¼\222G \004ÙH\aÈ\214l¿;¬± \2029Ä7\235\235\203ݯ\204[(Bn·,¶LØ\võص¾Ð\025ë\033-'è*E\020\005_Â\034¾f\006a>ú\203Yúù"...
        readMax = 461
        ret = 461
        rptr = 0x83f1f7f "Å`)"
---Type to continue, or q to quit---
        rend = 0x83f202d "¡´¼g\201\204ä\235A[¤±ã\030ÃbϾ½\024ÃjÃ\nvUoÛJ\235\025\023Ý\231\213À¡\f&¿\037&\235m\024EE\231\217àmÑÐ\204\225ãDÉè\aÍ3\220\rHµùõ\206¡\215r'\211\220,k\036­\037Ç\f@ÐF\aÃ\\!5dE6ºÔ\215¾SOÁß\v\005\036°ø±÷47Òp\023Ý<.hS1#4  0x0814445d in CClientReqSocket::OnReceive (this=0xeeb4440, nErrorCode=0)
    at ListenSocket.cpp:2087
No locals.
#5  0x08149934 in CEMSocket::SetDownloadLimit (this=0xeeb4440, limit=461)
    at EMSocket.cpp:286
No locals.
#6  0x0815bfde in CUpDownClient::SetDownloadLimit (this=0xee3b5e0, limit=461)
    at BaseClient.cpp:2087
No locals.
#7  0x0824d33f in CPartFile::Process (this=0xb37f480, reducedownload=110,
    m_icounter=2 '\002') at PartFile.cpp:1609
        limit = 461
        kBpsClient = 4.19156933
        cur_src = (CUpDownClient *) 0xee3b5e0
        it = { = {
    _M_node = 0xb5af3328}, }
        old_trans = 1
        dwCurTick = 409638430
---Type to continue, or q to quit---
#8  0x0819ee82 in CDownloadQueue::Process (this=0x8ce4f98)
    at DownloadQueue.cpp:378
        cur_file = (class CPartFile *) 0xb37f480
        i = 31
        size = 104
        downspeed = 110
#9  0x082cf086 in CamuleApp::OnCoreTimer (this=0x86199c0) at amule.cpp:1378
        msPrev1 = 48414642
        msPrev5 = 48411051
        msPrevSave = 48410052
        msCur = 48415243
#10 0xb79aed78 in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.5.so.3
No symbol table info available.
#11 0xb7a5c850 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.5.so.3
No symbol table info available.
#12 0xb7a5bccf in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.5.so.3
No symbol table info available.
#13 0xb7a5c9f0 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.5.so.3
No symbol table info available.
---Type to continue, or q to quit---
#14 0xb7d4737a in wxTimerBase::Notify ()
   from /usr/lib/libwx_gtk2u_core-2.5.so.3
No symbol table info available.
#15 0xb7c35cdd in timeout_callback () from /usr/lib/libwx_gtk2u_core-2.5.so.3
No symbol table info available.
#16 0xb737c67c in g_main_context_wakeup () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#17 0xb7379c02 in g_main_depth () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#18 0xb737acf8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#19 0xb737b030 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#20 0xb737b673 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#21 0xb76194e3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#22 0xb7c2c208 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.5.so.3
No symbol table info available.
#23 0xb7cbd233 in wxAppBase::MainLoop ()
   from /usr/lib/libwx_gtk2u_core-2.5.so.3
No symbol table info available.
#24 0xb7cbd39a in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.5.so.3
---Type to continue, or q to quit---
No symbol table info available.
#25 0xb79f2a63 in wxEntry () from /usr/lib/libwx_baseu-2.5.so.3
No symbol table info available.
#26 0xb79f2b3d in wxEntry () from /usr/lib/libwx_baseu-2.5.so.3
No symbol table info available.
#27 0x082d1d24 in main (argc=1, argv=0xbffffa44) at amule-gui.cpp:161
No locals.
(gdb)
----------------------------------------------------------------------------------------------


Any ideas ? Hope this backtraces helps....



Another question. I get many messages like :

[New Thread -1228596304 (LWP 13246)]
[Thread -1228596304 (zombie) exited]
[New Thread -1228596304 (LWP 13248)]
[Thread -1228596304 (zombie) exited]
[New Thread -1228596304 (LWP 13249)]
[Thread -1228596304 (zombie) exited]
[New Thread -1228596304 (LWP 13250)]
[Thread -1228596304 (zombie) exited]
[New Thread -1228596304 (LWP 13251)]
[Thread -1228596304 (zombie) exited]
[New Thread -1228596304 (LWP 13252)]
......


Is this normal ?



And another info. I made a history of the entries in my ip_conntrack list which rises very fast if aMule is running (started Mo Dez 27 18:26:00 CET 2004):
cat /proc/net/ip_conntrack | wc -l
The numbers between the time stamps are shots every 5 minutes.


Mo Dez 27 18:30:02 CET 2004
313
209
305
203
494
608
499
Mo Dez 27 19:00:01 CET 2004
704
502
461
364
679
550
Mo Dez 27 19:30:01 CET 2004
537
271
239
416
607
560
Mo Dez 27 20:00:01 CET 2004
545
477
615
573
601
811
Mo Dez 27 20:30:01 CET 2004
682
539
638
385
301
330
Mo Dez 27 21:00:01 CET 2004
295
266
370
425
474
503
Mo Dez 27 21:30:02 CET 2004
706
575
631
849
879
874
Mo Dez 27 22:00:01 CET 2004
998
1396
1618
2406
2388
2265
Mo Dez 27 22:30:02 CET 2004
2285
2432
2339
2705
3006
3607
Mo Dez 27 23:00:02 CET 2004
4000
4248
4423
4523
4355
4498
Mo Dez 27 23:30:01 CET 2004
4278
4326
4465
4705
4444
4308
Di Dez 28 00:00:01 CET 2004
4304
4471
4433
4398
4614
Di Dez 28 00:30:01 CET 2004
4568
4732
4477
4757
4573
4806
4729
Di Dez 28 01:00:02 CET 2004
4681
5118
5039
4999
5237
5230
Di Dez 28 01:30:02 CET 2004
5071
4836
5313
5393
5143
5242
Di Dez 28 02:00:02 CET 2004
5111
5285
5335
5102
5354
Di Dez 28 02:30:01 CET 2004
5297
5635
5301
5881
5911
5594
Di Dez 28 03:00:01 CET 2004
5443
5433
5401
5550
5454
5134
5158
Di Dez 28 03:30:02 CET 2004
5237
5040
5308
5236
5013
Di Dez 28 04:00:01 CET 2004
4964
5201
5118
5013
5041
5051
Di Dez 28 04:30:01 CET 2004
4910
4982
5013
5106
5046
5253
Di Dez 28 05:00:01 CET 2004
5136
5074
5447
5496
5347
5310
5590
Di Dez 28 05:30:01 CET 2004
5467
5736
5376
5280
5537
Di Dez 28 06:00:01 CET 2004
5452
5445
5353
5368
5313
5185
Di Dez 28 06:30:01 CET 2004
5078
5140
5228
5294
5167
5326
5318
Di Dez 28 07:00:01 CET 2004
5477
5321
5317
5245
5400
5483
Di Dez 28 07:30:02 CET 2004
5306
5266
4602
4071
4074
4082
Di Dez 28 08:00:02 CET 2004
4096
4096
4088
4065
4073
Di Dez 28 08:30:01 CET 2004
4055
4142
4121
4052
4033
4017
Di Dez 28 09:00:01 CET 2004
4017
4021
4020
4065
4034
4048
4122
Di Dez 28 09:30:01 CET 2004
4052
4058
4042
4041
4064
4064
Di Dez 28 10:00:01 CET 2004
4048
4058
4060
4055
4056
Di Dez 28 10:30:01 CET 2004
4054
4061
4065
4066
4064
4063
Di Dez 28 11:00:01 CET 2004
4068
4067
4081
4079
4087
4076
Di Dez 28 11:30:01 CET 2004
4082
4089
4080
4094
4083
4097
Di Dez 28 12:00:01 CET 2004
4084
4093
4095
4089
4098
4102
Di Dez 28 12:30:01 CET 2004
4105
4110
4113
4122
4121
4119
Di Dez 28 13:00:01 CET 2004
4129
4132
4138
4124
4132
4130
Di Dez 28 13:30:01 CET 2004
4137
4148
4133
4152
4151
4145
Di Dez 28 14:00:01 CET 2004
4145
4162
4241
4183
4175




aMule 2.0.0rc7 was running very stable (10+ days) and my ip_conntrack had a max at 2000.
No other software is running on the aMule PC except routing functions for other PCs and Samba.
The PC is directly connected to the internet.


If other information is needed,  tell me.


Ralf1108
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: SIGSEV Segmentation fault/ high ip_conntrack/ zombie processes
« Reply #1 on: December 28, 2004, 05:24:37 PM »

Ralf1108,

Thanks for your report, should be fixed now in CVS.

Cheers!
Logged