aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Terminated after throwing an instance of 'wxString'  (Read 5582 times)

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Terminated after throwing an instance of 'wxString'
« on: February 07, 2008, 12:31:54 AM »

Hi folks,

for some months I have been trying to produce a usable backtrace of a problem which prohibits the use of the KAD-Network in my system setup. I run amuled on an embedded device, crosscompiled for ppc405 on an i586 host. Some minutes after starting amuled, the application prints repeatingly the message "Terminated after throwing an instance of 'wxString'" on the console. The memory consume rises and than the applicaton dies. The backtrace repeats itself as well, so I just included the first couple of lines... Hopefully this information is enough to track down the problem.
As a temporary workaround I deactivated KAD and use just the ed2k-network.
cu

Code: [Select]
...
Terminated after throwing an instance of 'wxString'

Terminated after throwing an instance of 'wxString'

Program received signal SIGSEGV, Segmentation fault.
*__GI___errno_location () at ../sysdeps/generic/errno-loc.c:34
34      ../sysdeps/generic/errno-loc.c: No such file or directory.
        in ../sysdeps/generic/errno-loc.c
Current language:  auto; currently c
(gdb) bt
 bt
#0  *__GI___errno_location () at ../sysdeps/generic/errno-loc.c:34
#1  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
#2  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
#3  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
#4  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
#5  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
#6  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
#7  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
#8  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
---Type <return> to continue, or q <return> to quit---q
format=0x10402d20 "\nTerminated afQuit
) at vfprintf.c:271
#9  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
#10 0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
#11 0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
#12 0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
#13 0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
#14 0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
...some stuff cut out...
#780 0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) q
The program is running.  Exit anyway? (y or n) n
Not confirmed.
(gdb) bt full
#0  *__GI___errno_location () at ../sysdeps/generic/errno-loc.c:34
No locals.
#1  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
        thousands_sep = 0x0
        grouping = 0x0
        done = 266366008
        f = (const unsigned char *) 0x2b <Address 0x2b out of bounds>
        lead_str_end = (const unsigned char *) 0x7f807018 "\177\200p�\017�(�"
        work_buffer = '\0' <repeats 48 times>, "\177\200\000X\000\000\000\000\017� �\177\200*�\177\200\000x\000\000\000\000\000\000\000\000\177\200J�\000\000\000+\020@- \017� �\000\000\000+\177\200\000\230\017�A�\177\200M�\020\204�\210\000\000\000\b\020@-M\017� �\177\200\000\230\177\200&�\017��8", '\0' <repeats 56 times>, "\177\200\000�\000\000\000\000\017� �\177\200+\210\177\200\001\b\000\000\000\000\000\000\000\000\177\200K\210\000\000\000+\020@- \017� �\000\000\000+\177\200\001(\017�A�\177\200N8\020\204�\210\000\000\000\b\020@-M\017� �\177\200\001(\177\200'x\017��8", '\0' <repeats 56 times>...
        workstart = 0x0
        workend = 0x0
        mbstate = {__count = 43, __value = {__wch = 272641312,
    __wchb = "\020@- "}}
        ap_save = {{gpr = 0 '\0', fpr = 0 '\0', reserved = 0,
---Type <return> to continue, or q <return> to quit---
    overflow_arg_area = 0x0, reg_save_area = 0x0}}
        nspecs_done = 266346712
        save_errno = 272641359
        jump_table = {1, 0, 0, 4, 0, 14, 0, 6, 0, 0, 7, 2, 0, 3, 9, 0, 5, 8,
  8, 8, 8, 8, 8, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 26, 0, 25, 0, 19, 19, 19, 0,
  29, 0, 0, 12, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 18, 0, 13, 0, 0, 0, 0, 0, 0,
  26, 0, 20, 15, 19, 19, 19, 10, 15, 28, 0, 11, 24, 23, 17, 22, 12, 0, 21, 27,
  16, 0, 0, 18, 0, 13}
        __PRETTY_FUNCTION__ = "_IO_vfprintf"
