aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 2.2.2 & 2.2.3 Crashes on FreeBSD 6.4 x64  (Read 7023 times)

bula

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
2.2.2 & 2.2.3 Crashes on FreeBSD 6.4 x64
« on: December 31, 2008, 05:48:05 PM »

Freshly compiled.

Code: [Select]
[root@fb:/home/mula/bin] # gdb amuled
GNU gdb 6.1.1 [FreeBSD]
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 "amd64-marcel-freebsd"...
(gdb) run -c /home/mula/.aMule/
Starting program: /home/mula/bin/amuled -c /home/mula/.aMule/
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.
--------------------------------------------------

HTTP download thread started
ListenSocket: Ok.
Loading temp files from /home/mula/.aMule/Temp.

All PartFiles Loaded.
No shareable files found in directory: /home/mula/.aMule/Incoming
[New Thread 0xd27400 (LWP 100076)]

Program received signal SIGBUS, Bus error.
[Switching to Thread 0xd27400 (LWP 100076)]
0x00000000006d5153 in GSocket::Input_Timeout (this=0xdd1a00)
    at ./src/unix/gsocket.cpp:1547
1547        wxFD_SET(m_fd, &readfds);
(gdb) bt
#0  0x00000000006d5153 in GSocket::Input_Timeout (this=0xdd1a00)
    at ./src/unix/gsocket.cpp:1547
#1  0x00000000006d4647 in GSocket::Read (this=0xdd1a00,
    buffer=0xd80127 ":57 GMT\r\n\r\n2.2.2\n", size=3800)
    at ./src/unix/gsocket.cpp:1164
#2  0x00000000006ceb3f in wxSocketBase::_Read (this=0xcf6e00, buffer=0xd80127,
    nbytes=3800) at ./src/common/socket.cpp:363
#3  0x00000000006cee40 in wxSocketBase::Peek (this=0xcf6e00, buffer=0xd80000,
    nbytes=4095) at ./src/common/socket.cpp:487
#4  0x00000000006cbf04 in wxProtocol::ReadLine (sock=0xcf6e00,
    result=@0x7fffff9f5b20) at ./src/common/protocol.cpp:109
#5  0x00000000006c95ce in wxHTTP::ParseHeaders (this=0xcf6e00)
    at ./src/common/http.cpp:179
#6  0x00000000006ca3c0 in wxHTTP::BuildRequest (this=0xcf6e00,
    path=@0x7fffff9f5dd0, req=wxHTTP::wxHTTP_GET) at ./src/common/http.cpp:332
#7  0x00000000006ca665 in wxHTTP::GetInputStream (this=0xcf6e00,
    path=@0x7fffff9f5dd0) at ./src/common/http.cpp:404
#8  0x00000000004bd684 in CHTTPDownloadThread::GetInputStream (this=0xd53400,
    url_handler=0x7fffff9f5e58, location=@0xffffffff, proxy=false)
    at HTTPDownload.cpp:324
#9  0x00000000004bda81 in CHTTPDownloadThread::Entry (this=0xd53400)
    at HTTPDownload.cpp:192
#10 0x0000000000750600 in wxThreadInternal::PthreadStart (thread=0xd53400)
---Type <return> to continue, or q <return> to quit---
    at ./src/unix/threadpsx.cpp:766
#11 0x00000000007504d5 in wxPthreadStart (ptr=0xd53400)
    at ./src/unix/threadpsx.cpp:718
#12 0x0000000800addb49 in pthread_create () from /lib/libpthread.so.2
#13 0x0000000801063614 in makecontext () from /lib/libc.so.6
#14 0x0000000000000000 in ?? ()
#15 0x0000000000d27400 in ?? ()
#16 0x00000000007504c0 in wxSemaphoreInternal::Post ()
    at ./src/unix/threadpsx.cpp:587
(gdb) bt full
#0  0x00000000006d5153 in GSocket::Input_Timeout (this=0xdd1a00)
    at ./src/unix/gsocket.cpp:1547
        tv = {tv_sec = 600, tv_usec = 0}
        readfds = {__fds_bits = {0 <repeats 16 times>}}
        ret = 0
#1  0x00000000006d4647 in GSocket::Read (this=0xdd1a00,
    buffer=0xd80127 ":57 GMT\r\n\r\n2.2.2\n", size=3800)
    at ./src/unix/gsocket.cpp:1164
        ret = 7527714
        __func__ = "Read"
#2  0x00000000006ceb3f in wxSocketBase::_Read (this=0xcf6e00, buffer=0xd80127,
    nbytes=3800) at ./src/common/socket.cpp:363
        more = true
        total = 295
        ret = 32767
#3  0x00000000006cee40 in wxSocketBase::Peek (this=0xcf6e00, buffer=0xd80000,
    nbytes=4095) at ./src/common/socket.cpp:487
No locals.
#4  0x00000000006cbf04 in wxProtocol::ReadLine (sock=0xcf6e00,
    result=@0x7fffff9f5b20) at ./src/common/protocol.cpp:109
        nRead = 140737482021472
        eol = 0xc1 <Error reading address 0xc1: Bad address>
        LINE_BUF = 4095
