aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amuled crash on start  (Read 2439 times)

radl33t

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
amuled crash on start
« on: August 15, 2005, 02:04:00 AM »

I've been running amuled for a week or so and controlling it via amuleweb on fedora core 4.
It crashed earlier today and crashes when I start amuled or amule.

Backtrace:
Code: [Select]
(gdb) bt
#0  0x00759eff in puts () from /lib/libc.so.6
#1  0x080f2fd7 in CLogger::AddDebugLogLine ()
#2  0x08075ec8 in CFile::Open ()
#3  0x08076042 in CFile::CFile ()
#4  0x080760b0 in UTF8_CopyFile ()
#5  0x0810b21b in completingThread::Entry ()
#6  0x0067b19d in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_baseu-2.6.so.0
#7  0x0067b20b in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#8  0x00c3eb80 in start_thread () from /lib/libpthread.so.0
#9  0x007cddee in clone () from /lib/libc.so.6
(gdb) bt full
#0  0x00759eff in puts () from /lib/libc.so.6
No symbol table info available.
#1  0x080f2fd7 in CLogger::AddDebugLogLine ()
No symbol table info available.
#2  0x08075ec8 in CFile::Open ()
No symbol table info available.
#3  0x08076042 in CFile::CFile ()
No symbol table info available.
#4  0x080760b0 in UTF8_CopyFile ()
No symbol table info available.
#5  0x0810b21b in completingThread::Entry ()
No symbol table info available.
#6  0x0067b19d in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#7  0x0067b20b in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#8  0x00c3eb80 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#9  0x007cddee in clone () from /lib/libc.so.6
No symbol table info available.
(gdb) thread apply all bt

Thread 5 (Thread -1221760080 (LWP 5060)):
#0  0x00759eff in puts () from /lib/libc.so.6
#1  0x080f2fd7 in CLogger::AddDebugLogLine ()
#2  0x08075ec8 in CFile::Open ()
#3  0x08076042 in CFile::CFile ()
#4  0x080760b0 in UTF8_CopyFile ()
#5  0x0810b21b in completingThread::Entry ()
#6  0x0067b19d in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_baseu-2.6.so.0
#7  0x0067b20b in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#8  0x00c3eb80 in start_thread () from /lib/libpthread.so.0
#9  0x007cddee in clone () from /lib/libc.so.6

Thread 4 (Thread -1211270224 (LWP 5059)):
#0  0x00afd402 in __kernel_vsyscall ()
#1  0x00c438f6 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0067f48a in wxMicroSleep () from /usr/lib/libwx_baseu-2.6.so.0
#3  0x0067f4bc in wxMilliSleep () from /usr/lib/libwx_baseu-2.6.so.0
#4  0x0067921b in wxThread::Sleep () from /usr/lib/libwx_baseu-2.6.so.0
#5  0x08169447 in CTimer::CTimerThread::Entry ()
#6  0x0067b19d in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_baseu-2.6.so.0
---Type to continue, or q to quit---
#7  0x0067b20b in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#8  0x00c3eb80 in start_thread () from /lib/libpthread.so.0
#9  0x007cddee in clone () from /lib/libc.so.6

Thread 1 (Thread -1209133376 (LWP 5053)):
#0  0x00afd402 in __kernel_vsyscall ()
#1  0x00c4373f in __fsync_nocancel () from /lib/libpthread.so.0
#2  0x08075783 in CFile::Flush ()
#3  0x080e4097 in CKnownFileList::Save ()
#4  0x08058778 in CamuleApp::OnHashingShutdown ()
#5  0x005facec in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#6  0x0067bfa5 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.6.so.0
#7  0x0067c165 in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#8  0x0067c315 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#9  0x0067c8d9 in wxEvtHandler::ProcessPendingEvents ()
   from /usr/lib/libwx_baseu-2.6.so.0
#10 0x005fafc0 in wxAppConsole::ProcessPendingEvents ()
   from /usr/lib/libwx_baseu-2.6.so.0
#11 0x08067a31 in CamuleDaemonApp::OnRun ()
---Type to continue, or q to quit---
#12 0x0062b573 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#13 0x0062b615 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#14 0x08066ad8 in main ()
(gdb)
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: amuled crash on start
« Reply #1 on: August 15, 2005, 09:38:04 PM »

It appears the problem is that there's a part file that is completing (fully downloaded and being copied to its final destination) but the attempt to open the part file or create the destination file fails for some reason.

When aMule attempts to write a log message informing you of this, it tries to convert the filename from Unicode to ISO8859-1, but that conversion fails because the filename has characters which can't be represented in ISO8859-1.  But aMule doesn't detect that conversion failure and attempts to use the result anyway, and crashes.

As a temporary workaround, if you know what part file is completing, you can move it to its destination manually and move its associated .part.met* files out of your Temp directory.  If you don't know which it is, you might have to do a binary search.  Move half of the files out of the Temp directory, try aMule.  If it crashes, then the bad file is one of the ones you left in; if it doesn't crash, then the bad file is one of the ones you moved out.  Keep cutting the candidate pool by half until you find the bad one.  It's not pretty, but it works.  :)

In the meantime, we'll fix the crash.
Logged

radl33t

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: amuled crash on start
« Reply #2 on: August 15, 2005, 11:19:10 PM »

Nice. This is now working. I went from 90 files to the offending batch in only 5 attempts. Removing the 043.xx files removed it from the download screen so it will not offend in the future? Just curious, is there a way to aquire this file? (it seems I have 314/470 pages of the pdf)
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: amuled crash on start
« Reply #3 on: August 16, 2005, 04:19:12 PM »

You should be able to download the file.  The problem is most likely that the filename couldn't be represented by your filesystem.  What filesystem is your Incoming directory?

In any case, while it is in the download list: right-click, choose File Details, edit the filename to something compatible with your filesystem, press the Rename button, and close the dialog.  Then, when it completes at a later time, there won't be an error.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amuled crash on start
« Reply #4 on: August 16, 2005, 06:42:58 PM »

Or just press F2 instead of right-click blabalbla :P
Logged