aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: While canceling a search - cvs-18/08/2004  (Read 2089 times)

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
While canceling a search - cvs-18/08/2004
« on: August 18, 2004, 02:36:25 PM »

Code: [Select]
(gdb) bt
#0  0x00accc32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00d78e1b in raise () from /lib/tls/libpthread.so.0
#2  0x005ba79d in wxTrap() () at src/common/appbase.cpp:569
#3  0x005bab61 in ShowAssertDialog (szFile=0x6695a3 "src/unix/threadpsx.cpp", nLine=1356,
    szCond=0x669593 "wxAssertFailure", szMsg=0x66a03f "a thread can't delete itself", traits=0x9458d50)
    at src/common/appbase.cpp:723
#4  0x005ba52f in wxAppConsole::OnAssert(char const*, int, char const*, char const*) (this=0x9425d08,
    file=0x6695a3 "src/unix/threadpsx.cpp", line=1356, cond=0x669593 "wxAssertFailure",
    msg=0x66a03f "a thread can't delete itself") at src/common/appbase.cpp:438
#5  0x002d5357 in wxApp::OnAssert(char const*, int, char const*, char const*) (this=0x9425d08,
    file=0x6695a3 "src/unix/threadpsx.cpp", line=1356, cond=0x669593 "wxAssertFailure",
    msg=0x66a03f "a thread can't delete itself") at src/gtk/app.cpp:664
#6  0x005ba854 in wxOnAssert(char const*, int, char const*, char const*) (
    szFile=0x6695a3 "src/unix/threadpsx.cpp", nLine=1356, szCond=0x669593 "wxAssertFailure",
    szMsg=0x66a03f "a thread can't delete itself") at src/common/appbase.cpp:615
#7  0x005ba7d0 in wxAssert(int, char const*, int, char const*, char const*) (cond=0,
    szFile=0x6695a3 "src/unix/threadpsx.cpp", nLine=1356, szCond=0x669593 "wxAssertFailure",
    szMsg=0x66a03f "a thread can't delete itself") at src/common/appbase.cpp:582
#8  0x006544df in wxThread::Delete(void**) (this=0xaf5ca50, rc=0x0) at src/unix/threadpsx.cpp:1355
#9  0x0828599f in CSearchDlg::OnBnClickedCancels(wxCommandEvent&) (this=0x9ac4240) at SearchDlg.cpp:287
#10 0x082d441b in CamuleApp::NotifyEvent(GUIEvent) (this=0x9425d08, event=
      {ID = SEARCH_UPDATE_PROGRESS, byte_value = 0 '\0', short_value = 0, long_value = 65535, longlong_value = 0, string_value = { = {static npos = 4294967195, m_pchData = 0x666be4 ""}, }, ptr_value = 0x0, ptr_aux_value = 0x0}) at amule.cpp:2091
#11 0x082881ce in CGlobalSearchThread::Entry() (this=0xaf5ca50) at SearchList.cpp:75
#12 0x00652fc5 in wxThreadInternal::PthreadStart(wxThread*) (thread=0xaf5ca50) at src/unix/threadpsx.cpp:762
#13 0x00652e7e in wxPthreadStart (ptr=0xaf5ca50) at src/unix/threadpsx.cpp:714
#14 0x00d727fc in start_thread () from /lib/tls/libpthread.so.0
#15 0x00bbfaba in clone () from /lib/tls/libc.so.6
(gdb) bt full
#0  0x00accc32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x00d78e1b in raise () from /lib/tls/libpthread.so.0
No symbol table info available.
#2  0x005ba79d in wxTrap() () at src/common/appbase.cpp:569
No locals.
#3  0x005bab61 in ShowAssertDialog (szFile=0x6695a3 "src/unix/threadpsx.cpp", nLine=1356,
    szCond=0x669593 "wxAssertFailure", szMsg=0x66a03f "a thread can't delete itself", traits=0x9458d50)
    at src/common/appbase.cpp:723
        s_bNoAsserts = false
        msg = { = {static npos = 4294967195,
    m_pchData = 0xb59e0e4 "src/unix/threadpsx.cpp(1356): assert \"wxAssertFailure\" failed: a thread can't delete itself [in child thread]"}, }
#4  0x005ba52f in wxAppConsole::OnAssert(char const*, int, char const*, char const*) (this=0x9425d08,
    file=0x6695a3 "src/unix/threadpsx.cpp", line=1356, cond=0x669593 "wxAssertFailure",
    msg=0x66a03f "a thread can't delete itself") at src/common/appbase.cpp:438
No locals.
#5  0x002d5357 in wxApp::OnAssert(char const*, int, char const*, char const*) (this=0x9425d08,
    file=0x6695a3 "src/unix/threadpsx.cpp", line=1356, cond=0x669593 "wxAssertFailure",
    msg=0x66a03f "a thread can't delete itself") at src/gtk/app.cpp:664
