aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 20051017 SIGABRT on exit  (Read 2285 times)

morph

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 213
    • http://matrixhasu.altervista.org/
20051017 SIGABRT on exit
« on: October 23, 2005, 10:50:56 PM »

closing amule got

Code: [Select]
Shutting down aMule...
aMule dialog destroyed
Destroying node list control
Now, exiting main app...
Killing amuleweb instance...
Killed!
aMule OnExit: Terminating core.
Saving PartFile 1 of 31*** glibc detected *** corrupted double-linked list: 0x0b1d6a30 ***

Program received signal SIGABRT, Aborted.
[Switching to Thread -1224595776 (LWP 20578)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7771921 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb777327b in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb77a7f77 in __fsetlocking () from /lib/tls/i686/cmov/libc.so.6
#4  0xb77ae6bc in malloc_usable_size () from /lib/tls/i686/cmov/libc.so.6
#5  0xb77aea32 in free () from /lib/tls/i686/cmov/libc.so.6
#6  0xb79fcd2f in wxRemoveFile () from /usr/lib/libwx_baseu-2.6.so.0
#7  0x08231c77 in wxSliderBase::~wxSliderBase ()
#8  0x08241d37 in wxSliderBase::~wxSliderBase ()
#9  0x08103570 in wxCommandEvent::~wxCommandEvent ()
#10 0x0807b496 in wxObject::~wxObject ()
#11 0x0807e772 in wxSocketEvent::~wxSocketEvent ()
#12 0xb7a0f527 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#13 0xb7a0f5ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#14 0x0807e1c9 in wxSocketEvent::~wxSocketEvent ()
#15 0xb775ceb0 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#16 0x08067d81 in ?? ()
(gdb) bt full
#0  0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7771921 in raise () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#2  0xb777327b in abort () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#3  0xb77a7f77 in __fsetlocking () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#4  0xb77ae6bc in malloc_usable_size () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#5  0xb77aea32 in free () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#6  0xb79fcd2f in wxRemoveFile () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#7  0x08231c77 in wxSliderBase::~wxSliderBase ()
No symbol table info available.
#8  0x08241d37 in wxSliderBase::~wxSliderBase ()
No symbol table info available.
#9  0x08103570 in wxCommandEvent::~wxCommandEvent ()
No symbol table info available.
#10 0x0807b496 in wxObject::~wxObject ()
No symbol table info available.
#11 0x0807e772 in wxSocketEvent::~wxSocketEvent ()
No symbol table info available.
#12 0xb7a0f527 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#13 0xb7a0f5ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#14 0x0807e1c9 in wxSocketEvent::~wxSocketEvent ()
No symbol table info available.
#15 0xb775ceb0 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#16 0x08067d81 in ?? ()
---Type to continue, or q to quit---
No symbol table info available.
(gdb) thread apply all bt

Thread 1 (Thread -1224595776 (LWP 20578)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7771921 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb777327b in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb77a7f77 in __fsetlocking () from /lib/tls/i686/cmov/libc.so.6
#4  0xb77ae6bc in malloc_usable_size () from /lib/tls/i686/cmov/libc.so.6
#5  0xb77aea32 in free () from /lib/tls/i686/cmov/libc.so.6
#6  0xb79fcd2f in wxRemoveFile () from /usr/lib/libwx_baseu-2.6.so.0
#7  0x08231c77 in wxSliderBase::~wxSliderBase ()
#8  0x08241d37 in wxSliderBase::~wxSliderBase ()
#9  0x08103570 in wxCommandEvent::~wxCommandEvent ()
#10 0x0807b496 in wxObject::~wxObject ()
#11 0x0807e772 in wxSocketEvent::~wxSocketEvent ()
#12 0xb7a0f527 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#13 0xb7a0f5ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#14 0x0807e1c9 in wxSocketEvent::~wxSocketEvent ()
#15 0xb775ceb0 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#16 0x08067d81 in ?? ()
(gdb)

Thanks & Regards

ps: no, i didnt' compile yet wx by myself...
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: 20051017 SIGABRT on exit
« Reply #1 on: October 25, 2005, 01:03:08 AM »

Hum, memory corruption. We should start using valgrind to trace this one...

Thanks for you help!

Cheers!
Logged

morph

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 213
    • http://matrixhasu.altervista.org/
Re: 20051017 SIGABRT on exit
« Reply #2 on: October 25, 2005, 07:07:34 AM »

I've tried to use valgrind, with this command

valgrind -v --tool=memcheck --leak-check=yes --db-attach=yes --num-callers=10 --suppressions=amule.sup --gen-suppressions=yes amule -o

but keep asking me something like

Code: [Select]
==9495== Conditional jump or move depends on uninitialised value(s)
==9495==    at 0x1B8ECB13: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E631C: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8F2BDD: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E7675: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E47C6: (within /lib/ld-2.3.5.so)
==9495==
==9495== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
==9495==
==9495== ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- n
==9495==
==9495== Conditional jump or move depends on uninitialised value(s)
==9495==    at 0x1B8EC7D3: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E631C: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8F2BDD: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E7675: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E47C6: (within /lib/ld-2.3.5.so)
==9495==
==9495== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
==9495==
==9495== ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- n
==9495==
==9495== Conditional jump or move depends on uninitialised value(s)
==9495==    at 0x1B8EC6B6: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E6376: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8F2BDD: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E7675: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E47C6: (within /lib/ld-2.3.5.so)
==9495==
==9495== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
==9495==
==9495== ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- n
==9495==
==9495== Conditional jump or move depends on uninitialised value(s)
==9495==    at 0x1B8EC6C2: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E6376: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8F2BDD: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E7675: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E47C6: (within /lib/ld-2.3.5.so)
==9495==
==9495== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
==9495==
==9495== ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- n
==9495==
==9495== Conditional jump or move depends on uninitialised value(s)
==9495==    at 0x1B8EC7D3: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E6376: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8F2BDD: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E7675: (within /lib/ld-2.3.5.so)
==9495==    by 0x1B8E47C6: (within /lib/ld-2.3.5.so)
==9495==
==9495== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
==9495==
==9495== ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- n
--9495-- REDIR: 0x1C0ADDF0 (memset) redirected to 0x1B901670 (memset)
--9495-- REDIR: 0x1C0AE2A0 (memcpy) redirected to 0x1B901770 (memcpy)
--9495-- REDIR: 0x1C0ACF40 (rindex) redirected to 0x1B9010D0 (rindex)
--9495-- REDIR: 0x1BFE0D40 (operator new(unsigned)) redirected to 0x1B8FFBC2 (operator new(unsigned))
--9495-- REDIR: 0x1BFE0E80 (operator new[](unsigned)) redirected to 0x1B900000 (operator new[](unsigned))
--9495-- REDIR: 0x1C0A7710 (malloc) redirected to 0x1B8FF827 (malloc)
--9495-- REDIR: 0x1C0A59B0 (free) redirected to 0x1B900346 (free)
--9495-- REDIR: 0x1C0ACAB0 (strlen) redirected to 0x1B9012F0 (strlen)
--9495-- REDIR: 0x1C0ACCD0 (strncmp) redirected to 0x1B901380 (strncmp)
--9495-- REDIR: 0x1C0A7C80 (realloc) redirected to 0x1B900BAD (realloc)
--9495-- REDIR: 0x1C0AC530 (strcmp) redirected to 0x1B901400 (strcmp)
--9495-- REDIR: 0x1C0AC3C0 (index) redirected to 0x1B9011F0 (index)
--9495-- REDIR: 0x1C0ADFE0 (stpcpy) redirected to 0x1B901AB0 (stpcpy)
--9495-- REDIR: 0x1C0AD8F0 (memchr) redirected to 0x1B9014A0 (memchr)
--9495-- REDIR: 0x1C0ACB60 (strnlen) redirected to 0x1B9012B0 (strnlen)
--9495-- REDIR: 0x1C0A73B0 (calloc) redirected to 0x1B900B02 (calloc)
--9495-- Reading syms from /usr/lib/gconv/ISO8859-1.so (0x1B904000)
--9495-- Reading debug info from /usr/lib/gconv/ISO8859-1.so...
--9495-- ... CRC mismatch (computed 8CF84037 wanted 939E5DB0)
--9495--    object doesn't have a symbol table
==9495==
==9495== Conditional jump or move depends on uninitialised value(s)
==9495==    at 0x1B8ECB13: (within /lib/ld-2.3.5.so)
==9495==    by 0x1C144D9A: (within /lib/tls/i686/cmov/libc-2.3.5.so)
==9495==    by 0x1B8EF026: (within /lib/ld-2.3.5.so)
==9495==    by 0x1C145465: _dl_open (in /lib/tls/i686/cmov/libc-2.3.5.so)
==9495==    by 0x1C14694C: (within /lib/tls/i686/cmov/libc-2.3.5.so)
==9495==    by 0x1B8EF026: (within /lib/ld-2.3.5.so)
==9495==    by 0x1C146AAD: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.3.5.so)
==9495==    by 0x1C05E59A: (within /lib/tls/i686/cmov/libc-2.3.5.so)
==9495==    by 0x1C055FB9: (within /lib/tls/i686/cmov/libc-2.3.5.so)
==9495==    by 0x1C056869: (within /lib/tls/i686/cmov/libc-2.3.5.so)
==9495==
==9495== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
==9495==
==9495== ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- n

first I've answered 'n', then enter 'Return'. Once the execution come to version check via http request to website, valgrind starts use 100% of a cpu and then nothing happens, after 2 mins, i've killed it and started reuse gdb.

I didn't know what to do, can you help me?

Thanks & Bye
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: 20051017 SIGABRT on exit
« Reply #3 on: October 25, 2005, 09:34:18 AM »

morph,

Sure I can help you ;)

Every time valgrind finds something suspect, it will ask you if you want to enter gdb. But there are too many libraries with problems, so if you tell him not to enter gdb, he will ask you if you want him to print a suppression. If the code where the problem is does not interest you, you better tell him to print the suppression and then you can add them to a file named amule.sup. That way, the next time you run valgrind, he will not ask you again about that particular problem and you can go straight to the problems that interest you.

Ultimately, you will want to enter gdb at the suspicious point to find the real problem.

Cheers and good bug hunting!
Logged

morph

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 213
    • http://matrixhasu.altervista.org/
Re: 20051017 SIGABRT on exit
« Reply #4 on: October 26, 2005, 09:44:23 PM »

thanks phoenix for your help, but valgrind seems too slow for my machine...

After slowly add all the suppressions into maule.sup, i finally got amule started, but it takes 30 mins (till now) from version check to shares checks&adds.

I'll let it run some other time, after that, if it doesn't let me use amule, I'll kill it and keep using gdb.

Bye & Thanks
Logged