---Type <return> to continue, or q <return> to quit---
        buf = {
  m_str = 0xd80000 "Server: nginx/0.6.31\r\nDate: Thu, 01 Jan 2009 10:09:57 GMT\                                                                                                                                                             r\nContent-Type: text/plain\r\nConnection: close\r\nLast-Modified: Fri, 08 Aug 2                                                                                                                                                             008 14:59:30 GMT\r\nETag: \"6-453f40d78f880\"\r\nAccept-Ranges: bytes\r\nCon"...                                                                                                                                                             }
        pBuf = 0xd80000 "Server: nginx/0.6.31\r\nDate: Thu, 01 Jan 2009 10:09:57                                                                                                                                                              GMT\r\nContent-Type: text/plain\r\nConnection: close\r\nLast-Modified: Fri, 08                                                                                                                                                              Aug 2008 14:59:30 GMT\r\nETag: \"6-453f40d78f880\"\r\nAccept-Ranges: bytes\r\nCo                                                                                                                                                             n"...
#5  0x00000000006c95ce in wxHTTP::ParseHeaders (this=0xcf6e00)
    at ./src/common/http.cpp:179
        left_str = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x7fffff9f5b50}, <No data fields>}
        line = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x881b18}, <No data fields>}
        tokenzr = {<wxObject> = {_vptr$wxObject = 0x7965d0,
    static ms_classInfo = {m_className = 0x87a3b8, m_objectSize = 16,
      m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
      static sm_first = 0xcea680, m_next = 0xcf22c0,
      static sm_classTable = 0xcf3100}, m_refData = 0x0},
  m_string = {<wxStringBase> = {static npos = 18446744073709551615,
      m_pchData = 0x881b18}, <No data fields>}, m_delims = {<wxStringBase> = {
      static npos = 18446744073709551615,
---Type <return> to continue, or q <return> to quit---
      m_pchData = 0x881b18}, <No data fields>}, m_pos = 8583601648,
  m_mode = wxTOKEN_INVALID, m_lastDelim = 0}
#6  0x00000000006ca3c0 in wxHTTP::BuildRequest (this=0xcf6e00,
    path=@0x7fffff9f5dd0, req=wxHTTP::wxHTTP_GET) at ./src/common/http.cpp:332
        tmp_str = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0xd29618}, <No data fields>}
        token = {<wxObject> = {_vptr$wxObject = 0x7965d0,
    static ms_classInfo = {m_className = 0x87a3b8, m_objectSize = 16,
      m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
      static sm_first = 0xcea680, m_next = 0xcf22c0,
      static sm_classTable = 0xcf3100}, m_refData = 0x0},
  m_string = {<wxStringBase> = {static npos = 18446744073709551615,
      m_pchData = 0xd29798}, <No data fields>}, m_delims = {<wxStringBase> = {
      static npos = 18446744073709551615,
      m_pchData = 0xd29698}, <No data fields>}, m_pos = 13,
  m_mode = wxTOKEN_STRTOK, m_lastDelim = 32}
        ret_value = 255
        pathbuf = {
  m_str = 0xd23240 "GET http://amule.sourceforge.net/lastversion HTTP/1.0\r\n"}
        tmp_str2 = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0xd29718}, <No data fields>}
        request = (const wxChar *) 0x85c874
        buf = {<wxStringBase> = {static npos = 18446744073709551615,
---Type <return> to continue, or q <return> to quit---
    m_pchData = 0xd2c618}, <No data fields>}
#7  0x00000000006ca665 in wxHTTP::GetInputStream (this=0xcf6e00,
    path=@0x7fffff9f5dd0) at ./src/common/http.cpp:404
        inp_stream = (wxHTTPStream *) 0x1000000ffffffff
        new_path = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x881b18}, <No data fields>}
#8  0x00000000004bd684 in CHTTPDownloadThread::GetInputStream (this=0xd53400,
    url_handler=0x7fffff9f5e58, location=@0xffffffff, proxy=false)
    at HTTPDownload.cpp:324
        host = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0xd6a918}, <No data fields>}
        url = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0xd6ab18}, <No data fields>}
        url_read_stream = (class wxInputStream *) 0x871a28
        bad_url_pos = -1
        location_url = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0xd6f618}, <No data fields>}
        port = 80
        addr = {<wxIPaddress> = {<wxSockAddress> = {<wxObject> = {
        _vptr$wxObject = 0x85d250, static ms_classInfo = {
          m_className = 0x87a3b8, m_objectSize = 16, m_objectConstructor = 0,
          m_baseInfo1 = 0x0, m_baseInfo2 = 0x0, static sm_first = 0xcea680,
          m_next = 0xcf22c0, static sm_classTable = 0xcf3100},
---Type <return> to continue, or q <return> to quit---
        m_refData = 0x0}, static ms_classInfo = {m_className = 0x85d108,
        m_objectSize = 24, m_objectConstructor = 0, m_baseInfo1 = 0xcf21c0,
        m_baseInfo2 = 0x0, static sm_first = 0xcea680, m_next = 0xcea980,
        static sm_classTable = 0xcf3100}, m_address = 0xd6b1c0},
    static ms_classInfo = {m_className = 0x85d140, m_objectSize = 24,
      m_objectConstructor = 0, m_baseInfo1 = 0xcea740, m_baseInfo2 = 0x0,
      static sm_first = 0xcea680, m_next = 0xcea740,
      static sm_classTable = 0xcf3100}}, static ms_classInfo = {
    m_className = 0x85d170, m_objectSize = 32,
    m_objectConstructor = 0x6cc520 <wxIPV4address::wxCreateObject()>,
    m_baseInfo1 = 0xcea780, m_baseInfo2 = 0x0, static sm_first = 0xcea680,
    m_next = 0xcea780, static sm_classTable = 0xcf3100},
  m_origHostname = {<wxStringBase> = {static npos = 18446744073709551615,
      m_pchData = 0xd6a918}, <No data fields>}}
