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: "Segmentation fault" beim Start  (Read 2237 times)

TheOnlyFish

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
amuled: "Segmentation fault" beim Start
« on: August 29, 2006, 03:13:56 PM »

Hallo,

amuled bricht den Start mit der Fehlermeldung "Segmentation fault" ab.

Mit gdb kommt folgendes raus:
Code: [Select]
jh@stargate:~> gdb amuled
GNU gdb 5.3
Copyright 2002 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 "i586-suse-linux"...
(gdb) run
Starting program: /usr/local/bin/amuled
[New Thread 16384 (LWP 3570)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 3570)]
0x40251cde in wxStringData::IsShared() const (this=0xfffffff4)
    at include/wx/string.h:221
221       bool  IsShared()  const { return (nRefs > 1);   }
(gdb) quit
A debugging session is active.
Do you still want to close the debugger?(y or n) y

wxGTK-Version ist 2.6.3, amuled und wxGTK jeweils vom tarball installiert.

Kann jemand was mit der Fehlermeldung anfangen?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: amuled: "Segmentation fault" beim Start
« Reply #1 on: August 30, 2006, 10:10:01 AM »

Kannst du bitte einen 'echten' Fehlerbericht erstellen?

Siehe: http://www.amule.org/wiki/index.php/Backtraces
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: amuled: "Segmentation fault" beim Start
« Reply #2 on: August 30, 2006, 10:15:55 AM »

Warum schließt Du den Debugger mittels "quit", ohne einen Backtrace zu erstellen? Genau der wäre jetzt nützlich...

Mach das ganze nochmal, gib aber am gdb-Prompt an der Stelle, an der Du "quit" eingegeben hast, stattdessen "backtrace" ein.
Logged

TheOnlyFish

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Re: amuled: "Segmentation fault" beim Start
« Reply #3 on: August 30, 2006, 10:30:22 AM »

Mach ich:
Code: [Select]
jh@stargate:~> gdb /usr/local/bin/amuled
GNU gdb 5.3
Copyright 2002 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 "i586-suse-linux"...
(gdb) run
Starting program: /usr/local/bin/amuled
[New Thread 16384 (LWP 6430)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 6430)]
0x40251cde in wxStringData::IsShared() const (this=0xfffffff4)
    at include/wx/string.h:221
221       bool  IsShared()  const { return (nRefs > 1);   }
(gdb) bt
#0  0x40251cde in wxStringData::IsShared() const (this=0xfffffff4)
    at include/wx/string.h:221
#1  0x4024c159 in wxStringBase::AllocBeforeWrite(unsigned) (this=0xbffff42c,
    nLen=1025) at src/common/string.cpp:287
#2  0x4024e7e7 in wxString::GetWriteBuf(unsigned) (this=0xbffff42c, nLen=1025)
    at src/common/string.cpp:1135
#3  0x4020ebda in wxStringBuffer (this=0xbffff38c, str=@0xbffff42c,
    lenWanted=1025) at include/wx/string.h:1384
#4  0x4025014f in wxString::PrintfV(wchar_t const*, char*) (this=0xbffff42c,
    pszFormat=0x402c5480, argptr=0xbffff3f4 "\200¨-@Öí#@H-O\b\002")
    at src/common/string.cpp:1815
#5  0x4025004f in wxString::Format(wchar_t const*, ...) (pszFormat=0x402c5480)
    at src/common/string.cpp:1782
#6  0x4023ee2c in wxClassInfo::Register() (this=0x4033b758)
    at src/common/object.cpp:242
#7  0x4023f401 in wxClassInfo (this=0x4033b758, className=0x402da880,
    baseInfo1=0x4033b3f0, baseInfo2=0x0, size=40,
    ctor=0x4028fdbc ) at include/wx/object.h:76
#8  0x40291e46 in __static_initialization_and_destruction_0 (__initialize_p=1,
    __priority=65535) at src/common/event.cpp:66
#9  0x402920c1 in _GLOBAL__I__ZN12wxEvtHandler12ms_classInfoE ()
    at src/common/event.cpp:139
#10 0x402a9cf5 in __do_global_ctors_aux () from /usr/lib/libwx_baseud-2.6.so.0
---Type to continue, or q to quit---
#11 0x401c6d39 in _init () from /usr/lib/libwx_baseud-2.6.so.0
#12 0x4000b4fe in call_init () from /lib/ld-linux.so.2
#13 0x4000b63e in _dl_init_internal () from /lib/ld-linux.so.2
(gdb) bt full
#0  0x40251cde in wxStringData::IsShared() const (this=0xfffffff4)
    at include/wx/string.h:221
No locals.
#1  0x4024c159 in wxStringBase::AllocBeforeWrite(unsigned) (this=0xbffff42c,
    nLen=1025) at src/common/string.cpp:287
        pData = (wxStringData *) 0xfffffff4