#2  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
        thousands_sep = 0x0
        grouping = 0x0
        done = 266366008
        f = (const unsigned char *) 0x2b <Address 0x2b out of bounds>
        lead_str_end = (const unsigned char *) 0x7f807018 "\177\200p�\017�(�"
        work_buffer = '\0' <repeats 48 times>, "\177\200\000X\000\000\000\000\017� �\177\200*�\177\200\000x\000\000\000\000\000\000\000\000\177\200J�\000\000\000+\020@- \017� �\000\000\000+\177\200\000\230\017�A�\177\200M�\020\204�\210\000\000\000\b\020@-M\017� �\177\200\000\230\177\200&�\017��8", '\0' <repeats 56 times>, "\177\200\000�\000\000\000\000\017� �\177\200+\210\177\200\001\b\000\000\000\000\000\000\000\000\177\200K\210\000\000\000+\020@- \017� �\000\000\000+\177\20---Type <return> to continue, or q <return> to quit---
0\001(\017�A�\177\200N8\020\204�\210\000\000\000\b\020@-M\017� �\177\200\001(\177\200'x\017��8", '\0' <repeats 56 times>...
        workstart = 0x0
        workend = 0x0
        mbstate = {__count = 43, __value = {__wch = 272641312,
    __wchb = "\020@- "}}
        ap_save = {{gpr = 0 '\0', fpr = 0 '\0', reserved = 0,
    overflow_arg_area = 0x0, reg_save_area = 0x0}}
        nspecs_done = 266346712
        save_errno = 272641359
        jump_table = {1, 0, 0, 4, 0, 14, 0, 6, 0, 0, 7, 2, 0, 3, 9, 0, 5, 8,
  8, 8, 8, 8, 8, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 26, 0, 25, 0, 19, 19, 19, 0,
  29, 0, 0, 12, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 18, 0, 13, 0, 0, 0, 0, 0, 0,
  26, 0, 20, 15, 19, 19, 19, 10, 15, 28, 0, 11, 24, 23, 17, 22, 12, 0, 21, 27,
  16, 0, 0, 18, 0, 13}
        __PRETTY_FUNCTION__ = "_IO_vfprintf"
#3  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
        thousands_sep = 0x0
        grouping = 0x0
        done = 266366008
        f = (const unsigned char *) 0x2b <Address 0x2b out of bounds>
---Type <return> to continue, or q <return> to quit---
        lead_str_end = (const unsigned char *) 0x7f807018 "\177\200p�\017�(�"
        work_buffer = '\0' <repeats 48 times>, "\177\200\000X\000\000\000\000\017� �\177\200*�\177\200\000x\000\000\000\000\000\000\000\000\177\200J�\000\000\000+\020@- \017� �\000\000\000+\177\200\000\230\017�A�\177\200M�\020\204�\210\000\000\000\b\020@-M\017� �\177\200\000\230\177\200&�\017��8", '\0' <repeats 56 times>, "\177\200\000�\000\000\000\000\017� �\177\200+\210\177\200\001\b\000\000\000\000\000\000\000\000\177\200K\210\000\000\000+\020@- \017� �\000\000\000+\177\200\001(\017�A�\177\200N8\020\204�\210\000\000\000\b\020@-M\017� �\177\200\001(\177\200'x\017��8", '\0' <repeats 56 times>...
        workstart = 0x0
        workend = 0x0
        mbstate = {__count = 43, __value = {__wch = 272641312,
    __wchb = "\020@- "}}
        ap_save = {{gpr = 0 '\0', fpr = 0 '\0', reserved = 0,
    overflow_arg_area = 0x0, reg_save_area = 0x0}}
        nspecs_done = 266346712
        save_errno = 272641359
        jump_table = {1, 0, 0, 4, 0, 14, 0, 6, 0, 0, 7, 2, 0, 3, 9, 0, 5, 8,
  8, 8, 8, 8, 8, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 26, 0, 25, 0, 19, 19, 19, 0,
  29, 0, 0, 12, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 18, 0, 13, 0, 0, 0, 0, 0, 0,
  26, 0, 20, 15, 19, 19, 19, 10, 15, 28, 0, 11, 24, 23, 17, 22, 12, 0, 21, 27,
  16, 0, 0, 18, 0, 13}
        __PRETTY_FUNCTION__ = "_IO_vfprintf"
---Type <return> to continue, or q <return> to quit---
#4  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
        thousands_sep = 0x0
        grouping = 0x0
        done = 266366008
        f = (const unsigned char *) 0x2b <Address 0x2b out of bounds>
        lead_str_end = (const unsigned char *) 0x7f807018 "\177\200p�\017�(�"
        work_buffer = '\0' <repeats 48 times>, "\177\200\000X\000\000\000\000\017� �\177\200*�\177\200\000x\000\000\000\000\000\000\000\000\177\200J�\000\000\000+\020@- \017� �\000\000\000+\177\200\000\230\017�A�\177\200M�\020\204�\210\000\000\000\b\020@-M\017� �\177\200\000\230\177\200&�\017��8", '\0' <repeats 56 times>, "\177\200\000�\000\000\000\000\017� �\177\200+\210\177\200\001\b\000\000\000\000\000\000\000\000\177\200K\210\000\000\000+\020@- \017� �\000\000\000+\177\200\001(\017�A�\177\200N8\020\204�\210\000\000\000\b\020@-M\017� �\177\200\001(\177\200'x\017��8", '\0' <repeats 56 times>...
        workstart = 0x0
        workend = 0x0
        mbstate = {__count = 43, __value = {__wch = 272641312,
    __wchb = "\020@- "}}
        ap_save = {{gpr = 0 '\0', fpr = 0 '\0', reserved = 0,
    overflow_arg_area = 0x0, reg_save_area = 0x0}}
        nspecs_done = 266346712
---Type <return> to continue, or q <return> to quit---
        save_errno = 272641359
        jump_table = {1, 0, 0, 4, 0, 14, 0, 6, 0, 0, 7, 2, 0, 3, 9, 0, 5, 8,
  8, 8, 8, 8, 8, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 26, 0, 25, 0, 19, 19, 19, 0,
  29, 0, 0, 12, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 18, 0, 13, 0, 0, 0, 0, 0, 0,
  26, 0, 20, 15, 19, 19, 19, 10, 15, 28, 0, 11, 24, 23, 17, 22, 12, 0, 21, 27,
  16, 0, 0, 18, 0, 13}
        __PRETTY_FUNCTION__ = "_IO_vfprintf"
#5  0x0fd1b5a0 in _IO_vfprintf (s=0x7f804a68,
    format=0x10402d20 "\nTerminated after throwing an instance of '%s'\n",
    ap=0x7f804d18) at vfprintf.c:271
        thousands_sep = 0x0
        grouping = 0x0
        done = 266366008
        f = (const unsigned char *) 0x2b <Address 0x2b out of bounds>
        lead_str_end = (const unsigned char *) 0x7f807018 "\177\200p�\017�(�"
        work_buffer = '\0' <repeats 48 times>, "\177\200\000X\000\000\000\000\017� �\177\200*�\177\200\000x\000\000\000\000\000\000\000\000\177\200J�\000\000\000+\020@- \017� �\000\000\000+\177\200\000\230\017�A�\177\200M�\020\204�\210\000\000\000\b\020@-M\017� �\177\200\000\230\177\200&�\017��8", '\0' <repeats 56 times>, "\177\200\000�\000\000\000\000\017� �\177\200+\210\177\200\001\b\000\000\000\000\000\000\000\000\177\200K\210\000\000\000+\020@- \017� �\000\000\000+\177\200\001(\017�A�\177\200N8\020\204�\210\000\000\000\b\020@-M\017� �\177\200\001(\177\200'x\017��8", '\0' <repeats 56 times>...
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb)
     
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Terminated after throwing an instance of 'wxString'
« Reply #1 on: February 07, 2008, 04:00:32 PM »

