aMule Forum

English => Backtraces => Topic started by: stoatwblr on May 14, 2010, 03:14:30 AM

Title: 10149 crash at startup
Post by: stoatwblr on May 14, 2010, 03:14:30 AM
(this is 10150, but same crash)

Build flags:

./configure --enable-optimize --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-amule-gui --enable-cas --enable-wxcas --enable-alc --enable-alcc --enable-xas --enable-geoip --enable-mmap --enable-fileview --with-zlib --enable-ccache --enable-debug

Local customisations:

gcc/g++ using  -O3 -m64 -mtune=native (not that this should affect the crash)

Ubuntu Lucid, 64bit on AMD CPU

 2010-05-14 02:08:51: SharedFileList.cpp(466): No shareable files found in directory: /media/rips/foobar
 2010-05-14 02:08:51: amuled.cpp(691): amuled: OnInit - starting timer
[New Thread 0x7ffff530a710 (LWP 24703)]
[New Thread 0x7fffebfff710 (LWP 24704)]
[Thread 0x7fffebfff710 (LWP 24704) exited]
[New Thread 0x7fffebfff710 (LWP 24721)]

Program received signal SIGSEGV, Segmentation fault.
CKnownFile::GetPartCount (this=0x0) at KnownFile.h:198
198      inline uint16 GetPartCount() const { return m_iPartCount; }
(gdb) bt
#0  CKnownFile::GetPartCount (this=0x0) at KnownFile.h:198
#1  0x00000000004362f6 in CamuleApp::OnProgressHashing (this=<value optimised out>, evt=<value optimised out>) at amule.cpp:1280
#2  0x00007ffff6538170 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#3  0x00007ffff6539144 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-2.8.so.0
#4  0x00007ffff6539227 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#5  0x00007ffff65385c8 in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_baseu-2.8.so.0
#6  0x00007ffff64aa0f9 in wxAppConsole::ProcessPendingEvents() () from /usr/lib/libwx_baseu-2.8.so.0
#7  0x000000000042efb0 in CamuleDaemonApp::OnRun (this=0xa289a0) at amuled.cpp:666
#8  0x00007ffff64de44c in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
#9  0x000000000042f0f2 in main (argc=1, argv=0xa918b0) at amuled.cpp:175
(gdb)  bt full
#0  CKnownFile::GetPartCount (this=0x0) at KnownFile.h:198
No locals.
#1  0x00000000004362f6 in CamuleApp::OnProgressHashing (this=<value optimised out>, evt=<value optimised out>) at amule.cpp:1280
        owner = 0x0
#2  0x00007ffff6538170 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#3  0x00007ffff6539144 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#4  0x00007ffff6539227 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#5  0x00007ffff65385c8 in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#6  0x00007ffff64aa0f9 in wxAppConsole::ProcessPendingEvents() () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#7  0x000000000042efb0 in CamuleDaemonApp::OnRun (this=0xa289a0) at amuled.cpp:666
        errorBuffer = "\003\000\000\000\000\000\000\000\320\341\377\377\377\177\000\000\032\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000\032\000\000\000\000\000\000\000\064\325O\366\377\177\000\000\320\341\377\377\377\177\000\000hĩ", '\000' <repeats 13 times>, "S\326O\366\377\177\000\000\000\000\000\000\000\000\000\000\320\341\377\377\377\177\000\000\060\026\240\000\000\000\000\000\032\000\000\000\000\000\000\000XP\333\354\377\177\000\000\232\256c\000\000\000\000\000\000\276\251\000\000\000\000\000\211\005C\000\000\000\000\000\000\276\251\000\000\000\000\000\203\217c\000\000\000\000\000XP\333\354\377\177\000\000\240\211\242\000\000\000\000\000\b\316\021\355\377\177\000\000\060\342\377\377\377\177\000\000\240\211\242\000\000\000\000\000 \026\240\000\000\000\000\000\060\342\377\377\377\177\000\000L\336B\000\000\000\000\000\001\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\310\024\334\354\377\177\000\000\350\341M\366\377\177\000"
        msg = {<wxStringBase> = {static npos = 18446744073709551615,
            m_pchData = 0x7fffed11e788 L"CamuleDaemonApp::OnRun(): Installation of SIGCHLD callback with sigaction() succeeded."}, <No data fields>}
        ret = 1
#8  0x00007ffff64de44c in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#9  0x000000000042f0f2 in main (argc=1, argv=0xa918b0) at amuled.cpp:175
No locals.
(gdb) thread apply all bt

Thread 17 (Thread 0x7fffebfff710 (LWP 24721)):
#0  0x00007ffff59fdfb3 in select () from /lib/libc.so.6
#1  0x00007ffff67c9d19 in GSocket::Output_Timeout() () from /usr/lib/libwx_baseu_net-2.8.so.0
#2  0x00007ffff67ca8e3 in GSocket::Connect(GSocketStream) () from /usr/lib/libwx_baseu_net-2.8.so.0
#3  0x00007ffff67c4ed9 in wxSocketClient::DoConnect(wxSockAddress&, wxSockAddress*, bool) () from /usr/lib/libwx_baseu_net-2.8.so.0
#4  0x00007ffff67c066d in wxHTTP::GetInputStream(wxString const&) () from /usr/lib/libwx_baseu_net-2.8.so.0
#5  0x00000000004f55aa in CHTTPDownloadThread::GetInputStream (this=0x7fffec008ce0, url_handler=@0x7fffebff6e18,
    location=<value optimised out>, proxy=false) at HTTPDownload.cpp:381
