aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amuleweb instant crash after start  (Read 1521 times)

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
amuleweb instant crash after start
« on: April 14, 2005, 04:19:21 PM »

this is with current cvs....

with wx-cvs from yesterday

Code: [Select]
Detaching after fork from child process 26954.
16:30:13: Debug: ./src/common/string.cpp(475): assert "nStart <= length()" failed.

Call stack:
[05] wxStackWalker::Walk(unsigned long)
[06] 0x2aaaaad4e0c3
[07] wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[08] wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[09] wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)
[10] wxStringBase::find(wxStringBase const&, unsigned long) const
[11] wxStringBase::find(wchar_t const*, unsigned long, unsigned long) const
[12] wxString::Replace(wchar_t const*, wchar_t const*, bool)
[13] CWebServer::ReloadTemplates()              /home/stefanero/temp/amule-dev-cvs/src/WebServer.cpp:
[14] CWebServer::StartServer()                  /home/stefanero/temp/amule-dev-cvs/src/WebServer.cpp:
[15] CamulewebApp::Pre_Shell()                  /home/stefanero/temp/amule-dev-cvs/src/WebInterface.cpp:
[16] CaMuleExternalConnector::ConnectAndRun(wxString const&, wxString const&, s_CmdId*) /home/stefanero/temp/amule-dev-cvs/src/ExternalConnector.cpp:
[17] CamulewebApp::OnRun()                      /home/stefanero/temp/amule-dev-cvs/src/WebInterface.cpp:


Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 46912518081696 (LWP 26939)]
0x00002aaaaabcf42b in raise () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0x00002aaaaabcf42b in raise () from /lib/tls/libpthread.so.0
#1  0x00002aaaaad4ddc6 in wxTrap () at appbase.cpp:593
#2  0x00002aaaaad4e019 in DoShowAssertDialog (msg=@0x7fffffeb16a0) at appbase.cpp:696
#3  0x00002aaaaad4dd43 in wxAppTraitsBase::ShowAssertDialog (this=0x5bbf50, msg=@0x7fffffeb16a0) at appbase.cpp:540
#4  0x00002aaaaad4dcc9 in wxConsoleAppTraitsBase::ShowAssertDialog (this=0x5bbf50, msg=@0x7fffffeb16a0) at appbase.cpp:505
#5  0x00002aaaaad4e22d in ShowAssertDialog (szFile=0x2aaaaae152b0, nLine=475, szCond=0x2aaaaae15688, szMsg=0x0, traits=0x5bbf50) at appbase.cpp:824
#6  0x00002aaaaad4db81 in wxAppConsole::OnAssert (this=0x5bad90, file=0x2aaaaae152b0, line=475, cond=0x2aaaaae15688, msg=0x0) at appbase.cpp:451
#7  0x00002aaaaad4de89 in wxOnAssert (szFile=0x2aaaaae152b0, nLine=475, szCond=0x2aaaaae15688, szMsg=0x0) at appbase.cpp:639
#8  0x00002aaaaad4ddfc in wxAssert (cond=0, szFile=0x2aaaaae152b0, nLine=475, szCond=0x2aaaaae15688, szMsg=0x0) at appbase.cpp:606
#9  0x00002aaaaada5f74 in wxStringBase::find (this=0x5f4360, str=@0x7fffffeb1810, nStart=50) at string.cpp:475
#10 0x00002aaaaada6139 in wxStringBase::find (this=0x5f4360, sz=0x465970, nStart=50, n=18446744073709551615) at string.cpp:508
#11 0x00002aaaaada8b24 in wxString::Replace (this=0x5f4360, szOld=0x465970, szNew=0x465960, bReplaceAll=true) at string.cpp:1546
#12 0x000000000040ee7e in CWebServer::ReloadTemplates (this=0x5f3e60) at WebServer.cpp:435
#13 0x000000000040b855 in CWebServer::StartServer (this=0x5f3e60) at WebServer.cpp:251
#14 0x0000000000448592 in CamulewebApp::Pre_Shell (this=0x5bad90) at WebInterface.cpp:451
#15 0x0000000000450ca1 in CaMuleExternalConnector::ConnectAndRun (this=0x5bad90, ProgName=@0x7fffffeb1ee0, ProgVersion=@0x7fffffeb1ef0,
    commands=0x59c980) at ExternalConnector.cpp:348