That's pretty strange, as the object re-thrown in the exception handler should be caught in any case ...
However, as that is clearly not happening, for reasons unknown to me, I've changed the exception-handler, in order to prevent an infinate recursion. Now it should just abort if that happens.
Logged

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: Terminated after throwing an instance of 'wxString'
« Reply #2 on: February 08, 2008, 02:52:09 PM »

Hi,

now amuled terminates quickly, no more recursive prints. Here the backtrace, if you need more input, please ask.
 
Code: [Select]
/hdd > HOME=/hdd/aMule LD_LIBRARY_PATH=/hdd/lib ./gdb /hdd/aMule/amuled
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-tuxbox-linux-gnu"...Using host libthread_db library "/hdd/lib/libthread_db.so.1".

(gdb) run
Starting program: /hdd/aMule/amuled
amuled: OnInit - starting timer
Checkpoint set on app init for memory debug
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
ERROR: Warning Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.

--------------------------------------------------
Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.
--------------------------------------------------

Loading temp files from /hdd/aMule/.aMule/Temp.
Loading PartFile 1 of 1
All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:5665
*** TCP socket (TCP) listening on 0.0.0.0:5662
*** Client UDP socket (extended eMule) at 0.0.0.0:5672
Terminated after throwing an instance of 'wxString'

Program received signal SIGABRT, Aborted.
0x0fd0293c in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:52
52      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
        in ../nptl/sysdeps/unix/sysv/linux/raise.c