No locals.
#6  0x005ba854 in wxOnAssert(char const*, int, char const*, char const*) (
    szFile=0x6695a3 "src/unix/threadpsx.cpp", nLine=1356, szCond=0x669593 "wxAssertFailure",
    szMsg=0x66a03f "a thread can't delete itself") at src/common/appbase.cpp:615
        s_bInAssert = true
#7  0x005ba7d0 in wxAssert(int, char const*, int, char const*, char const*) (cond=0,
    szFile=0x6695a3 "src/unix/threadpsx.cpp", nLine=1356, szCond=0x669593 "wxAssertFailure",
    szMsg=0x66a03f "a thread can't delete itself") at src/common/appbase.cpp:582
No locals.
#8  0x006544df in wxThread::Delete(void**) (this=0xaf5ca50, rc=0x0) at src/unix/threadpsx.cpp:1355
        isDetached = 2
        state = 137150595
#9  0x0828599f in CSearchDlg::OnBnClickedCancels(wxCommandEvent&) (this=0x9ac4240) at SearchDlg.cpp:287
No locals.
#10 0x082d441b in CamuleApp::NotifyEvent(GUIEvent) (this=0x9425d08, event=
      {ID = SEARCH_UPDATE_PROGRESS, byte_value = 0 '\0', short_value = 0, long_value = 65535, longlong_value = 0, string_value = { = {static npos = 4294967195, m_pchData = 0x666be4 ""}, }, ptr_value = 0x0, ptr_aux_value = 0x0}) at amule.cpp:2091
        evt = { = { = {_vptr.wxObject = 0x838edd8, static ms_classInfo = {
        m_className = 0x66576d "wxObject", m_objectSize = 8, m_objectConstructor = 0, m_baseInfo1 = 0x0,
        m_baseInfo2 = 0x0, static sm_first = 0x838ff28, m_next = 0x6a31f0, static sm_classTable = 0x9417008},
      m_refData = 0x0}, m_eventObject = 0x0, m_eventType = 10000, m_timeStamp = 0, m_id = 0,
    m_callbackUserData = 0x0, m_propagationLevel = 2147483647, m_skipped = false, m_isCommandEvent = true,
    static ms_classInfo = {m_className = 0x66a997 "wxEvent", m_objectSize = 36, m_objectConstructor = 0,
      m_baseInfo1 = 0x6a31b4, m_baseInfo2 = 0x0, static sm_first = 0x838ff28, m_next = 0x6a3444,
      static sm_classTable = 0x9417008}}, m_commandString = { = {static npos = 4294967195,
      m_pchData = 0x666be4 ""}, }, m_commandInt = 0, m_extraLong = 0, m_clientData = 0x0,
  m_clientObject = 0x0, static ms_classInfo = {m_className = 0x44465c "wxCommandEvent", m_objectSize = 56,
    m_objectConstructor = 0x2bebf0 , m_baseInfo1 = 0x6a345c,
    m_baseInfo2 = 0x0, static sm_first = 0x838ff28, m_next = 0x4e82c4, static sm_classTable = 0x9417008}}
#11 0x082881ce in CGlobalSearchThread::Entry() (this=0xaf5ca50) at SearchList.cpp:75
        current = (CServer *) 0x9c8b840
#12 0x00652fc5 in wxThreadInternal::PthreadStart(wxThread*) (thread=0xaf5ca50) at src/unix/threadpsx.cpp:762
        pthread = (wxThreadInternal *) 0xb647f48
        rc = 0
        dontRunAtAll = false
#13 0x00652e7e in wxPthreadStart (ptr=0xaf5ca50) at src/unix/threadpsx.cpp:714
No locals.
#14 0x00d727fc in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#15 0x00bbfaba in clone () from /lib/tls/libc.so.6
No symbol table info available.
(gdb) frame 9
#9  0x0828599f in CSearchDlg::OnBnClickedCancels(wxCommandEvent&) (this=0x9ac4240) at SearchDlg.cpp:287
287                     theApp.searchlist->searchthread->Delete();
(gdb) l
282     void CSearchDlg::OnBnClickedCancels(wxCommandEvent& WXUNUSED(evt))
283     {
284             canceld = true;
285
286             if (globalsearch) {
287                     theApp.searchlist->searchthread->Delete();
288             }
289
290             progressbar->SetValue(0);
291
(gdb)
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: While canceling a search - cvs-18/08/2004
« Reply #1 on: August 19, 2004, 03:34:48 AM »

Got it again, exactly the same bt, but this time i was not doing anything. There was a search going on, maybe this happened at the end of the search. Notice the line

#10 0x082d441b in CamuleApp::NotifyEvent(GUIEvent) (this=0x9425d08, event={ID = SEARCH_UPDATE_PROGRESS, ...

Maybe something related to core/gui separation? Or to threaded search? Or both? :)

Cheers!
Logged