aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: dev-cvs-20040706  (Read 2465 times)

nich

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 55
dev-cvs-20040706
« on: July 07, 2004, 03:43:01 AM »

Okie. Let me describe it first:
Code: [Select]
./configure --enable-debug --enable-webserver --enable-webservergui --enable-verbose --with-wx-prefix=/home/nich/arquivos/programas/libs --with-wx-exec-prefix=/home/nich/arquivos/programas/libs --with-wx-config=/home/nich/arquivos/programas/libs/bin/wx-configThat pretty much says everything, no?  :D
(Those --with-wx-* are to point to a specific weird install I have of wx 2.5.1 just for amule cvs versions. With the --with-wx-config, I guess the other ones are not necessary anymore, but I am used to type them, so don't bother...  :] )
Running and crashing:
Code: [Select]
bash-2.05b$ LD_LIBRARY_PATH=/home/nich/arquivos/programas/libs/lib gdb ./amule
GNU gdb 6.0
Copyright 2003 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 "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) ha SIGPIPE nostop noprint pass
Signal        Stop      Print   Pass to program Description
SIGPIPE       No        No      Yes             Broken pipe
(gdb) ha SIG32 nostop noprint pass
Signal        Stop      Print   Pass to program Description
SIG32         No        No      Yes             Real-time event 32
(gdb) set height 0
(gdb) run
Starting program: /home/nich/arquivos/programas/amule-cvs/amule-dev-cvs-20040706/src/amule
Initialising aMule
[...]
Yadda, yadda, yadda, hashing, formating your HD. Showing GUI, etc...
[...]

Program received signal SIGSEGV, Segmentation fault.
0x40b348a7 in free () from /lib/libc.so.6
OMG! It crashed!
bt:
Code: [Select]
(gdb) bt
#0  0x40b348a7 in free () from /lib/libc.so.6
#1  0x40a1f1a3 in operator delete(void*) () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so.5
#2  0x40a1f1ff in operator delete[](void*) () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so.5
#3  0x082b8353 in CSysTray::SetColorLevels(int*, unsigned*, int) (this=0x896c760, pLimits=0xbfffefd4, pColors=0xbfffefd0, nEntries=1) at SysTray.cpp:785
#4  0x082ac9a0 in CamuleDlg::UpdateTrayIcon(int) (this=0x8850198, procent=0) at amuleDlg.cpp:767
#5  0x082ac14b in CamuleDlg::ShowTransferRate() (this=0x8850198) at amuleDlg.cpp:671
#6  0x082adc75 in CamuleDlg::OnGUITimer(wxTimerEvent&) (this=0x8850198) at amuleDlg.cpp:1058
#7  0x4049cee7 in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const () from /home/nich/arquivos/programas/libs/lib/libwx_base-2.5.so.1
#8  0x405353e0 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /home/nich/arquivos/programas/libs/lib/libwx_base-2.5.so.1
#9  0x4053487f in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /home/nich/arquivos/programas/libs/lib/libwx_base-2.5.so.1
#10 0x4053557d in wxEvtHandler::ProcessEvent(wxEvent&) () from /home/nich/arquivos/programas/libs/lib/libwx_base-2.5.so.1
#11 0x40341927 in wxTimerBase::Notify() () from /home/nich/arquivos/programas/libs/lib/libwx_gtk_core-2.5.so.1
#12 0x4024661d in timeout_callback () from /home/nich/arquivos/programas/libs/lib/libwx_gtk_core-2.5.so.1
#13 0x4071b565 in g_main_set_poll_func () from /usr/lib/libglib-1.2.so.0
#14 0x0895bc18 in ?? ()
#15 0x4072c248 in ?? () from /usr/lib/libglib-1.2.so.0
bt full:
Code: [Select]
(gdb) bt full
#0  0x40b348a7 in free () from /lib/libc.so.6
No symbol table info available.
#1  0x40a1f1a3 in operator delete(void*) () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so.5
No symbol table info available.
#2  0x40a1f1ff in operator delete[](void*) () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so.5
No symbol table info available.
#3  0x082b8353 in CSysTray::SetColorLevels(int*, unsigned*, int) (this=0x896c760, pLimits=0xbfffefd4, pColors=0xbfffefd0, nEntries=1) at SysTray.cpp:785
No locals.
#4  0x082ac9a0 in CamuleDlg::UpdateTrayIcon(int) (this=0x8850198, procent=0) at amuleDlg.cpp:767
        pLimits16 = {100}
        pColors16 = {0}
        pVals16 = {136898349}
        data = (char **) 0xbfff037f
#5  0x082ac14b in CamuleDlg::ShowTransferRate() (this=0x8850198) at amuleDlg.cpp:671
        kBpsUp = 0
        kBpsDown = 0
        buffer =
        percentDown = 0
        buffer2 =
        buffer3 = 0x8142d4d "ÉÃ\220U\211å\213E\b\213@\004]Ã\220U\211å\203ì\b\213E\f\211D$\004\213E\b\211\004$è@\032"
        bmp = (struct wxStaticBitmap *) 0xbffff068
#6  0x082adc75 in CamuleDlg::OnGUITimer(wxTimerEvent&) (this=0x8850198) at amuleDlg.cpp:1058
        msPrev1 = 7915
        msPrev5 = 7915
        msPrevGraph = 7915
        msPrevStats = 0
        msPrevHist = 1000
        msCur = 7915
        bStatsVisible = false
        msGraphUpdate = 3000
        sStatsUpdate = 5
#7  0x4049cee7 in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const () from /home/nich/arquivos/programas/libs/lib/libwx_base-2.5.so.1
No symbol table info available.
#8  0x405353e0 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /home/nich/arquivos/programas/libs/lib/libwx_base-2.5.so.1
No symbol table info available.
#9  0x4053487f in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /home/nich/arquivos/programas/libs/lib/libwx_base-2.5.so.1
No symbol table info available.
#10 0x4053557d in wxEvtHandler::ProcessEvent(wxEvent&) () from /home/nich/arquivos/programas/libs/lib/libwx_base-2.5.so.1
No symbol table info available.
#11 0x40341927 in wxTimerBase::Notify() () from /home/nich/arquivos/programas/libs/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#12 0x4024661d in timeout_callback () from /home/nich/arquivos/programas/libs/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#13 0x4071b565 in g_main_set_poll_func () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#14 0x0895bc18 in ?? ()
No symbol table info available.
#15 0x4072c248 in ?? () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
Ok. Now it's up to you devs.  :))
Logged

nich

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 55
Re: dev-cvs-20040706
« Reply #1 on: July 07, 2004, 04:14:32 AM »

Ok. Just to tell ya --disable-optimize and --disable-systray solved this problem.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: dev-cvs-20040706
« Reply #2 on: July 07, 2004, 01:36:46 PM »

valgrind gives a warning on that function too.
Logged

nich

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 55
Systray: love it or leave it
« Reply #3 on: July 08, 2004, 07:05:29 PM »

Yeah. Compiled like this:
Code: [Select]
./configure --enable-debug --enable-webserver --enable-webservergui --enable-verbose --disable-optimize --with-wx-config=/home/nich/arquivos/programas/libs/bin/wx-configwith debug configured wx 2.5.1

crashing:
Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
0x40b9f8a7 in free () from /lib/libc.so.6
(Right after loading shared files, as it seems. I still need to get why it gives me that many warnings. Gonna write about those latter, though, as they've been there since 1.2.6 for me...

bt:
Code: [Select]
(gdb) bt
#0  0x40b9f8a7 in free () from /lib/libc.so.6
#1  0x40a8a1a3 in operator delete(void*) () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so.5
#2  0x40a8a1ff in operator delete[](void*) () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so.5
#3  0x082bdf67 in CSysTray::SetColorLevels(int*, unsigned*, int) (this=0x8976418, pLimits=0xbfffef84, pColors=0xbfffef80, nEntries=1) at SysTray.cpp:785
#4  0x082b1ee4 in CamuleDlg::UpdateTrayIcon(int) (this=0x8859de8, procent=0) at amuleDlg.cpp:756
#5  0x082b168d in CamuleDlg::ShowTransferRate() (this=0x8859de8) at amuleDlg.cpp:660
#6  0x082b31b9 in CamuleDlg::OnGUITimer(wxTimerEvent&) (this=0x8859de8) at amuleDlg.cpp:1044
#7  0x404f548a in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const (this=0x85f2c18, handler=0x8859de8, func=
      {__pfn = 0x82b3014 , __delta = 0}, event=@0xbffff1e0) at src/common/appbase.cpp:288
#8  0x4059149f in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (entry=@0x85e2fc0, handler=0x8859de8, event=@0xbffff1e0)
    at src/common/event.cpp:1169
#9  0x405904e0 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) (this=0x85e2e74, event=@0xbffff1e0, self=0x8859de8) at src/common/event.cpp:837
#10 0x405916b8 in wxEvtHandler::ProcessEvent(wxEvent&) (this=0x8859de8, event=@0xbffff1e0) at src/common/event.cpp:1231
#11 0x40378b2b in wxTimerBase::Notify() (this=0x89658a8) at src/common/timercmn.cpp:60
#12 0x40276a98 in timeout_callback (data=0x89658a8) at src/gtk/timer.cpp:47
#13 0x40786565 in g_main_set_poll_func () from /usr/lib/libglib-1.2.so.0
#14 0x089658a8 in ?? ()
#15 0x40797248 in ?? () from /usr/lib/libglib-1.2.so.0
bt full:
Code: [Select]
(gdb) bt full
#0  0x40b9f8a7 in free () from /lib/libc.so.6
No symbol table info available.
#1  0x40a8a1a3 in operator delete(void*) () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so.5
No symbol table info available.
#2  0x40a8a1ff in operator delete[](void*) () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so.5
No symbol table info available.
#3  0x082bdf67 in CSysTray::SetColorLevels(int*, unsigned*, int) (this=0x8976418, pLimits=0xbfffef84, pColors=0xbfffef80, nEntries=1) at SysTray.cpp:785
No locals.
#4  0x082b1ee4 in CamuleDlg::UpdateTrayIcon(int) (this=0x8859de8, procent=0) at amuleDlg.cpp:756
        pLimits16 = {100}
        pColors16 = {0}
        pVals16 = {136919079}
        data = (char **) 0xbfff037f
#5  0x082b168d in CamuleDlg::ShowTransferRate() (this=0x8859de8) at amuleDlg.cpp:660
        kBpsUp = 0
        kBpsDown = 0
        buffer = { = {static npos = 4294967195, m_pchData = 0x8967e44 "Up: 0.0 | Down: 0.0"}, }
        percentDown = 0
        buffer2 = { = {static npos = 4294967195, m_pchData = 0x8cddcfc " | Files: 0 (0)"}, }
        buffer3 = 0x8143803 "ÉÃ\220U\211å\213E\b\213@\004]Ã\220U\211å\203ì\b\213E\f\211D$\004\213E\b\211\004$è8\031"
        bmp = (class wxStaticBitmap *) 0xbffff018
#6  0x082b31b9 in CamuleDlg::OnGUITimer(wxTimerEvent&) (this=0x8859de8) at amuleDlg.cpp:1044
        msPrev1 = 15331
        msPrev5 = 15331
        msPrevGraph = 15331
        msPrevStats = 0
        msPrevHist = 1000
        msCur = 15331
        bStatsVisible = false
        msGraphUpdate = 3000
        sStatsUpdate = 5
#7  0x404f548a in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const (this=0x85f2c18, handler=0x8859de8, func=
      {__pfn = 0x82b3014 , __delta = 0}, event=@0xbffff1e0) at src/common/appbase.cpp:288