Current language:  auto; currently c
(gdb) bt
#0  0x0fd0293c in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:52
#1  0x0fd03fdc in *__GI_abort () at ../sysdeps/generic/abort.c:88
#2  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#3  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#4  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#5  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#6  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#7  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#8  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#9  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#10 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#11 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#12 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#13 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#14 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#15 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#16 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#17 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#18 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#19 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#20 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#21 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
---Type <return> to continue, or q <return> to quit---
#22 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#23 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#24 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#25 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#26 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#27 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
Previous frame inner to this frame (corrupt stack?)
(gdb) bt full
#0  0x0fd0293c in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:52
        r4 = 346
        r7 = 265300920
        r12 = 265306076
        r5 = 6
        r8 = 805399680
        r10 = 2147464664
        r0 = 250
        r3 = 0
        r6 = 0
        r9 = 0
        r11 = 805399680
        sc_ret = 0
        selftid = 346
#1  0x0fd03fdc in *__GI_abort () at ../sysdeps/generic/abort.c:88
        act = {__sigaction_handler = {sa_handler = 0x30025cc0,
    sa_sigaction = 0x30025cc0}, sa_mask = {__val = {805461596, 805458100,
      2147464760, 2147464896, 805341008, 1, 805398416, 805394560, 805394972,
      805458100, 2147464792, 2147464928, 805341008, 1, 805397376, 805461184,
      805461596, 805458100, 2147464824, 265134348, 805396432, 1, 9, 272189880,
      270794752, 2147482144, 277179368, 2147465304, 33, 2147466018, 53,
      2147465832}}, sa_flags = 273918088, sa_restorer = 0x7fffb6c0}
---Type <return> to continue, or q <return> to quit---
        sigs = {__val = {32, 0 <repeats 31 times>}}
#2  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#3  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#4  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#5  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#6  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#7  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#8  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#9  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#10 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#11 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#12 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#13 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#14 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#15 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#16 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#17 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#18 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#19 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#20 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#21 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#22 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#23 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#24 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#25 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#26 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#27 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
(gdb) thread apply all bt
(gdb)
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Terminated after throwing an instance of 'wxString'
« Reply #3 on: February 08, 2008, 05:47:02 PM »

Hmm, odd, it still enters a inf. loop ...
Since you already run aMule in gdb, can you try setting a breakpoint in the function "OnUnhandledException". You can do that simply by typing "break OnUnhandledException" before starting amule in gdb.

