aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: using "view files" on a friend - cvs 20040608-10:30  (Read 2381 times)

bootstrap

  • Guest
using "view files" on a friend - cvs 20040608-10:30
« on: June 08, 2004, 11:17:00 AM »

This happens when you hit "view files" on a friend. Tested with amule cvs 20040608 10:30 on both sides.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1073838656 (LWP 32160)]
0x4b8e17a3 in strlen () from /lib/tls/libc.so.6
(gdb) bt
#0  0x4b8e17a3 in strlen () from /lib/tls/libc.so.6
#1  0x4b8b5c05 in vfprintf () from /lib/tls/libc.so.6
#2  0x4b8d3ba0 in vsnprintf () from /lib/tls/libc.so.6
#3  0x4c1ecea9 in wxString::PrintfV () from /usr/lib/libwx_gtk-2.4.so.0
#4  0x4c1ecd91 in wxString::Format () from /usr/lib/libwx_gtk-2.4.so.0
#5  0x0814db6c in CClientReqSocket::ProcessPacket (this=0x8f222e8, packet=0x8c13c80 "\032",
    size=324, opcode=96 '`') at ListenSocket.cpp:1061
#6  0x08151b62 in CClientReqSocket::PacketReceived (this=0x8f222e8, packet=0x8f30f30)
    at ListenSocket.cpp:1790
#7  0x0815591b in CEMSocket::OnReceive (this=0x8f222e8, nErrorCode=0) at EMSocket.cpp:261
#8  0x08151cf2 in CClientReqSocket::OnReceive (this=0x8f222e8, nErrorCode=0)
    at ListenSocket.cpp:1818
#9  0x08151de3 in CClientReqSocketHandler::ClientReqSocketHandler (this=0x8ec5fe8,
    event=@0x8ca2e70) at ListenSocket.cpp:1848
#10 0x4c16bfa2 in wxEvtHandler::SearchEventTable () from /usr/lib/libwx_gtk-2.4.so.0
#11 0x4c16bdcf in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_gtk-2.4.so.0
#12 0x4c16bd0b in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_gtk-2.4.so.0
#13 0x4c122899 in wxAppBase::ProcessPendingEvents () from /usr/lib/libwx_gtk-2.4.so.0
#14 0x4c0d01bb in wxapp_pending_callback () from /usr/lib/libwx_gtk-2.4.so.0
#15 0x4bbd4b1f in g_timeout_add () from /usr/lib/libglib-1.2.so.0
#16 0x4bbd395b in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#17 0x4bbd3e47 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#18 0x4bbd40f5 in g_main_run () from /usr/lib/libglib-1.2.so.0
#19 0x4be0253f in gtk_main () from /usr/lib/libgtk-1.2.so.0
#20 0x4c0d0b32 in wxApp::MainLoop () from /usr/lib/libwx_gtk-2.4.so.0
#21 0x4c122750 in wxAppBase::OnRun () from /usr/lib/libwx_gtk-2.4.so.0
#22 0x4c0d120d in wxEntry () from /usr/lib/libwx_gtk-2.4.so.0
#23 0x0829be80 in main (argc=1, argv=0xbffff8d4) at amule.cpp:152
(gdb) bt full
#0  0x4b8e17a3 in strlen () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x4b8b5c05 in vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x4b8d3ba0 in vsnprintf () from /lib/tls/libc.so.6
No symbol table info available.
#3  0x4c1ecea9 in wxString::PrintfV () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#4  0x4c1ecd91 in wxString::Format () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#5  0x0814db6c in CClientReqSocket::ProcessPacket (this=0x8f222e8, packet=0x8c13c80 "\032",
    size=324, opcode=96 '`') at ListenSocket.cpp:1061
        data = { = { = {_vptr.CFile = 0x8320248, m_fd = -1, m_error = 88,
      fFilePath = }, fGrowBytes = 0, fPosition = 28, fBufferSize = 324,
    fFileSize = 324, deleteBuffer = 0, fBuffer = 0x8c13c80 "\032"}, }
        strDir =
#6  0x08151b62 in CClientReqSocket::PacketReceived (this=0x8f222e8, packet=0x8f30f30)
    at ListenSocket.cpp:1790
        bResult = 76
        uRawSize = 324
#7  0x0815591b in CEMSocket::OnReceive (this=0x8f222e8, nErrorCode=0) at EMSocket.cpp:261
        bPacketResult = 8
        toCopy = 324
        GlobalReadBuffer = "\000\000\000\000\000`\032\000/home/marc/.aMule/Incoming\003\000\000\000\026\006Ù\aâ\026\204\227ÿº¡ö\024°\233Åûûûûûû\002\000\000\000\002\001\000\001\"\000Intervideo Home Theater Keygen.exe\003\001\000\002\000 \000\000EÌ1\216n\000\216á6¥X\004ð\207\231¹ûûûûûû\002\000\000\000\002\001\000\001N\000InterVideo.Home.Theater.v2.0.B069.41C00.Incl.KeyGen-FSS."...