#9  0x00000000004bda81 in CHTTPDownloadThread::Entry (this=0xd53400)
    at HTTPDownload.cpp:192
        error = (const wxString &) @0xd53400: {<wxStringBase> = {
    static npos = 18446744073709551615,
    m_pchData = 0x7c5790}, <No data fields>}
        url_handler = (class wxHTTP *) 0xcf6e00
        url_read_stream = (class wxInputStream *) 0x0
        proxy_data = (const CProxyData *) 0x8000000000000000
        use_proxy = false
---Type <return> to continue, or q <return> to quit---
#10 0x0000000000750600 in wxThreadInternal::PthreadStart (thread=0xd53400)
    at ./src/unix/threadpsx.cpp:766
        pthread = (wxThreadInternal *) 0xd53480
        rc = 0
        dontRunAtAll = false
        __FUNCTION__ = "PthreadStart"
#11 0x00000000007504d5 in wxPthreadStart (ptr=0xd53400)
    at ./src/unix/threadpsx.cpp:718
No locals.
#12 0x0000000800addb49 in pthread_create () from /lib/libpthread.so.2
No symbol table info available.
#13 0x0000000801063614 in makecontext () from /lib/libc.so.6
No symbol table info available.
#14 0x0000000000000000 in ?? ()
No symbol table info available.
#15 0x0000000000d27400 in ?? ()
No symbol table info available.
#16 0x00000000007504c0 in wxSemaphoreInternal::Post ()
    at ./src/unix/threadpsx.cpp:587
        gs_condAllDeleted = (wxCondition *) 0xd02220
        gs_tidMain = 0xcfe000
        gs_mutexAllThreads = (wxMutex *) 0xd021c0
        gs_mutexGui = (wxMutex *) 0xd021e0
---Type <return> to continue, or q <return> to quit---
        gs_mutexDeleteThread = (wxMutex *) 0xd02200
        EXITCODE_CANCELLED = (void * const) 0xffffffffffffffff
        gs_allThreads = {<wxBaseArrayPtrVoid> = {m_nSize = 16, m_nCount = 4,
    m_pItems = 0xd69b80}, <No data fields>}
        gs_nThreadsBeingDeleted = 0
        gs_keySelf = 0
        typeinfo for wxThreadModule = <incomplete type>
        typeinfo for wxThreadHelperThread = <incomplete type>
        typeinfo name for wxThread = "8wxThread"
        wxThreadModule::ms_classInfo = {m_className = 0x88c1a0,
  m_objectSize = 48,
  m_objectConstructor = 0x751f40 <wxThreadModule::wxCreateObject()>,
  m_baseInfo1 = 0xcf2140, m_baseInfo2 = 0x0, static sm_first = 0xcea680,
  m_next = 0xcf28e0, static sm_classTable = 0xcf3100}
        typeinfo name for wxThreadModule = "14wxThreadModule"
        typeinfo for wxThread = <incomplete type>
        *_ZZN16wxThreadInternal8SetStateE13wxThreadStateE10stateNames = {
  0x8897dc, 0x8897f0, 0x889810, 0x88982c}
        typeinfo name for wxThreadHelperThread = "20wxThreadHelperThread"
(gdb)
(gdb) thread apply all bt
[New Thread 0xdcf400 (sleeping)]
[New Thread 0xdd5000 (sleeping)]
[New Thread 0xcfe400 (LWP 100058)]

Thread 6 (Thread 0xcfe400 (LWP 100058)):
#0  0x0000000800aec96c in pthread_testcancel () from /lib/libpthread.so.2
#1  0x0000000800adb1b0 in sigaction () from /lib/libpthread.so.2
#2  0x0000000800ae51aa in pthread_mutexattr_init () from /lib/libpthread.so.2
#3  0x0000000000000000 in ?? ()
Error accessing memory address 0x7fffffbff000: Bad address.
0x00000000006d5153      1547        wxFD_SET(m_fd, &readfds);
(gdb)

edit recompiled wx with debug flag, to give more detailed bt.
« Last Edit: January 01, 2009, 11:16:40 AM by bula »
Logged

bula

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: 2.2.2 & 2.2.3 Crashes on FreeBSD 6.4 x64
« Reply #1 on: January 09, 2009, 04:10:54 PM »

Bah no response it seems that I'll have to continue using M$ Windows for Download/ NAS, instead of FreeBSD.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: 2.2.2 & 2.2.3 Crashes on FreeBSD 6.4 x64
« Reply #2 on: January 09, 2009, 04:16:41 PM »

Try to disable "Check for new version at startup".
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: 2.2.2 & 2.2.3 Crashes on FreeBSD 6.4 x64
« Reply #3 on: January 09, 2009, 04:17:36 PM »

Hello bula,

the first report is probably related to socket initialization and we're already working on resolving the issue.

The second one seems to be related to crypto++, would you be so kind as to run "cryptest.exe v" in order to make sure your crypto++ library works well?

kind regards
Logged

bula

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: 2.2.2 & 2.2.3 Crashes on FreeBSD 6.4 x64
« Reply #4 on: January 10, 2009, 11:29:56 AM »

Disabled CheckForNewVersion in config file, now it starts.
As webgui goes.  This is what I get in console window after I enter the password.
Code: [Select]
11:41:05: Debug: WebInterface.cpp(122): assert "m_fds[i] == fd" failed in RemoveSocket().
WebInterface.cpp(122): assert "m_fds[i] == fd" failed in RemoveSocket().