Also, can you tell me how you compile aMule? Which compiler, and compiler flags do you use?
Logged

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: Terminated after throwing an instance of 'wxString'
« Reply #4 on: February 08, 2008, 06:57:55 PM »

Here the backtrace with the the breakpoint OnUnhandledException set.

Code: [Select]
/hdd > HOME=/hdd/aMule LD_LIBRARY_PATH=/hdd/lib ./gdb /hdd/aMule/amuled
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-tuxbox-linux-gnu"...Using host libthread_db library "/hdd/lib/libthread_db.so.1".

(gdb) break OnUnhandledException
Breakpoint 1 at 0x101be0c8: file MuleDebug.cpp, line 62.
(gdb) run
Starting program: /hdd/aMule/amuled
amuled: OnInit - starting timer
Checkpoint set on app init for memory debug
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
ERROR: Warning Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.

--------------------------------------------------
Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.
--------------------------------------------------

Loading temp files from /hdd/aMule/.aMule/Temp.
Loading PartFile 2 of 2
All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:5665
*** TCP socket (TCP) listening on 0.0.0.0:5662
*** Client UDP socket (extended eMule) at 0.0.0.0:5672
Adding file /hdd/aMule/.aMule/Temp/003.part.met to shares
No shareable files found in directory: /hdd/aMule/.aMule/Incoming/

Breakpoint 1, OnUnhandledException () at MuleDebug.cpp:62
62      MuleDebug.cpp: No such file or directory.
        in MuleDebug.cpp
(gdb) bt
#0  OnUnhandledException () at MuleDebug.cpp:62
#1  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#2  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#3  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#4  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#5  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#6  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#7  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#8  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#9  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#10 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#11 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#12 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#13 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#14 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#15 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#16 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#17 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#18 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#19 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#20 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#21 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#22 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
(gdb) bt full
#0  OnUnhandledException () at MuleDebug.cpp:62
        output = (FILE *) 0x7fffb828
#1  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#2  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#3  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#4  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#5  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#6  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#7  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#8  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#9  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#10 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#11 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#12 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#13 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#14 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#15 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#16 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#17 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#18 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#19 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#20 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#21 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#22 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
(gdb)

I crosscompile on a i586 for the ppc used in a digital satreceiver.  CFLAGS used are "-mcpu=405 -msoft-float -mmultiple -mstring -meabi -pipe -Os -ggdb3 -DHAVE_DREAMBOX_HARDWARE".  Here's the corresponding part of the cdk's Makefile.am:

Code: [Select]
.wxbase: .bootstrap .libsdl @DEPENDS_wxbase@
@PREPARE_wxbase@
cd @DIR_wxbase@ && \
$(BUILDENV) \
./configure \
--build=$(build) \
--host=$(target) \
--prefix= \
--without-sdl \
--disable-shared \
--disable-gui \
--with-expat=no \
--with-regex=builtin \
--disable-compat26 \
--enable-unicode \
--enable-debug \
--disable-optimise \
--enable-debug_flag \
--enable-debug_info \
--enable-debug_gdb \
--enable-mem_tracing \
--enable-largefile \
--disable-gtktest \
--disable-sdltest \
--without-subdirs \
--with-libpng \
--with-libjpeg && \
$(MAKE) && \
@INSTALL_wxbase@
@CLEANUP_wxbase@
touch $@