No locals.
#8  0x4059149f in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (entry=@0x85e2fc0, handler=0x8859de8, event=@0xbffff1e0)
    at src/common/event.cpp:1169
        tableId1 = 6128
        tableId2 = -1
#9  0x405904e0 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) (this=0x85e2e74, event=@0xbffff1e0, self=0x8859de8) at src/common/event.cpp:837
        n = 0
        eventEntryTable = (const wxEventTableEntryPointerArray &) @0x895ec74: { = {m_nSize = 1, m_nCount = 1, m_pItems = 0x895ee78}, }
        count = 1
        eventType = 10082
        eTTnode = (EventTypeTable * const) 0x895ec70
#10 0x405916b8 in wxEvtHandler::ProcessEvent(wxEvent&) (this=0x8859de8, event=@0xbffff1e0) at src/common/event.cpp:1231
No locals.
#11 0x40378b2b in wxTimerBase::Notify() (this=0x89658a8) at src/common/timercmn.cpp:60
        event = { = { = {_vptr.wxObject = 0x83f6b00, static ms_classInfo = {m_className = 0x4059e86d "wxObject", m_objectSize = 8, m_objectConstructor = 0,
        m_baseInfo1 = 0x0, m_baseInfo2 = 0x0, static sm_first = 0x83f7fa8, m_next = 0x405d52d0, static sm_classTable = 0x85e4060}, m_refData = 0x0}, m_eventObject = 0x0,
    m_eventType = 10082, m_timeStamp = 0, m_id = 6128, m_callbackUserData = 0x0, m_propagationLevel = 0, m_skipped = false, m_isCommandEvent = false, static ms_classInfo = {
      m_className = 0x405a39b7 "wxEvent", m_objectSize = 36, m_objectConstructor = 0, m_baseInfo1 = 0x405d5294, m_baseInfo2 = 0x0, static sm_first = 0x83f7fa8,
      m_next = 0x405d5528, static sm_classTable = 0x85e4060}}, m_interval = 100, static ms_classInfo = {m_className = 0x403dbf22 "wxTimerEvent", m_objectSize = 40,
    m_objectConstructor = 0x40378944 , m_baseInfo1 = 0x405d5540, m_baseInfo2 = 0x0, static sm_first = 0x83f7fa8, m_next = 0x40457ee8,
    static sm_classTable = 0x85e4060}}
#12 0x40276a98 in timeout_callback (data=0x89658a8) at src/gtk/timer.cpp:47
        timer = (wxTimer *) 0x89658a8
#13 0x40786565 in g_main_set_poll_func () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#14 0x089658a8 in ?? ()
No symbol table info available.
#15 0x40797248 in ?? () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
Logged