Regarding cryptopp: I can copy paste whole report, but I think that all you want to hear is that at the end it says that All tests have passed.

Regards

P.S. Please try to give a little feedback next time. For me even we are looking into it works. As I'm also Open source developer myself I can tell that this is the only thing users want to hear when they report a problem.
« Last Edit: January 10, 2009, 11:47:01 AM by bula »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: 2.2.2 & 2.2.3 Crashes on FreeBSD 6.4 x64
« Reply #5 on: January 10, 2009, 12:13:04 PM »

Sorry, bula, the second backtrace wasn't you. Forget about crypto++, yours is a real bug. (probably more than one :( ).

Well, frankly I'm afraid no one wrote this, because no one was looking into it. Being an open source developer yourself, you probably know how development is done in the spare free time.

I would like to proceed this way: There have been changes to the code in our developmental version and there will soon be changes to amuleweb, too. Would you kindly install a current developmental version and try to create a new backtrace? We have currently no BSD developers and your help would be much appreciated.
Logged

bula

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: 2.2.2 & 2.2.3 Crashes on FreeBSD 6.4 x64
« Reply #6 on: January 10, 2009, 02:21:34 PM »

SVN rev. 9364
Code: [Select]
[root@fb ~]# gdb amuled
GNU gdb 6.1.1 [FreeBSD]
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 "amd64-marcel-freebsd"...
(gdb) run -c /home/mula/.aMule/
Starting program: /home/mula/bin/amuled -c /home/mula/.aMule/
warning: Unable to get location for thread creation breakpoint: generic error
[New LWP 100080]
 2009-01-10 14:17:52: amuled: OnInit - starting timer
[New Thread 0xbef000 (LWP 100080)]
 2009-01-10 14:17:53: Initialising aMuled SVN using  v2.8.9 (Debugging) (Snapshot: rev. 9364)
 2009-01-10 14:17:53: Checking if there is an instance already running...
 2009-01-10 14:17:53: No other instances are running.
!2009-01-10 14:17:53: ERROR: WARNING Warning! You are running aMule as root.
!2009-01-10 14:17:53: Doing so is not recommended for security reasons,
!2009-01-10 14:17:53: and you are advised to run aMule as an normal
!2009-01-10 14:17:53: 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.
--------------------------------------------------

 2009-01-10 14:17:53: ListenSocket: Ok.
 2009-01-10 14:17:53: Loading temp files from /home/mula/.aMule/Temp.
 2009-01-10 14:17:53: All PartFiles Loaded.
 2009-01-10 14:17:53: No shareable files found in directory: /home/mula/.aMule/Incoming
 2009-01-10 14:17:54: HTTP download thread started
[New Thread 0xcb0800 (LWP 100074)]

Program received signal SIGBUS, Bus error.
[Switching to Thread 0xcb0800 (LWP 100074)]
0x0000000000672953 in GSocket::Input_Timeout (this=0xcb8400)
    at ./src/unix/gsocket.cpp:1547
1547        wxFD_SET(m_fd, &readfds);
Current language:  auto; currently c++
(gdb) bt
#0  0x0000000000672953 in GSocket::Input_Timeout (this=0xcb8400)
    at ./src/unix/gsocket.cpp:1547
#1  0x0000000000671e47 in GSocket::Read (this=0xcb8400,
    buffer=0xcc1127 ":30 GMT\r\n\r\n2.2.3\n", size=3800)
    at ./src/unix/gsocket.cpp:1164
#2  0x000000000066bf1f in wxSocketBase::_Read (this=0xcb4e00, buffer=0xcc1127,
    nbytes=3800) at ./src/common/socket.cpp:363
#3  0x000000000066c220 in wxSocketBase::Peek (this=0xcb4e00, buffer=0xcc1000,
    nbytes=4095) at ./src/common/socket.cpp:487
#4  0x0000000000669144 in wxProtocol::ReadLine (sock=0xcb4e00,
    result=@0x7fffff9f5ab0) at ./src/common/protocol.cpp:109
#5  0x00000000006661ce in wxHTTP::ParseHeaders (this=0xcb4e00)
    at ./src/common/http.cpp:179
#6  0x0000000000666fc0 in wxHTTP::BuildRequest (this=0xcb4e00,
    path=@0x7fffff9f5da0, req=wxHTTP::wxHTTP_GET) at ./src/common/http.cpp:332
#7  0x0000000000667265 in wxHTTP::GetInputStream (this=0xcb4e00,
    path=@0x7fffff9f5da0) at ./src/common/http.cpp:404
#8  0x0000000000496a05 in CHTTPDownloadThread::GetInputStream ()
#9  0x0000000000497863 in CHTTPDownloadThread::Entry ()
#10 0x00000000006ef4c0 in wxThreadInternal::PthreadStart (thread=0xca1700)
    at ./src/unix/threadpsx.cpp:766
#11 0x00000000006ef395 in wxPthreadStart (ptr=0xca1700)
    at ./src/unix/threadpsx.cpp:718
---Type <return> to continue, or q <return> to quit---
#12 0x0000000800a65b49 in pthread_create () from /lib/libpthread.so.2
#13 0x0000000800feb614 in makecontext () from /lib/libc.so.6
#14 0x0000000000000000 in ?? ()
#15 0x0000000000cb0800 in ?? ()
#16 0x00000000006ef380 in wxSemaphoreInternal::Post ()
    at ./src/unix/threadpsx.cpp:587