.amule: .bootstrap .wxbase .libpng .libgd .libcryptopp @DEPENDS_amule@
@PREPARE_amule@
cd @DIR_amule@ && \
$(BUILDENV) \
ac_cv_func_malloc_0_nonnull=yes \
ac_cv_func_realloc_0_nonnull=yes \
STRIP=$(target)-strip \
./configure \
--build=$(build) \
--host=$(target) \
--prefix= \
--enable-ccache \
--disable-monolithic \
--enable-amule-daemon \
--enable-amulecmd \
--enable-webserver \
--enable-debug \
--disable-optimize \
--enable-verbose \
--disable-upnp \
--disable-geoip \
--with-denoise-level=0 \
--with-gdlib-prefix=$(targetprefix) \
--with-libpng-prefix=$(targetprefix) \
--with-wx-prefix=$(targetprefix) \
--with-crypto-prefix=$(targetprefix) && \
$(MAKE) HOSTCC=$(CC) &&\
@INSTALL_amule@
$(INSTALL) @DIR_amule@/amulestart.sh $(targetprefix)/bin
$(INSTALL) @DIR_amule@/amuleweb.sh $(targetprefix)/bin
$(INSTALL) @DIR_amule@/amule.install $(targetprefix)/bin
@CLEANUP_amule@
touch $@

Let me conclude with the complete buildlog of wxbase and amule.
Thanks that you spare some of your time for me!
« Last Edit: February 08, 2008, 08:47:32 PM by Coronas »
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Terminated after throwing an instance of 'wxString'
« Reply #5 on: February 08, 2008, 11:15:13 PM »

Check if you can break on "__cxa_call_unexpected ". That might get us closer to the source of the problem.
Logged

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: Terminated after throwing an instance of 'wxString'
« Reply #6 on: February 09, 2008, 12:23:21 AM »

Here you go.

Code: [Select]
/hdd > HOME=/hdd/aMule LD_LIBRARY_PATH=/hdd/lib ./gdb /hdd/aMule/amuled
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-tuxbox-linux-gnu"...Using host libthread_db library "/hdd/lib/libthread_db.so.1".

(gdb) break __cxa_call_unexpected
runBreakpoint 1 at 0x1053a740
(gdb) run
Starting program: /hdd/aMule/amuled
Breakpoint 1 at 0xff30a7c
amuled: OnInit - starting timer
Checkpoint set on app init for memory debug
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
ERROR: Warning Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.

--------------------------------------------------
Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.
--------------------------------------------------

Loading temp files from /hdd/aMule/.aMule/Temp.
Loading PartFile 2 of 2
All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:5665
*** TCP socket (TCP) listening on 0.0.0.0:5662
*** Client UDP socket (extended eMule) at 0.0.0.0:5672
Adding file /hdd/aMule/.aMule/Temp/003.part.met to shares
No shareable files found in directory: /hdd/aMule/.aMule/Incoming/

Terminated after throwing an instance of 'wxString'

Program received signal SIGABRT, Aborted.
0x0fd0293c in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:52
52      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
        in ../nptl/sysdeps/unix/sysv/linux/raise.c
Current language:  auto; currently c
(gdb) bt
#0  0x0fd0293c in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:52
#1  0x0fd03fdc in *__GI_abort () at ../sysdeps/generic/abort.c:88
#2  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#3  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#4  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#5  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#6  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#7  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#8  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#9  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#10 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#11 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#12 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#13 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#14 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#15 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#16 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#17 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#18 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#19 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#20 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#21 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
---Type <return> to continue, or q <return> to quit---
#22 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#23 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#24 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#25 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#26 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
#27 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
Previous frame inner to this frame (corrupt stack?)
(gdb) bt full
#0  0x0fd0293c in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:52
        r4 = 1236
        r7 = 265300920
        r12 = 265306076
        r5 = 6
        r8 = 805399680
        r10 = 2147464664
        r0 = 250
        r3 = 0
        r6 = 0
        r9 = 0
        r11 = 805399680
        sc_ret = 0
        selftid = 1236
#1  0x0fd03fdc in *__GI_abort () at ../sysdeps/generic/abort.c:88
        act = {__sigaction_handler = {sa_handler = 0x30025cc0,
    sa_sigaction = 0x30025cc0}, sa_mask = {__val = {805461596, 805458100,
      2147464760, 2147464896, 805341008, 1, 805398416, 805394560, 805394972,
      805458100, 2147464792, 2147464928, 805341008, 1, 805397376, 805461184,
      805461596, 805458100, 2147464824, 265134348, 805396432, 1, 9, 272189880,
      270794752, 2147482144, 277181552, 0, 157, 2147466018, 53, 2147465832}},
  sa_flags = 273918088, sa_restorer = 0x7fffb6c0}