---Type to continue, or q to quit---
        readMax = 2000000
        ret = 330
        rptr = 0x83e702a "c\225ÊÜÅÅ_b\205\025\002´#\006'å\033\032Úæõ®´A\035öÐc\217ÿ²ì¿7¯-\211#«%'}\206\206Ð\r\016jôÕlm¬c\032ãì\\\023ý`5\202ÿÞÞ\23174î\025\033\222ä\0226þ\235ÿ\032¸Î\220\222ZLÉù¡\031Ó¢dáï\203¹fs\023ì\002+TÀzKï9ã\030¥õ\023¬ø\021.E~¢rÃ\222\212Kéié\205«÷ã\210\2370OÂ"
        rend = 0x83e702a "c\225ÊÜÅÅ_b\205\025\002´#\006'å\033\032Úæõ®´A\035öÐc\217ÿ²ì¿7¯-\211#«%'}\206\206Ð\r\016jôÕlm¬c\032ãì\\\023ý`5\202ÿÞÞ\23174î\025\033\222ä\0226þ\235ÿ\032¸Î\220\222ZLÉù¡\031Ó¢dáï\203¹fs\023ì\002+TÀzKï9ã\030¥õ\023¬ø\021.E~¢rÃ\222\212Kéié\205«÷ã\210\2370OÂ"
#8  0x08151cf2 in CClientReqSocket::OnReceive (this=0x8f222e8, nErrorCode=0)
    at ListenSocket.cpp:1818
No locals.
#9  0x08151de3 in CClientReqSocketHandler::ClientReqSocketHandler (this=0x8ec5fe8,
    event=@0x8ca2e70) at ListenSocket.cpp:1848
No locals.
#10 0x4c16bfa2 in wxEvtHandler::SearchEventTable () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#11 0x4c16bdcf in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#12 0x4c16bd0b in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#13 0x4c122899 in wxAppBase::ProcessPendingEvents () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#14 0x4c0d01bb in wxapp_pending_callback () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#15 0x4bbd4b1f in g_timeout_add () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#16 0x4bbd395b in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#17 0x4bbd3e47 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#18 0x4bbd40f5 in g_main_run () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#19 0x4be0253f in gtk_main () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#20 0x4c0d0b32 in wxApp::MainLoop () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#21 0x4c122750 in wxAppBase::OnRun () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#22 0x4c0d120d in wxEntry () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#23 0x0829be80 in main (argc=1, argv=0xbffff8d4) at amule.cpp:152
No locals.
(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: using "view files" on a friend - cvs 20040608-10:30
« Reply #1 on: June 08, 2004, 12:04:01 PM »

Bootstrap,

I had this valgrind this night, ListenSocket.cpp:1061 and PartFile.cpp:3111 are both AddLogLine().

...

Hashing thread ended

valgrind: the `impossible' happened:
   disInstr: INT but not 0x80 !
Basic block ctr is approximately 594500000

sched status:

Thread 1: status = Runnable, associated_mx = 0x0, associated_cv = 0x0
==8600==    at 0x8238B45: CPartFile::CreateSrcInfoPacket(CUpDownClient*) (PartFile.cpp:3111)
==8600==    by 0x814FCA1: CClientReqSocket::ProcessExtPacket(char const*, unsigned, unsigned char) (ListenSocket.cpp:1248)
==8600==    by 0x8151C80: CClientReqSocket::PacketReceived(Packet*) (ListenSocket.cpp:1800)
==8600==    by 0x8155982: CEMSocket::OnReceive(int) (EMSocket.cpp:261)
==8600==    by 0x8151D59: CClientReqSocket::OnReceive(int) (ListenSocket.cpp:1818)
==8600==    by 0x8151E4A: CClientReqSocketHandler::ClientReqSocketHandler(wxSocketEvent&) (ListenSocket.cpp:1848)
==8600==    by 0xD87E61: wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) (in /usr/lib/libwx_gtk-2.4.so.0.1.1)
==8600==    by 0xD87C8E: wxEvtHandler::ProcessEvent(wxEvent&) (in /usr/lib/libwx_gtk-2.4.so.0.1.1)
==8600==    by 0xD87BCA: wxEvtHandler::ProcessPendingEvents() (in /usr/lib/libwx_gtk-2.4.so.0.1.1)
==8600==    by 0xD3E758: wxAppBase::ProcessPendingEvents() (in /usr/lib/libwx_gtk-2.4.so.0.1.1)

The impossible happened? Thats great, we make the impossible happen :D
« Last Edit: June 08, 2004, 12:04:21 PM by phoenix »
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: using "view files" on a friend - cvs 20040608-10:30
« Reply #2 on: June 08, 2004, 12:11:37 PM »

Well, i don't know much about unicoding, and if you explain me the issues, i could even help, but look at this, we have c_str here:

PartFile.cpp:3111
theApp.amuledlg->AddDebugLogLine( false, wxT("Send:Source User(%s) File(%s) Count(%i)"), forClient->GetUserName(), GetFileName().c_str(), nCount );

But not here (ListenSocket.cpp:1061)
theApp.amuledlg->AddLogLine(true,_("User %s (%u) sent sharedfiles-list for directory %s"),client->GetUserName(),client->GetUserID(),strDir.GetData());
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: using "view files" on a friend - cvs 20040608-10:30
« Reply #3 on: June 08, 2004, 12:31:56 PM »

Sorry, mine was due to a confusion in cvs. The current version does not have c_str.
Logged

bootstrap

  • Guest
Re: using "view files" on a friend - cvs 20040608-10:30
« Reply #4 on: June 08, 2004, 03:47:20 PM »

Thanks for trying to help me out, but i don't have any idea what to do with your info.
I'm not directly involved in aMule development, i just try to deliver backtraces if something strange happens and i am able to pinpoint what caused the bug.
Logged