aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: crash with linux linebreak in EL.  (Read 3729 times)

Vae Victis

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
crash with linux linebreak in EL.
« on: November 30, 2003, 08:28:31 PM »

Version: aMule 1.1.2

When adding ed2k urls in ED2KLinks (EL) in linux, amule crashes when there is an empty line.
If I edit EL in notepad (windows) amule doesn't crash when I leave an empty line.
Looks like amule doesn't like linux linebreaks.
Normally it would just put a comment in config.log, saying it isn't a correct ed2k url.

Second problem.
amule doesn't delete the EL file so next time it starts, it crashes again.
You'll have to manually delete EL or remove the linebreak.

Exit message in dbg.
[code:1]
Program received signal SIGABRT, Aborted.
[Switching to Thread 16384 (LWP 24231)]
0x405eac31 in kill () from /lib/libc.so.6
Current language:  auto; currently c
[/code:1]
bt
[code:1]
#0  0x405eac31 in kill () from /lib/libc.so.6
#1  0x4057881d in pthread_kill () from /lib/libpthread.so.0
#2  0x40578b9b in raise () from /lib/libpthread.so.0
#3  0x405ec17c in abort () from /lib/libc.so.6
#4  0x4051d0d7 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#5  0x4051d124 in std::terminate() () from /usr/lib/libstdc++.so.5
#6  0x4051d2a6 in __cxa_throw () from /usr/lib/libstdc++.so.5
#7  0x080ec6ab in CED2KLink::CreateLinkFromUrl(char const*) (uri=0x8840664 >/>)
    at ED2KLink.cpp:363
#8  0x080ea229 in CDownloadQueue::AddLinksFromFile() (this=0x876bd08) at Downloa
#9  0x080e8be4 in CDownloadQueue::Process() (this=0x876bd08) at DownloadQueue.cp
#10 0x081e2439 in TimerProc() () at UploadQueue.cpp:577
#11 0x0820d917 in CamuleDlg::OnUQTimer(wxTimerEvent&) (this=0x85258f0, evt=@0xbf
    at amuleDlg.cpp:286
#12 0x402a8756 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) ()
   from /usr/local/lib/libwx_gtk-2.4.so
#13 0x402a8583 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/local/lib/li
#14 0x40331f33 in wxTimerBase::Notify() () from /usr/local/lib/libwx_gtk-2.4.so
#15 0x40265cfa in timeout_callback () from /usr/local/lib/libwx_gtk-2.4.so
#16 0x40854cfc in g_main_set_poll_func () from /usr/lib/libglib-1.2.so.0
#17 0x40853e75 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#18 0x4085432c in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#19 0x4085455c in g_main_run () from /usr/lib/libglib-1.2.so.0
#20 0x40781083 in gtk_main () from /usr/lib/libgtk-1.2.so.0
#21 0x402226f6 in wxApp::MainLoop() () from /usr/local/lib/libwx_gtk-2.4.so
#22 0x40273534 in wxAppBase::OnRun() () from /usr/local/lib/libwx_gtk-2.4.so
#23 0x40222da5 in wxEntry(int, char**) () from /usr/local/lib/libwx_gtk-2.4.so
#24 0x0820849c in main (argc=1, argv=0xbffff414) at amule.cpp:43
#25 0x405d6bb4 in __libc_start_main () from /lib/libc.so.6
[/code:1]
bt full
[code:1]
#0  0x405eac31 in kill () from /lib/libc.so.6
No symbol table info available.
#1  0x4057881d in pthread_kill () from /lib/libpthread.so.0
No symbol table info available.
#2  0x40578b9b in raise () from /lib/libpthread.so.0
No symbol table info available.
#3  0x405ec17c in abort () from /lib/libc.so.6
No symbol table info available.
#4  0x4051d0d7 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
No symbol table info available.
#5  0x4051d124 in std::terminate() () from /usr/lib/libstdc++.so.5
No symbol table info available.
#6  0x4051d2a6 in __cxa_throw () from /usr/lib/libstdc++.so.5
No symbol table info available.
#7  0x080ec6ab in CED2KLink::CreateLinkFromUrl(char const*) (uri=0x8840664 >/>)
    at ED2KLink.cpp:363
        pChArray = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}
        pNewString = (TCHAR *) 0x88420e8 >/>
        liberator = {m_p = 0x88420e8 >/>}
        pCh = (TCHAR *) 0x0
        pStart = (const TCHAR *) 0x88420e8 >/>
        idx = 0
#8  0x080ea229 in CDownloadQueue::AddLinksFromFile() (this=0x876bd08) at DownloadQueue.cpp:671
        pLink = (class CED2KLink *) 0xbfffee98
        i = 0
        filename =
        link =
        linksfile =
#9  0x080e8be4 in CDownloadQueue::Process() (this=0x876bd08) at DownloadQueue.cpp:315
        filename =
        downspeed = 0
#10 0x081e2439 in TimerProc() () at UploadQueue.cpp:577
No locals.
#11 0x0820d917 in CamuleDlg::OnUQTimer(wxTimerEvent&) (this=0x85258f0, evt=@0xbffff190)
    at amuleDlg.cpp:286
No locals.
#12 0x402a8756 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) ()
   from /usr/local/lib/libwx_gtk-2.4.so
No symbol table info available.
#13 0x402a8583 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/local/lib/libwx_gtk-2.4.so
No symbol table info available.
#14 0x40331f33 in wxTimerBase::Notify() () from /usr/local/lib/libwx_gtk-2.4.so
No symbol table info available.
#15 0x40265cfa in timeout_callback () from /usr/local/lib/libwx_gtk-2.4.so
No symbol table info available.
#16 0x40854cfc in g_main_set_poll_func () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#17 0x40853e75 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#18 0x4085432c in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#19 0x4085455c in g_main_run () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#20 0x40781083 in gtk_main () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#21 0x402226f6 in wxApp::MainLoop() () from /usr/local/lib/libwx_gtk-2.4.so
No symbol table info available.
#22 0x40273534 in wxAppBase::OnRun() () from /usr/local/lib/libwx_gtk-2.4.so
No symbol table info available.
#23 0x40222da5 in wxEntry(int, char**) () from /usr/local/lib/libwx_gtk-2.4.so
No symbol table info available.
#24 0x0820849c in main (argc=1, argv=0xbffff414) at amule.cpp:43
No locals.
#25 0x405d6bb4 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
[/code:1]
Logged