(gdb) bt full
#0  0x0000000000672953 in GSocket::Input_Timeout (this=0xcb8400)
    at ./src/unix/gsocket.cpp:1547
        tv = {tv_sec = 600, tv_usec = 0}
        readfds = {__fds_bits = {0 <repeats 16 times>}}
        ret = 32767
#1  0x0000000000671e47 in GSocket::Read (this=0xcb8400,
    buffer=0xcc1127 ":30 GMT\r\n\r\n2.2.3\n", size=3800)
    at ./src/unix/gsocket.cpp:1164
        ret = 7129714
        __func__ = "Read"
#2  0x000000000066bf1f in wxSocketBase::_Read (this=0xcb4e00, buffer=0xcc1127,
    nbytes=3800) at ./src/common/socket.cpp:363
        more = true
        total = 295
        ret = 32767
#3  0x000000000066c220 in wxSocketBase::Peek (this=0xcb4e00, buffer=0xcc1000,
    nbytes=4095) at ./src/common/socket.cpp:487
No locals.
#4  0x0000000000669144 in wxProtocol::ReadLine (sock=0xcb4e00,
    result=@0x7fffff9f5ab0) at ./src/common/protocol.cpp:109
        nRead = 140737482021360
        eol = 0xc1 <Error reading address 0xc1: Bad address>
        LINE_BUF = 4095
---Type <return> to continue, or q <return> to quit---
        buf = {
  m_str = 0xcc1000 "Server: nginx/0.6.31\r\nDate: Sat, 10 Jan 2009 13:17:30 GMT\r\nContent-Type: text/plain\r\nConnection: close\r\nLast-Modified: Sun, 04 Jan 2009 03:27:39 GMT\r\nETag: \"6-45f9fc19440c0\"\r\nAccept-Ranges: bytes\r\nCon"...}
        pBuf = 0xcc1000 "Server: nginx/0.6.31\r\nDate: Sat, 10 Jan 2009 13:17:30 GMT\r\nContent-Type: text/plain\r\nConnection: close\r\nLast-Modified: Sun, 04 Jan 2009 03:27:39 GMT\r\nETag: \"6-45f9fc19440c0\"\r\nAccept-Ranges: bytes\r\nCon"...
#5  0x00000000006661ce in wxHTTP::ParseHeaders (this=0xcb4e00)
    at ./src/common/http.cpp:179
        left_str = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x7fffff9f5aa0}, <No data fields>}
        line = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x80a418}, <No data fields>}
        tokenzr = {<wxObject> = {_vptr$wxObject = 0x735230,
    static ms_classInfo = {m_className = 0x802cb8, m_objectSize = 16,
      m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
      static sm_first = 0xbdb180, m_next = 0xbe2dc0,
      static sm_classTable = 0xbe4100}, m_refData = 0x0},
  m_string = {<wxStringBase> = {static npos = 18446744073709551615,
      m_pchData = 0x80a418}, <No data fields>}, m_delims = {<wxStringBase> = {
      static npos = 18446744073709551615,
---Type <return> to continue, or q <return> to quit---
      m_pchData = 0x80a418}, <No data fields>}, m_pos = 140737482021568,
  m_mode = wxTOKEN_INVALID, m_lastDelim = 0}
#6  0x0000000000666fc0 in wxHTTP::BuildRequest (this=0xcb4e00,
    path=@0x7fffff9f5da0, req=wxHTTP::wxHTTP_GET) at ./src/common/http.cpp:332
        tmp_str = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0xc1b518}, <No data fields>}
        token = {<wxObject> = {_vptr$wxObject = 0x735230,
    static ms_classInfo = {m_className = 0x802cb8, m_objectSize = 16,
      m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
      static sm_first = 0xbdb180, m_next = 0xbe2dc0,
      static sm_classTable = 0xbe4100}, m_refData = 0x0},
  m_string = {<wxStringBase> = {static npos = 18446744073709551615,
      m_pchData = 0xc1b718}, <No data fields>}, m_delims = {<wxStringBase> = {
      static npos = 18446744073709551615,
      m_pchData = 0xc1b618}, <No data fields>}, m_pos = 13,
  m_mode = wxTOKEN_STRTOK, m_lastDelim = 32}
        ret_value = 255
        pathbuf = {
  m_str = 0xca1c80 "GET http://amule.sourceforge.net/lastversion HTTP/1.0\r\n"}
        tmp_str2 = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0xc1b698}, <No data fields>}
        request = (const wxChar *) 0x7e5174
        buf = {<wxStringBase> = {static npos = 18446744073709551615,
---Type <return> to continue, or q <return> to quit---
    m_pchData = 0xcc3018}, <No data fields>}
#7  0x0000000000667265 in wxHTTP::GetInputStream (this=0xcb4e00,
    path=@0x7fffff9f5da0) at ./src/common/http.cpp:404
        inp_stream = (wxHTTPStream *) 0x1007fffff9f5da0
        new_path = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x80a418}, <No data fields>}
#8  0x0000000000496a05 in CHTTPDownloadThread::GetInputStream ()
No symbol table info available.
#9  0x0000000000497863 in CHTTPDownloadThread::Entry ()
No symbol table info available.
#10 0x00000000006ef4c0 in wxThreadInternal::PthreadStart (thread=0xca1700)
    at ./src/unix/threadpsx.cpp:766
        pthread = (wxThreadInternal *) 0xca1740
        rc = 0
        dontRunAtAll = false
        __FUNCTION__ = "PthreadStart"