#16 0x0000000000446483 in CamulewebApp::OnRun (this=0x5bad90) at WebInterface.cpp:224
#17 0x00002aaaaad86614 in wxEntry (argc=@0x7fffffeb1fbc, argv=0x5a0ff0) at init.cpp:417
#18 0x00002aaaaad8671d in wxEntry (argc=@0x7fffffeb1fbc, argv=0x7fffffeb2098) at init.cpp:429
#19 0x000000000044643a in main (argc=1, argv=0x7fffffeb2098) at WebInterface.cpp:297
(gdb) bt full
#0  0x00002aaaaabcf42b in raise () from /lib/tls/libpthread.so.0
No symbol table info available.
#1  0x00002aaaaad4ddc6 in wxTrap () at appbase.cpp:593
No locals.
#2  0x00002aaaaad4e019 in DoShowAssertDialog (msg=@0x7fffffeb16a0) at appbase.cpp:696
No locals.
#3  0x00002aaaaad4dd43 in wxAppTraitsBase::ShowAssertDialog (this=0x5bbf50, msg=@0x7fffffeb16a0) at appbase.cpp:540
No locals.
#4  0x00002aaaaad4dcc9 in wxConsoleAppTraitsBase::ShowAssertDialog (this=0x5bbf50, msg=@0x7fffffeb16a0) at appbase.cpp:505
No locals.
#5  0x00002aaaaad4e22d in ShowAssertDialog (szFile=0x2aaaaae152b0, nLine=475, szCond=0x2aaaaae15688, szMsg=0x0, traits=0x5bbf50) at appbase.cpp:824
        s_bNoAsserts = false
        msg = { = {static npos = 18446744073709551615, m_pchData = 0x6b4f78}, }
        dump = { = { = {_vptr.wxStackWalkerBase = 0x2aaaaaf62cb0}, static ms_exepath = { = {
        static npos = 18446744073709551615, m_pchData = 0x2aaaaae170d8}, }}, m_stackTrace = { = {
      static npos = 18446744073709551615, m_pchData = 0x6b6aa8}, }}
        count = 13
        stackTrace = { = {static npos = 18446744073709551615, m_pchData = 0x6b6aa8}, }
        maxLines = 20
#6  0x00002aaaaad4db81 in wxAppConsole::OnAssert (this=0x5bad90, file=0x2aaaaae152b0, line=475, cond=0x2aaaaae15688, msg=0x0) at appbase.cpp:451
No locals.
#7  0x00002aaaaad4de89 in wxOnAssert (szFile=0x2aaaaae152b0, nLine=475, szCond=0x2aaaaae15688, szMsg=0x0) at appbase.cpp:639
        s_bInAssert = true
#8  0x00002aaaaad4ddfc in wxAssert (cond=0, szFile=0x2aaaaae152b0, nLine=475, szCond=0x2aaaaae15688, szMsg=0x0) at appbase.cpp:606
No locals.
#9  0x00002aaaaada5f74 in wxStringBase::find (this=0x5f4360, str=@0x7fffffeb1810, nStart=50) at string.cpp:475
        p = (const wxChar *) 0x7fffffeb17f0
#10 0x00002aaaaada6139 in wxStringBase::find (this=0x5f4360, sz=0x465970, nStart=50, n=18446744073709551615) at string.cpp:508
No locals.
#11 0x00002aaaaada8b24 in wxString::Replace (this=0x5f4360, szOld=0x465970, szNew=0x465960, bReplaceAll=true) at string.cpp:1546
        uiCount = 1
        uiOldLen = 21
        uiNewLen = 2
        dwPos = 50
#12 0x000000000040ee7e in CWebServer::ReloadTemplates (this=0x5f3e60) at WebServer.cpp:435
        file = {m_input = @0x7fffffeb1c10, m_separators = { = {static npos = 18446744073709551615,
      m_pchData = 0x5f65b8}, }, m_lastBytes = "\000\000\000\000\000\000\000\000\000", m_conv = @0x2aaaaaf7d890}
        sAll = { = {static npos = 18446744073709551615, m_pchData = 0x2aaaaca2c028}, }
        sVersion = { = {static npos = 18446744073709551615, m_pchData = 0x5f6698}, }
        lVersion = 4
        sFile = { = {static npos = 18446744073709551615, m_pchData = 0x6947f8}, }
        input = { = { = {_vptr.wxStreamBase = 0x2aaaaaf68b70, m_lastcount = 0, m_lasterror = wxSTREAM_EOF},
    m_wback = 0x0, m_wbacksize = 0, m_wbackcur = 0}, m_file = 0x5f6580, m_file_destroy = true}