---Type <return> to continue, or q <return> to quit---
        sigs = {__val = {32, 0 <repeats 31 times>}}
#2  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#3  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#4  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#5  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#6  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#7  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#8  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#9  0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#10 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#11 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#12 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#13 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#14 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#15 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#16 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#17 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#18 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#19 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#20 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#21 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#22 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#23 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#24 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#25 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#26 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
#27 0x0ff30b6c in __cxa_call_unexpected () from /lib/libstdc++.so.6
No symbol table info available.
(gdb)             
Logged

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: Terminated after throwing an instance of 'wxString'
« Reply #7 on: February 09, 2008, 11:31:16 AM »

As I experience no problems with the ed2k-network, I originally thought that the termination of amued was directly related to activating the KAD-network. However, I observed during yesterdays testmarathon the following behaviour: as long as KAD is firewalled, the application seems to works OK. I watched somebody downloading from me without a problem. Possibly, the terminatione occurs only if KAD is fully operational. Maybe this helps to narrow down the bug.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Terminated after throwing an instance of 'wxString'
« Reply #8 on: February 09, 2008, 08:28:19 PM »

Sorry for making you jump through so many hoops, but can you try commenting out the line in src/libs/common/MuleDebug.cpp that says "std::set_terminate(OnUnhandledException);"?
Logged

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: Terminated after throwing an instance of 'wxString'
« Reply #9 on: February 09, 2008, 09:02:46 PM »

No Problem, again, it's me who has to say thanks for trying to help me. Here you go:
Code: [Select]
/hdd > HOME=/hdd/aMule LD_LIBRARY_PATH=/hdd/lib ./gdb /hdd/aMule/amuled
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-tuxbox-linux-gnu"...run
Using host libthread_db library "/hdd/lib/libthread_db.so.1".

(gdb) run
Starting program: /hdd/aMule/amuled
amuled: OnInit - starting timer
Checkpoint set on app init for memory debug
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
ERROR: Warning Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.

--------------------------------------------------
Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.
--------------------------------------------------

Loading temp files from /hdd/aMule/.aMule/Temp.
Loading PartFile 2 of 2
All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:5665
*** TCP socket (TCP) listening on 0.0.0.0:5662
*** Client UDP socket (extended eMule) at 0.0.0.0:5672
Adding file /hdd/aMule/.aMule/Temp/003.part.met to shares
No shareable files found in directory: /hdd/aMule/.aMule/Incoming/
terminate called after throwing an instance of 'wxString'
terminate called recursively

Program received signal SIGABRT, Aborted.
0x0fd0293c in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:52
52      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
        in ../nptl/sysdeps/unix/sysv/linux/raise.c
Current language:  auto; currently c
(gdb) bt
#0  0x0fd0293c in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:52
#1  0x0fd03fdc in *__GI_abort () at ../sysdeps/generic/abort.c:88
#2  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#3  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#4  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#5  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#6  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#7  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#8  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#9  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#10 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#11 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
---Type <return> to continue, or q <return> to quit---
#12 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#13 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#14 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#15 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#16 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#17 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#18 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#19 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#20 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#21 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#22 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#23 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
---Type <return> to continue, or q <return> to quit---
   from /lib/libstdc++.so.6
#24 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#25 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#26 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
#27 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
Previous frame inner to this frame (corrupt stack?)
(gdb) bt full
#0  0x0fd0293c in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:52
        r4 = 2715
        r7 = 265300920
        r12 = 265306076
        r5 = 6
        r8 = 805399680
        r10 = 2147465072
        r0 = 250
        r3 = 0
        r6 = 0
        r9 = 0
        r11 = 805399680
        sc_ret = 0
        selftid = 2715