#2  0x4024e7e7 in wxString::GetWriteBuf(unsigned) (this=0xbffff42c, nLen=1025)
    at src/common/string.cpp:1135
No locals.
#3  0x4020ebda in wxStringBuffer (this=0xbffff38c, str=@0xbffff42c,
    lenWanted=1025) at include/wx/string.h:1384
No locals.
#4  0x4025014f in wxString::PrintfV(wchar_t const*, char*) (this=0xbffff42c,
    pszFormat=0x402c5480, argptr=0xbffff3f4 "\200¨-@Öí#@H-O\b\002")
    at src/common/string.cpp:1815
        tmp = {m_str = @0xbffff42c, m_buf = 0x0}
        buf = (wxChar *) 0x401a4d99
        argptrcopy = 0x1a33

        len = 1077077480
        size = 1024
#5  0x4025004f in wxString::Format(wchar_t const*, ...) (pszFormat=0x402c5480)
    at src/common/string.cpp:1782
        argptr = 0xbffff3f4 "\200¨-@Öí#@H-O\b\002"
---Type to continue, or q to quit---
        s = { = {static npos = 4294967295,
    m_pchData = 0xbffff42c}, }
#6  0x4023ee2c in wxClassInfo::Register() (this=0x4033b758)
    at src/common/object.cpp:242
No locals.
#7  0x4023f401 in wxClassInfo (this=0x4033b758, className=0x402da880,
    baseInfo1=0x4033b3f0, baseInfo2=0x0, size=40,
    ctor=0x4028fdbc ) at include/wx/object.h:76
No locals.
#8  0x40291e46 in __static_initialization_and_destruction_0 (__initialize_p=1,
    __priority=65535) at src/common/event.cpp:66
No locals.
#9  0x402920c1 in _GLOBAL__I__ZN12wxEvtHandler12ms_classInfoE ()
    at src/common/event.cpp:139
No locals.
#10 0x402a9cf5 in __do_global_ctors_aux () from /usr/lib/libwx_baseud-2.6.so.0
No symbol table info available.
#11 0x401c6d39 in _init () from /usr/lib/libwx_baseud-2.6.so.0
No symbol table info available.
#12 0x4000b4fe in call_init () from /lib/ld-linux.so.2
No symbol table info available.
#13 0x4000b63e in _dl_init_internal () from /lib/ld-linux.so.2
No symbol table info available.
(gdb) thread apply all bt

Thread 1 (Thread 16384 (LWP 6430)):
#0  0x40251cde in wxStringData::IsShared() const (this=0xfffffff4)
    at include/wx/string.h:221
#1  0x4024c159 in wxStringBase::AllocBeforeWrite(unsigned) (this=0xbffff42c,
    nLen=1025) at src/common/string.cpp:287
#2  0x4024e7e7 in wxString::GetWriteBuf(unsigned) (this=0xbffff42c, nLen=1025)
    at src/common/string.cpp:1135
#3  0x4020ebda in wxStringBuffer (this=0xbffff38c, str=@0xbffff42c,
    lenWanted=1025) at include/wx/string.h:1384
#4  0x4025014f in wxString::PrintfV(wchar_t const*, char*) (this=0xbffff42c,
    pszFormat=0x402c5480, argptr=0xbffff3f4 "\200¨-@Öí#@H-O\b\002")
    at src/common/string.cpp:1815
#5  0x4025004f in wxString::Format(wchar_t const*, ...) (pszFormat=0x402c5480)
    at src/common/string.cpp:1782
#6  0x4023ee2c in wxClassInfo::Register() (this=0x4033b758)
    at src/common/object.cpp:242
#7  0x4023f401 in wxClassInfo (this=0x4033b758, className=0x402da880,
    baseInfo1=0x4033b3f0, baseInfo2=0x0, size=40,
    ctor=0x4028fdbc ) at include/wx/object.h:76
#8  0x40291e46 in __static_initialization_and_destruction_0 (__initialize_p=1,
    __priority=65535) at src/common/event.cpp:66
#9  0x402920c1 in _GLOBAL__I__ZN12wxEvtHandler12ms_classInfoE ()
---Type to continue, or q to quit---
    at src/common/event.cpp:139
#10 0x402a9cf5 in __do_global_ctors_aux () from /usr/lib/libwx_baseud-2.6.so.0
#11 0x401c6d39 in _init () from /usr/lib/libwx_baseud-2.6.so.0
#12 0x4000b4fe in call_init () from /lib/ld-linux.so.2
#13 0x4000b63e in _dl_init_internal () from /lib/ld-linux.so.2
(gdb)
Wenn außerdem noch Angaben gebraucht werden, liefere ich diese gern.

Hab auch überlegt, ob ich in einem der englischsprachigen Foren poste, weiss allerdings nicht, welches das passende wäre. Wäre das günstiger? Wenn ja, welches Forum? Oder gibts dann Ärger wegen Doppelposting?
« Last Edit: August 30, 2006, 10:31:07 AM by TheOnlyFish »
Logged