aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Async DNS or wx bug?  (Read 2053 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
Async DNS or wx bug?
« on: February 11, 2005, 04:39:53 AM »

Code: [Select]
./src/unix/threadpsx.cpp(102): assert "wxAssertFailure" failed: removing inexisting element in wxArray::Remove [in child thread]

(gdb) bt
#0  0x0083d7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00aa3734 in raise () from /lib/tls/libpthread.so.0
#2  0x0019c53d in wxTrap () at ./src/common/appbase.cpp:580
#3  0x0019c8ff in ShowAssertDialog (szFile=0x276d54, nLine=102, szCond=0x276d14, szMsg=0x279390,
    traits=0x9665f00) at ./src/common/appbase.cpp:734
#4  0x0019c2c5 in wxAppConsole::OnAssert (this=0x9621518, file=0x276d54, line=102, cond=0x276d14, msg=0x279390)
    at ./src/common/appbase.cpp:440
#5  0x005b3b5b in wxApp::OnAssert (this=0x9621518, file=0x276d54, line=102, cond=0x276d14, msg=0x279390)
    at ./src/gtk/app.cpp:700
#6  0x0019c5f4 in wxOnAssert (szFile=0x276d54, nLine=102, szCond=0x276d14, szMsg=0x279390)
    at ./src/common/appbase.cpp:626
#7  0x0019c570 in wxAssert (cond=0, szFile=0x276d54, nLine=102, szCond=0x276d14, szMsg=0x279390)
    at ./src/common/appbase.cpp:593
#8  0x0023697e in wxArrayThread::Remove (this=0x2c5208, Item=0xb1ab7a8) at ./src/unix/threadpsx.cpp:102
#9  0x002351cf in ~wxThread (this=0xb1ab7a8) at ./src/unix/threadpsx.cpp:1545
#10 0x082570ca in ~CAsyncDNS (this=0xb1ab7a8) at NetworkFunctions.cpp:553
#11 0x00235a8b in DeleteThread (This=0xb1ab7a8) at ./src/unix/threadpsx.cpp:1689
#12 0x00234fe1 in wxThread::Exit (this=0xb1ab7a8, status=0x0) at ./src/unix/threadpsx.cpp:1484
#13 0x0023391f in wxThreadInternal::PthreadStart (thread=0xb1ab7a8) at ./src/unix/threadpsx.cpp:796
#14 0x00233712 in wxPthreadStart (ptr=0xb1ab7a8) at ./src/unix/threadpsx.cpp:714
#15 0x00a9d3ae in start_thread () from /lib/tls/libpthread.so.0
#16 0x00e3ab6e in clone () from /lib/tls/libc.so.6
(gdb) bt full
#0  0x0083d7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x00aa3734 in raise () from /lib/tls/libpthread.so.0
No symbol table info available.
#2  0x0019c53d in wxTrap () at ./src/common/appbase.cpp:580
No locals.
#3  0x0019c8ff in ShowAssertDialog (szFile=0x276d54, nLine=102, szCond=0x276d14, szMsg=0x279390,
    traits=0x9665f00) at ./src/common/appbase.cpp:734
        s_bNoAsserts = false
        msg = { = {static npos = 4294967295, m_pchData = 0xb7fe2ec}, }
#4  0x0019c2c5 in wxAppConsole::OnAssert (this=0x9621518, file=0x276d54, line=102, cond=0x276d14, msg=0x279390)
    at ./src/common/appbase.cpp:440
No locals.
#5  0x005b3b5b in wxApp::OnAssert (this=0x9621518, file=0x276d54, line=102, cond=0x276d14, msg=0x279390)
    at ./src/gtk/app.cpp:700
No locals.
#6  0x0019c5f4 in wxOnAssert (szFile=0x276d54, nLine=102, szCond=0x276d14, szMsg=0x279390)
    at ./src/common/appbase.cpp:626
        s_bInAssert = true
#7  0x0019c570 in wxAssert (cond=0, szFile=0x276d54, nLine=102, szCond=0x276d14, szMsg=0x279390)
    at ./src/common/appbase.cpp:593
No locals.
#8  0x0023697e in wxArrayThread::Remove (this=0x2c5208, Item=0xb1ab7a8) at ./src/unix/threadpsx.cpp:102
        iIndex = -1
#9  0x002351cf in ~wxThread (this=0xb1ab7a8) at ./src/unix/threadpsx.cpp:1545
No locals.
#10 0x082570ca in ~CAsyncDNS (this=0xb1ab7a8) at NetworkFunctions.cpp:553
No locals.
#11 0x00235a8b in DeleteThread (This=0xb1ab7a8) at ./src/unix/threadpsx.cpp:1689
        locker = {m_isOk = true, m_mutex = @0x965f558}
#12 0x00234fe1 in wxThread::Exit (this=0xb1ab7a8, status=0x0) at ./src/unix/threadpsx.cpp:1484
No locals.
#13 0x0023391f in wxThreadInternal::PthreadStart (thread=0xb1ab7a8) at ./src/unix/threadpsx.cpp:796
        pthread = (wxThreadInternal *) 0xb96eb08
        rc = 0
        dontRunAtAll = false
#14 0x00233712 in wxPthreadStart (ptr=0xb1ab7a8) at ./src/unix/threadpsx.cpp:714
No locals.
#15 0x00a9d3ae in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#16 0x00e3ab6e in clone () from /lib/tls/libc.so.6
No symbol table info available.

Unfortunately, I had already cvs up'd and I have no source code, but should not be difficult.
Code: [Select]
(gdb) up 10
#10 0x082570ca in ~CAsyncDNS (this=0xb1ab7a8) at NetworkFunctions.cpp:553
Line number 553 out of range; NetworkFunctions.cpp has 167 lines.
(gdb) l
Line number 553 out of range; NetworkFunctions.cpp has 167 lines.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Async DNS or wx bug?
« Reply #1 on: February 11, 2005, 01:03:40 PM »

Ahem... that file numberdoes not exist because that function does not exist either. I enver coded the destructor for the class O_o
Logged