#6  0x00000000004f6053 in CHTTPDownloadThread::Entry (this=0x7fffec008ce0) at HTTPDownload.cpp:223
#7  0x00007ffff65379a1 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/libwx_baseu-2.8.so.0
#8  0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0
#9  0x00007ffff5a0569d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7ffff530a710 (LWP 24703)):
#0  0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffff6535bb6 in wxConditionInternal::WaitTimeout(unsigned long) () from /usr/lib/libwx_baseu-2.8.so.0
#2  0x00007ffff6536b67 in wxSemaphoreInternal::WaitTimeout(unsigned long) () from /usr/lib/libwx_baseu-2.8.so.0
#3  0x0000000000432d5d in CTimerThread::Entry (this=0x7fffecdb4650) at Timer.cpp:66
#4  0x00007ffff65379a1 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/libwx_baseu-2.8.so.0
#5  0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0
#6  0x00007ffff5a0569d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7fffc3ff5710 (LWP 24697)):
#0  0x00007ffff59a5d8b in memcpy () from /lib/libc.so.6
#1  0x000000000062ac64 in CMemFile::doRead (this=0x7fffc3ff25b0, buffer=0x7fffc3ff3808, count=8192) at /usr/include/bits/string3.h:52
#2  0x000000000062edee in CFileDataIO::Read (this=0x7fffc3ff25b0, buffer=0x7ffff0712208, count=8192) at SafeFile.cpp:77
#3  0x00000000005bef5d in CKnownFile::CreateHashFromInput (input=<value optimised out>, Length=<value optimised out>,
    Output=<value optimised out>, pShaHashOut=<value optimised out>) at KnownFile.cpp:827
#4  0x00000000005bf20f in CKnownFile::CreateHashFromFile (file=..., offset=<value optimised out>, Length=9728000,
    Output=0x7fffc3ff4700, pShaHashOut=0x2758af0) at KnownFile.cpp:800
#5  0x000000000054da6b in CHashingTask::CreateNextPartHash (this=<value optimised out>, file=..., part=<value optimised out>,
    owner=0x7fffec00ca40, toHash=<value optimised out>) at ThreadTasks.cpp:228
#6  0x000000000054e18f in CHashingTask::Entry (this=0x7fffece96a60) at ThreadTasks.cpp:151
#7  0x000000000065436f in CThreadScheduler::Entry (this=0x155f070) at ThreadScheduler.cpp:291
#8  0x00007ffff65379a1 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/libwx_baseu-2.8.so.0
#9  0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0
#10 0x00007ffff5a0569d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7fffc7ff6710 (LWP 24696)):
#0  0x00007ffff7bcf11d in nanosleep () from /lib/libpthread.so.0
#1  0x00007ffff653cbbc in wxMicroSleep(unsigned long) () from /usr/lib/libwx_baseu-2.8.so.0
#2  0x00000000005518b2 in UploadBandwidthThrottler::Entry (this=<value optimised out>) at UploadBandwidthThrottler.cpp:323
#3  0x00007ffff65379a1 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/libwx_baseu-2.8.so.0
#4  0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0
#5  0x00007ffff5a0569d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7fffcfff8710 (LWP 24694)):
#0  0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffff6be265a in ?? () from /usr/lib/libthreadutil.so.2
#2  0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0
#3  0x00007ffff5a0569d in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7fffd3ff9710 (LWP 24693)):
#0  0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffff6be265a in ?? () from /usr/lib/libthreadutil.so.2
#2  0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0
#3  0x00007ffff5a0569d in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7fffd7ffa710 (LWP 24692)):
#0  0x00007ffff59fdfb3 in select () from /lib/libc.so.6
#1  0x00007ffff6def36d in ?? () from /usr/lib/libupnp.so.3
#2  0x00007ffff6be29d9 in ?? () from /usr/lib/libthreadutil.so.2
#3  0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0
#4  0x00007ffff5a0569d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fffdfffc710 (LWP 24690)):
#0  0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffff6be265a in ?? () from /usr/lib/libthreadutil.so.2
#2  0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0
#3  0x00007ffff5a0569d in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fffe3ffd710 (LWP 24689)):
#0  0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffff6be265a in ?? () from /usr/lib/libthreadutil.so.2
#2  0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0
#3  0x00007ffff5a0569d in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fffe7ffe710 (LWP 24688)):
#0  0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffff6be34c6 in ?? () from /usr/lib/libthreadutil.so.2
#2  0x00007ffff6be29d9 in ?? () from /usr/lib/libthreadutil.so.2
#3  0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0
#4  0x00007ffff5a0569d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffff7fcd720 (LWP 24663)):
#0  CKnownFile::GetPartCount (this=0x0) at KnownFile.h:198
#1  0x00000000004362f6 in CamuleApp::OnProgressHashing (this=<value optimised out>, evt=<value optimised out>) at amule.cpp:1280
#2  0x00007ffff6538170 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#3  0x00007ffff6539144 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-2.8.so.0
#4  0x00007ffff6539227 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#5  0x00007ffff65385c8 in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_baseu-2.8.so.0
#6  0x00007ffff64aa0f9 in wxAppConsole::ProcessPendingEvents() () from /usr/lib/libwx_baseu-2.8.so.0
#7  0x000000000042efb0 in CamuleDaemonApp::OnRun (this=0xa289a0) at amuled.cpp:666
#8  0x00007ffff64de44c in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
#9  0x000000000042f0f2 in main (argc=1, argv=0xa918b0) at amuled.cpp:175
(gdb)

Title: Re: 10149 crash at startup
Post by: ^marcell^ on May 14, 2010, 07:36:30 AM
There's a null pointer bug that occurs when you add a new shared file. The patch that introduced it will be reverted soon.
Title: Re: 10149 crash at startup
Post by: Stu Redman on May 14, 2010, 02:41:31 PM
See here (http://forum.amule.org/index.php?topic=17849.msg97591#msg97591).