#1  0x0fd03fdc in *__GI_abort () at ../sysdeps/generic/abort.c:88
        act = {__sigaction_handler = {sa_handler = 0x30015880,
    sa_sigaction = 0x30015880}, sa_mask = {__val = {805394972, 805458100,
      2147465168, 2147465304, 805341008, 1, 270794752, 805459856, 99858311, 0,
      1, 267145526, 2147465408, 805394972, 805398416, 805394560, 805394972,
      805458100, 2147465232, 265134348, 805396432, 1, 805398304, 2147465264,
      270794752, 2147482128, 0, 0, 36, 2147466002, 277181128, 2147465816}},
  sa_flags = 267793264, sa_restorer = 0x7fffb858}
---Type <return> to continue, or q <return> to quit---
        sigs = {__val = {32, 0 <repeats 31 times>}}
#2  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#3  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#4  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#5  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#6  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#7  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#8  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#9  0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
---Type <return> to continue, or q <return> to quit---
   from /lib/libstdc++.so.6
No symbol table info available.
#10 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#11 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#12 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#13 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#14 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#15 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#16 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#17 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#18 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#19 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#20 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#21 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#22 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#23 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#24 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#25 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#26 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
#27 0x0ff35cec in __gnu_cxx::__verbose_terminate_handler ()
   from /lib/libstdc++.so.6
No symbol table info available.
(gdb)
       
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Terminated after throwing an instance of 'wxString'
« Reply #10 on: February 09, 2008, 09:34:58 PM »

Could you try cross-compiling and running the following program?
At this point, I suspect that your compiler is buggy.
Code: [Select]
#include <stdexcept>
#include <stdio.h>

int main() {
  try {
    throw std::runtime_error("hello, world");
  } catch (std::exception &re) {
    fprintf(stderr, "%s\n", re.what());
  }

  return 0;
}
« Last Edit: February 09, 2008, 10:05:21 PM by phoenix »
Logged

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: Terminated after throwing an instance of 'wxString'
« Reply #11 on: February 09, 2008, 10:10:53 PM »

It could be a fault of the crosscompiler, but why is amuled working when I use only the ED2K-Network?

Anyway, here the compilation on the host:
Code: [Select]
[tux@asus cdk]$ cat test.cpp
#include <stdexcept>
#include <stdio.h>

int main() {
  try {
    throw std::runtime_error("hello, world");
  } catch (std::exception &re) {
    fprintf(stderr, "%s\n", re.what());
  }

  return 0;
}
[tux@asus cdk]$ $HOME/dreambox/root/cdk/bin/powerpc-tuxbox-linux-gnu-g++ -Wall -I/home/tux/dreambox/root/cdkroot/include test.cpp -o test
[tux@asus cdk]$
and the result on the target:
Code: [Select]
/tmp > ./test
terminate called after throwing an instance of 'std::runtime_error'
terminate called recursively
Aborted
/tmp >
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Terminated after throwing an instance of 'wxString'
« Reply #12 on: February 09, 2008, 10:22:34 PM »

Well, you've simply been lucky that no exceptions have been thrown while you were running aMule using only ED2k. But if for instance you received a bad packet, or in any of the other many instances where aMule makes use of exceptions, aMule will die as well in that case. This is not something we can fix, but now at least you have a test-case you can you use figure out which compiler (options) work, so I'd suggest that you try a few different versions of GCC.
Logged

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: Terminated after throwing an instance of 'wxString'
« Reply #13 on: February 09, 2008, 10:26:57 PM »

OK I understand that. One more thing - how should the output of the testprogram have looked like? *me* is not a code-junkie ;)
« Last Edit: February 09, 2008, 10:41:24 PM by Coronas »
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Terminated after throwing an instance of 'wxString'
« Reply #14 on: February 09, 2008, 11:22:32 PM »

Code: [Select]
$ g++ test.cpp
$ ./a.out
hello, world
Logged