#11 0x00000000006ef395 in wxPthreadStart (ptr=0xca1700)
    at ./src/unix/threadpsx.cpp:718
No locals.
#12 0x0000000800a65b49 in pthread_create () from /lib/libpthread.so.2
No symbol table info available.
#13 0x0000000800feb614 in makecontext () from /lib/libc.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#14 0x0000000000000000 in ?? ()
No symbol table info available.
#15 0x0000000000cb0800 in ?? ()
No symbol table info available.
#16 0x00000000006ef380 in wxSemaphoreInternal::Post ()
    at ./src/unix/threadpsx.cpp:587
        gs_condAllDeleted = (wxCondition *) 0xbf3220
        gs_tidMain = 0xbef000
        gs_mutexAllThreads = (wxMutex *) 0xbf31c0
        gs_mutexGui = (wxMutex *) 0xbf31e0
        gs_mutexDeleteThread = (wxMutex *) 0xbf3200
        EXITCODE_CANCELLED = (void * const) 0xffffffffffffffff
        gs_allThreads = {<wxBaseArrayPtrVoid> = {m_nSize = 16, m_nCount = 4,
    m_pItems = 0xcae680}, <No data fields>}
        gs_nThreadsBeingDeleted = 0
        gs_keySelf = 0
        *_ZZN16wxThreadInternal8SetStateE13wxThreadStateE10stateNames = {
  0x8120dc, 0x8120f0, 0x812110, 0x81212c}
        typeinfo name for wxThreadHelperThread = "20wxThreadHelperThread"
        typeinfo name for wxThreadModule = "14wxThreadModule"
        wxThreadModule::ms_classInfo = {m_className = 0x814aa0,
  m_objectSize = 48,
  m_objectConstructor = 0x6f0e00 <wxThreadModule::wxCreateObject()>,
---Type <return> to continue, or q <return> to quit---
  m_baseInfo1 = 0xbe2c40, m_baseInfo2 = 0x0, static sm_first = 0xbdb180,
  m_next = 0xbe33e0, static sm_classTable = 0xbe4100}
        typeinfo name for wxThread = "8wxThread"
        typeinfo for wxThreadHelperThread = <incomplete type>
        typeinfo for wxThreadModule = <incomplete type>
        typeinfo for wxThread = <incomplete type>
(gdb) thread apply all bt
[New Thread 0xcb0000 (sleeping)]
[New Thread 0xcb0c00 (sleeping)]
[New Thread 0xbef400 (LWP 100072)]

Thread 6 (Thread 0xbef400 (LWP 100072)):
#0  0x0000000800a7496c in pthread_testcancel () from /lib/libpthread.so.2
#1  0x0000000800a631b0 in sigaction () from /lib/libpthread.so.2
#2  0x0000000800a6d1aa in pthread_mutexattr_init () from /lib/libpthread.so.2
#3  0x0000000000000000 in ?? ()
Error accessing memory address 0x7fffffbff000: Bad address.
0x0000000000672953      1547        wxFD_SET(m_fd, &readfds);

Having  SVN url and dooing svn co & svn up from console.

Can do step by step if neede, if one knows a good quick & small tutorial on using gdb.
« Last Edit: January 10, 2009, 02:23:53 PM by bula »
Logged

bula

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: 2.2.2 & 2.2.3 Crashes on FreeBSD 6.4 x64
« Reply #7 on: January 10, 2009, 02:28:28 PM »

Another one. same rev. Check for new v. disabled.  Pressed button to download serverlist from url in windows gui. As It seems there is something wrong with http stack?
Code: [Select]
[root@fb ~]# gdb amuled
GNU gdb 6.1.1 [FreeBSD]
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 "amd64-marcel-freebsd"...
(gdb) run -c /home/mula/.aMule/
Starting program: /home/mula/bin/amuled -c /home/mula/.aMule/
warning: Unable to get location for thread creation breakpoint: generic error
[New LWP 100054]
 2009-01-10 14:26:08: amuled: OnInit - starting timer
[New Thread 0xbef000 (LWP 100054)]
 2009-01-10 14:26:08: Initialising aMuled SVN using  v2.8.9 (Debugging) (Snapshot: rev. 9364)
 2009-01-10 14:26:08: Checking if there is an instance already running...
 2009-01-10 14:26:08: No other instances are running.
!2009-01-10 14:26:08: ERROR: WARNING Warning! You are running aMule as root.
!2009-01-10 14:26:08: Doing so is not recommended for security reasons,
!2009-01-10 14:26:08: and you are advised to run aMule as an normal
!2009-01-10 14:26:08: 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.
--------------------------------------------------

 2009-01-10 14:26:08: ListenSocket: Ok.
 2009-01-10 14:26:08: Loading temp files from /home/mula/.aMule/Temp.
 2009-01-10 14:26:08: All PartFiles Loaded.
 2009-01-10 14:26:08: No shareable files found in directory: /home/mula/.aMule/Incoming
 2009-01-10 14:26:22: HTTP download thread started
[New Thread 0xcb7800 (LWP 100054)]

Program received signal SIGBUS, Bus error.
[Switching to Thread 0xcb7800 (LWP 100054)]
0x0000000000672953 in GSocket::Input_Timeout (this=0xc09d00)
    at ./src/unix/gsocket.cpp:1547
1547        wxFD_SET(m_fd, &readfds);
Current language:  auto; currently c++
(gdb) bt
#0  0x0000000000672953 in GSocket::Input_Timeout (this=0xc09d00)
    at ./src/unix/gsocket.cpp:1547