#13 0x000000000040b855 in CWebServer::StartServer (this=0x5f3e60) at WebServer.cpp:251
No locals.
#14 0x0000000000448592 in CamulewebApp::Pre_Shell (this=0x5bad90) at WebInterface.cpp:451
No locals.
#15 0x0000000000450ca1 in CaMuleExternalConnector::ConnectAndRun (this=0x5bad90, ProgName=@0x7fffffeb1ee0, ProgVersion=@0x7fffffeb1ef0,
    commands=0x59c980) at ExternalConnector.cpp:348
        success = true
---Type to continue, or q to quit---
        reply = (CECPacket *) 0x5e3d90
        pass_plain = { = {static npos = 18446744073709551615, m_pchData = 0x5bbfa8}, }
        packet = { = { = {m_error = 0, m_tagData = 0x0, m_tagName = 0, m_dataLen = 0, m_dynamic = false,
      m_tagList = { >> = {
          _M_impl = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_start = 0x5bca10,
            _M_finish = 0x5bcb28, _M_end_of_storage = 0x5bcbd0}}, }, static s_theNullTag = {m_error = 0, m_tagData = 0x473fc0,
        m_tagName = 0, m_dataLen = 0, m_dynamic = false, m_tagList = { >> = {
            _M_impl = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_start = 0x0,
              _M_finish = 0x0, _M_end_of_storage = 0x0}}, }, static s_theNullTag = ,
        static s_theNullTagData = {0, 0, 0, 0}}, static s_theNullTagData = {0, 0, 0, 0}}, }, m_opCode = 2 '\002'}
        addr = { = { = { = {_vptr.wxObject = 0x2aaaab0baf10, static ms_classInfo = {
          m_className = 0x2aaaaae12b38, m_objectSize = 16, m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
          static sm_first = 0x2aaaab0bbe80, m_next = 0x2aaaaaf7d780, static sm_classTable = 0x59d010}, m_refData = 0x0}, static ms_classInfo = {
        m_className = 0x2aaaaafaf8b0, m_objectSize = 24, m_objectConstructor = 0, m_baseInfo1 = 0x2aaaaaf7d6e0, m_baseInfo2 = 0x0,
        static sm_first = 0x2aaaab0bbe80, m_next = 0x2aaaab0bc100, static sm_classTable = 0x59d010}, m_address = 0x5d37d0}, static ms_classInfo = {
      m_className = 0x2aaaaafaf8e8, m_objectSize = 24, m_objectConstructor = 0, m_baseInfo1 = 0x2aaaab0bc000, m_baseInfo2 = 0x0,
      static sm_first = 0x2aaaab0bbe80, m_next = 0x2aaaab0bc000, static sm_classTable = 0x59d010}}, static ms_classInfo = {
    m_className = 0x2aaaaafaf918, m_objectSize = 32, m_objectConstructor = 0x2aaaaafa13ae ,
    m_baseInfo1 = 0x2aaaab0bc040, m_baseInfo2 = 0x0, static sm_first = 0x2aaaab0bbe80, m_next = 0x2aaaab0bc040, static sm_classTable = 0x59d010},
  m_origHostname = { = {static npos = 18446744073709551615, m_pchData = 0x5bf108}, }}
#16 0x0000000000446483 in CamulewebApp::OnRun (this=0x5bad90) at WebInterface.cpp:224
No locals.
#17 0x00002aaaaad86614 in wxEntry (argc=@0x7fffffeb1fbc, argv=0x5a0ff0) at init.cpp:417
        callOnExit = {}
        cleanupOnExit = {}
#18 0x00002aaaaad8671d in wxEntry (argc=@0x7fffffeb1fbc, argv=0x7fffffeb2098) at init.cpp:429
No locals.
#19 0x000000000044643a in main (argc=1, argv=0x7fffffeb2098) at WebInterface.cpp:297
No locals.

tata
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb instant crash after start
« Reply #1 on: April 14, 2005, 07:54:01 PM »

forget it its a wx-cvs bug,

I recompild only amulewb with wxbase2.5.3 and works just fine...lets hope the bug does not make it into 2.6.0
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."