#1  0x0000000000671e47 in GSocket::Read (this=0xc09d00,
    buffer=0xcd16c1 "\036\003\001", size=2366) at ./src/unix/gsocket.cpp:1164
#2  0x000000000066bf1f in wxSocketBase::_Read (this=0xc62e00, buffer=0xcd16c1,
    nbytes=2366) at ./src/common/socket.cpp:363
#3  0x000000000066c220 in wxSocketBase::Peek (this=0xc62e00, buffer=0xcd1000,
    nbytes=4095) at ./src/common/socket.cpp:487
#4  0x0000000000669144 in wxProtocol::ReadLine (sock=0xc62e00,
    result=@0x7fffff3f2ab0) at ./src/common/protocol.cpp:109
#5  0x00000000006661ce in wxHTTP::ParseHeaders (this=0xc62e00)
    at ./src/common/http.cpp:179
#6  0x0000000000666fc0 in wxHTTP::BuildRequest (this=0xc62e00,
    path=@0x7fffff3f2da0, req=wxHTTP::wxHTTP_GET) at ./src/common/http.cpp:332
#7  0x0000000000667265 in wxHTTP::GetInputStream (this=0xc62e00,
    path=@0x7fffff3f2da0) at ./src/common/http.cpp:404
#8  0x0000000000496a05 in CHTTPDownloadThread::GetInputStream ()
#9  0x0000000000497863 in CHTTPDownloadThread::Entry ()
#10 0x00000000006ef4c0 in wxThreadInternal::PthreadStart (thread=0xca1f40)
    at ./src/unix/threadpsx.cpp:766
#11 0x00000000006ef395 in wxPthreadStart (ptr=0xca1f40)
    at ./src/unix/threadpsx.cpp:718
#12 0x0000000800a65b49 in pthread_create () from /lib/libpthread.so.2
---Type <return> to continue, or q <return> to quit---
#13 0x0000000800feb614 in makecontext () from /lib/libc.so.6
#14 0x0000000000000000 in ?? ()
#15 0x0000000000cb7800 in ?? ()
#16 0x00000000006ef380 in wxSemaphoreInternal::Post ()
    at ./src/unix/threadpsx.cpp:587
(gdb) bt full
#0  0x0000000000672953 in GSocket::Input_Timeout (this=0xc09d00)
    at ./src/unix/gsocket.cpp:1547
        tv = {tv_sec = 600, tv_usec = 0}
        readfds = {__fds_bits = {0 <repeats 16 times>}}
        ret = 32767
#1  0x0000000000671e47 in GSocket::Read (this=0xc09d00,
    buffer=0xcd16c1 "\036\003\001", size=2366) at ./src/unix/gsocket.cpp:1164
        ret = 7129714
        __func__ = "Read"
#2  0x000000000066bf1f in wxSocketBase::_Read (this=0xc62e00, buffer=0xcd16c1,
    nbytes=2366) at ./src/common/socket.cpp:363
        more = true
        total = 1729
        ret = 32767
#3  0x000000000066c220 in wxSocketBase::Peek (this=0xc62e00, buffer=0xcd1000,
    nbytes=4095) at ./src/common/socket.cpp:487
No locals.
#4  0x0000000000669144 in wxProtocol::ReadLine (sock=0xc62e00,
    result=@0x7fffff3f2ab0) at ./src/common/protocol.cpp:109
        nRead = 140737475717616
        eol = 0xc1 <Error reading address 0xc1: Bad address>
        LINE_BUF = 4095
        buf = {
---Type <return> to continue, or q <return> to quit---
  m_str = 0xcd1000 "Date: Sat, 10 Jan 2009 13:26:08 GMT\r\nServer: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e PHP/5.2.8\r\nX-Powered-By: PHP/5.2.8\r\nContent-Length: 1529\r\nConnection: close\r\nContent-Type: text/html\r\n\r\n"...}
        pBuf = 0xcd1000 "Date: Sat, 10 Jan 2009 13:26:08 GMT\r\nServer: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e PHP/5.2.8\r\nX-Powered-By: PHP/5.2.8\r\nContent-Length: 1529\r\nConnection: close\r\nContent-Type: text/html\r\n\r\n"...
#5  0x00000000006661ce in wxHTTP::ParseHeaders (this=0xc62e00)
    at ./src/common/http.cpp:179
        left_str = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x7fffff3f2aa0}, <No data fields>}
        line = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x80a418}, <No data fields>}
        tokenzr = {<wxObject> = {_vptr$wxObject = 0x735230,
    static ms_classInfo = {m_className = 0x802cb8, m_objectSize = 16,
      m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
      static sm_first = 0xbdb180, m_next = 0xbe2dc0,
      static sm_classTable = 0xbe4100}, m_refData = 0x0},
  m_string = {<wxStringBase> = {static npos = 18446744073709551615,
      m_pchData = 0x80a418}, <No data fields>}, m_delims = {<wxStringBase> = {
      static npos = 18446744073709551615,
      m_pchData = 0x80a418}, <No data fields>}, m_pos = 140737475717824,
  m_mode = wxTOKEN_INVALID, m_lastDelim = 0}
---Type <return> to continue, or q <return> to quit---
#6  0x0000000000666fc0 in wxHTTP::BuildRequest (this=0xc62e00,
    path=@0x7fffff3f2da0, req=wxHTTP::wxHTTP_GET) at ./src/common/http.cpp:332
        tmp_str = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0xc16b98}, <No data fields>}
        token = {<wxObject> = {_vptr$wxObject = 0x735230,
    static ms_classInfo = {m_className = 0x802cb8, m_objectSize = 16,
      m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
      static sm_first = 0xbdb180, m_next = 0xbe2dc0,
      static sm_classTable = 0xbe4100}, m_refData = 0x0},
  m_string = {<wxStringBase> = {static npos = 18446744073709551615,
      m_pchData = 0xc16d18}, <No data fields>}, m_delims = {<wxStringBase> = {
      static npos = 18446744073709551615,
      m_pchData = 0xc16c18}, <No data fields>}, m_pos = 13,
  m_mode = wxTOKEN_STRTOK, m_lastDelim = 32}
        ret_value = 255
        pathbuf = {
  m_str = 0xcc8080 "GET http://gruk.org/server.met.gz HTTP/1.0\r\n"}
        tmp_str2 = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0xc16c98}, <No data fields>}
        request = (const wxChar *) 0x7e5174
        buf = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0xc09f18}, <No data fields>}
#7  0x0000000000667265 in wxHTTP::GetInputStream (this=0xc62e00,
---Type <return> to continue, or q <return> to quit---
    path=@0x7fffff3f2da0) at ./src/common/http.cpp:404
        inp_stream = (wxHTTPStream *) 0x1007fffff3f2da0
        new_path = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x80a418}, <No data fields>}
#8  0x0000000000496a05 in CHTTPDownloadThread::GetInputStream ()
No symbol table info available.
#9  0x0000000000497863 in CHTTPDownloadThread::Entry ()
No symbol table info available.
#10 0x00000000006ef4c0 in wxThreadInternal::PthreadStart (thread=0xca1f40)
    at ./src/unix/threadpsx.cpp:766
        pthread = (wxThreadInternal *) 0xca1f80
        rc = 0
        dontRunAtAll = false
        __FUNCTION__ = "PthreadStart"
#11 0x00000000006ef395 in wxPthreadStart (ptr=0xca1f40)
    at ./src/unix/threadpsx.cpp:718
No locals.
#12 0x0000000800a65b49 in pthread_create () from /lib/libpthread.so.2
No symbol table info available.
#13 0x0000000800feb614 in makecontext () from /lib/libc.so.6
No symbol table info available.
#14 0x0000000000000000 in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#15 0x0000000000cb7800 in ?? ()
No symbol table info available.
#16 0x00000000006ef380 in wxSemaphoreInternal::Post ()
    at ./src/unix/threadpsx.cpp:587
        gs_condAllDeleted = (wxCondition *) 0xbf3220
        gs_tidMain = 0xbef000
        gs_mutexAllThreads = (wxMutex *) 0xbf31c0
        gs_mutexGui = (wxMutex *) 0xbf31e0
        gs_mutexDeleteThread = (wxMutex *) 0xbf3200
        EXITCODE_CANCELLED = (void * const) 0xffffffffffffffff
        gs_allThreads = {<wxBaseArrayPtrVoid> = {m_nSize = 16, m_nCount = 4,
    m_pItems = 0xcae680}, <No data fields>}
        gs_nThreadsBeingDeleted = 0
        gs_keySelf = 0
        *_ZZN16wxThreadInternal8SetStateE13wxThreadStateE10stateNames = {
  0x8120dc, 0x8120f0, 0x812110, 0x81212c}
        typeinfo name for wxThreadHelperThread = "20wxThreadHelperThread"
        typeinfo name for wxThreadModule = "14wxThreadModule"
        wxThreadModule::ms_classInfo = {m_className = 0x814aa0,
  m_objectSize = 48,
  m_objectConstructor = 0x6f0e00 <wxThreadModule::wxCreateObject()>,
  m_baseInfo1 = 0xbe2c40, m_baseInfo2 = 0x0, static sm_first = 0xbdb180,
  m_next = 0xbe33e0, static sm_classTable = 0xbe4100}
---Type <return> to continue, or q <return> to quit---
        typeinfo name for wxThread = "8wxThread"
        typeinfo for wxThreadHelperThread = <incomplete type>
        typeinfo for wxThreadModule = <incomplete type>
        typeinfo for wxThread = <incomplete type>
(gdb) thread apply all bt
[New Thread 0xcb0000 (sleeping)]
[New Thread 0xcb0800 (sleeping)]
[New Thread 0xbef400 (LWP 100072)]

Thread 6 (Thread 0xbef400 (LWP 100072)):
#0  0x0000000800a7496c in pthread_testcancel () from /lib/libpthread.so.2
#1  0x0000000800a631b0 in sigaction () from /lib/libpthread.so.2
#2  0x0000000800a6d1aa in pthread_mutexattr_init () from /lib/libpthread.so.2
#3  0x0000000000000000 in ?? ()
Error accessing memory address 0x7fffffbff000: Bad address.
0x0000000000672953      1547        wxFD_SET(m_fd, &readfds);
(gdb) thread apply all bt

Thread 6 (Thread 0xbef400 (LWP 100072)):
#0  0x0000000800a7496c in pthread_testcancel () from /lib/libpthread.so.2
#1  0x0000000800a631b0 in sigaction () from /lib/libpthread.so.2
#2  0x0000000800a6d1aa in pthread_mutexattr_init () from /lib/libpthread.so.2
#3  0x0000000000000000 in ?? ()
Error accessing memory address 0x7fffffbff000: Bad address.
0x0000000000672953      1547        wxFD_SET(m_fd, &readfds);
(gdb)
Logged