aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Crash on init, no clue of which is the problem  (Read 11643 times)

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Crash on init, no clue of which is the problem
« on: July 09, 2008, 02:48:40 PM »

I compiled libupnp with debug information enabled and amule with debug as well.
I attach all the backtrace.
the program just fails to start completely, maybe because of some error with upnp (i dont really know)

Code: [Select]
bigboss@OuterHeaven:~$ gdb amuled
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> [^]
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run
Starting program: /usr/bin/amuled
[Thread debugging using libthread_db enabled]
[New Thread 0xb766a6c0 (LWP 4596)]
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
[New Thread 0xb752fb90 (LWP 4601)]
HTTP download thread started
Host: amule.sourceforge.net:80
URL: http://amule.sourceforge.net/lastversion [^]
Response: 200 (Error: 0)
Download size: 6
HTTP download thread ended
[Thread 0xb752fb90 (LWP 4601) exited]
ListenSocket: Ok.
[New Thread 0xb752fb90 (LWP 4602)]
[New Thread 0xb6bffb90 (LWP 4603)]
[New Thread 0xb63ffb90 (LWP 4604)]
[New Thread 0xb5bffb90 (LWP 4605)]
[New Thread 0xb53ffb90 (LWP 4606)]
[New Thread 0xb4bffb90 (LWP 4607)]
[New Thread 0xb43ffb90 (LWP 4608)]
[New Thread 0xb3bffb90 (LWP 4609)]
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Connection, value: close
hdr name: Content-Type, value: text/xml
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Connection, value: close
hdr name: Content-Type, value: text/xml
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Connection, value: close
hdr name: Content-Type, value: text/xml
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Connection, value: close
hdr name: Content-Type, value: text/xml
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: SID, value: uuid:b90f3ee8-76df-9238-37bf-fd1e49661086
hdr name: TIMEOUT, value: Second-600
hdr name: Content-Length, value: 0
method = 4, version = 1.1, url = /
hdr name: User-Agent, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Host, value: 192.168.1.100:50000
hdr name: NT, value: upnp:event
hdr name: NTS, value: upnp:propchange
hdr name: SID, value: uuid:b90f3ee8-76df-9238-37bf-fd1e49661086
hdr name: SEQ, value: 0
hdr name: Connection, value: Keep-Alive
hdr name: Content-Length, value: 392
hdr name: Content-Type, value: text/xml
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Connection, value: close
hdr name: Content-Length, value: 15479
hdr name: Content-Type, value: text/xml
hdr name: ETag, value: "gNa2L"
hdr name: Last-Modified, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: max-age=3600, public
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Connection, value: close
hdr name: Content-Length, value: 15479
hdr name: Content-Type, value: text/xml
hdr name: ETag, value: "gNa2L"
hdr name: Last-Modified, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: max-age=3600, public
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: SID, value: uuid:f29d8d49-0006-a2a1-37d6-6b83448291cb
hdr name: TIMEOUT, value: Second-600
hdr name: Content-Length, value: 0
resp status = 500, version = 1.1, status msg = Internal Error
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Transfer-Encoding, value: chunked
hdr name: Content-Type, value: text/xml; charset=utf-8
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
/usr/include/c++/4.2/memory:285: _Tp* std::auto_ptr<_Tp>::operator->() const [with _Tp = CUPnPSCPD]: Assertion '_M_ptr != 0' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb766a6c0 (LWP 4596)]
0xb769b1b6 in raise () from /lib/libc.so.6







bt =====================================================================

(gdb) bt
0 0xb769b1b6 in raise () from /lib/libc.so.6
0000001 0xb769ca31 in abort () from /lib/libc.so.6
0000002 0x0808a82b in std::__debug::__replacement_assert (
    __file=0x837b8b9 "/usr/include/c++/4.2/memory", __line=285,
    __function=0x837ce00 "_Tp* std::auto_ptr<_Tp>::operator->() const [with _Tp = CUPnPSCPD]", __condition=0x837b8ad "_M_ptr != 0")
    at /usr/include/c++/4.2/debug/debug.h:99
0000003 0x0824f50d in std::auto_ptr<CUPnPSCPD>::operator-> (this=0x88d7f80)
    at /usr/include/c++/4.2/memory:285
0000004 0x0823c36a in CUPnPService::Execute (this=0x88d7f28,
    ActionName=@0xbf8356bc, ArgValue=@0xbf835644) at UPnPBase.cpp:575
0000005 0x0823ec8d in CUPnPControlPoint::PrivateAddPortMapping (this=0x88a1e60,
    upnpPortMapping=@0x8640f80) at UPnPBase.cpp:1049
0000006 0x08240756 in CUPnPControlPoint::AddPortMappings (this=0x88a1e60,
    upnpPortMapping=@0x8640dd0) at UPnPBase.cpp:951
0000007 0x08082a62 in CamuleApp::ReinitializeNetwork (this=0x8640d48,
    msg=0xbf835e30) at amule.cpp:1014
0000008 0x08085ffc in CamuleApp::OnInit (this=0x8640d48) at amule.cpp:734
0000009 0x08072c08 in CamuleDaemonApp::OnInit (this=0x8640d48) at amuled.cpp:663
0000010 0x08074b4c in wxAppConsole::CallOnInit (this=0x8640d48)
    at /usr/include/wx-2.8/wx/app.h:76
11 0xb794e030 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
0000012 0xb794e107 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
---Type <return> to continue, or q <return> to quit---
0000013 0x08074832 in main (argc=Cannot access memory at address 0x11f4
) at amuled.cpp:156


(continues in the second comment)
Logged

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Crash on init, no clue of which is the problem
« Reply #1 on: July 09, 2008, 02:49:09 PM »

Code: [Select]
bt full ====================================================================

(gdb) bt full
0 0xb769b1b6 in raise () from /lib/libc.so.6
No symbol table info available.
0000001 0xb769ca31 in abort () from /lib/libc.so.6
No symbol table info available.
0000002 0x0808a82b in std::__debug::__replacement_assert (
    __file=0x837b8b9 "/usr/include/c++/4.2/memory", __line=285,
    __function=0x837ce00 "_Tp* std::auto_ptr<_Tp>::operator->() const [with _Tp = CUPnPSCPD]", __condition=0x837b8ad "_M_ptr != 0")
    at /usr/include/c++/4.2/debug/debug.h:99
No locals.
0000003 0x0824f50d in std::auto_ptr<CUPnPSCPD>::operator-> (this=0x88d7f80)
    at /usr/include/c++/4.2/memory:285
        __PRETTY_FUNCTION__ = "_Tp* std::auto_ptr<_Tp>::operator->() const [with _Tp = CUPnPSCPD]"
0000004 0x0823c36a in CUPnPService::Execute (this=0x88d7f28,
    ActionName=@0xbf8356bc, ArgValue=@0xbf835644) at UPnPBase.cpp:575
        msg = {<std::basic_ostream<char,std::char_traits<char> >> = {<std::basic_ios<char,std::char_traits<char> >> = {<> = {<No data fields>}, _M_tie = 0x0,
      _M_fill = 0 '\0', _M_fill_init = false, _M_streambuf = 0xbf835430,
      _M_ctype = 0xb78c7800, _M_num_put = 0xb78c7a40,
      _M_num_get = 0xb78c7a38}, _vptr.basic_ostream = 0x835e7ec},
  _M_stringbuf = {<std::basic_streambuf<char,std::char_traits<char> >> = {
      _vptr.basic_streambuf = 0x835e968, _M_in_beg = 0x0, _M_in_cur = 0x0,
---Type <return> to continue, or q <return> to quit---
      _M_in_end = 0x0, _M_out_beg = 0x0, _M_out_cur = 0x0, _M_out_end = 0x0,
      _M_buf_locale = {static none = 0, static ctype = 1, static numeric = 2,
        static collate = 4, static time = 8, static monetary = 16,
        static messages = 32, static all = 63, _M_impl = 0xb78c7684,
        static _S_classic = <optimized out>,
        static _S_global = <optimized out>,
        static _S_categories = <optimized out>,
        static _S_once = <optimized out>}}, _M_mode = std::_S_out,
    _M_string = {static npos = 4294967295,
      _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x843a49c ""}}}}
        msgAction = {<std::basic_ostream<char,std::char_traits<char> >> = {<std::basic_ios<char,std::char_traits<char> >> = {<> = {<No data fields>},
      _M_tie = 0x0, _M_fill = 0 '\0', _M_fill_init = false,
      _M_streambuf = 0xbf83537c, _M_ctype = 0xb78c7800,
      _M_num_put = 0xb78c7a40, _M_num_get = 0xb78c7a38},
    _vptr.basic_ostream = 0x835e7ec},
  _M_stringbuf = {<std::basic_streambuf<char,std::char_traits<char> >> = {
      _vptr.basic_streambuf = 0x835e968, _M_in_beg = 0x9417aab "",
      _M_in_cur = 0x9417aab "", _M_in_end = 0x9417aab "",
      _M_out_beg = 0x9417a9c "Sending action ",
      _M_out_cur = 0x9417a9c "Sending action ", _M_out_end = 0x9417aab "",
      _M_buf_locale = {static none = 0, static ctype = 1, static numeric = 2,
---Type <return> to continue, or q <return> to quit---
        static collate = 4, static time = 8, static monetary = 16,
        static messages = 32, static all = 63, _M_impl = 0xb78c7684,
        static _S_classic = <optimized out>,
        static _S_global = <optimized out>,
        static _S_categories = <optimized out>,
        static _S_once = <optimized out>}}, _M_mode = std::_S_out,
    _M_string = {static npos = 4294967295,
      _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x9417a9c "Sending action "}}}}
        itAction = {<__gnu_debug::_Safe_iterator_base> = {
    _M_sequence = 0x808b23e, _M_version = 155274088, _M_prior = 0xb7fb063c,
    _M_next = 0xbf835598}, _M_current = {_M_node = 0x8242f7a}}
        firstTime = 131
        action = (const CUPnPAction &) @0x807680f: {
  m_UPnPControlPoint = @0x5590c3c9,
  m_ArgumentList = {<std::__debug::map<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >,CUPnPArgument*,std::less<const std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, CUPnPArgument*> > >> = {<std::__norm::map<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >,CUPnPArgument*,std::less<const std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<---Type <return> to continue, or q <return> to quit---
char> >, CUPnPArgument*> > >> = {_M_t = {
          _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, CUPnPArgument*> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, CUPnPArgument*> > >> = {<No data fields>}, <No data fields>},
            _M_key_compare = {<std::binary_function<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >,const std::basic_string<char, std::char_traits<char>, std::allocator<char> >,bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = 138775304, _M_parent = 0xe8240489,
              _M_left = 0xffffffdb, _M_right = 0x5590c3c9},
            _M_node_count = 2203313545}}}, <__gnu_debug::_Safe_sequence<std::__debug::map<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, CUPnPArgument*, std::less<const std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, CUPnPArgument*> > > >> = {<__gnu_debug::_Safe_sequence_base> = {_M_iterators = 0x458b44ec,
          _M_const_iterators = 0x85008b08,
          _M_version = 2332914880}, <No data fields>}, <No data fields>}, <No data fields>}, m_name = {static npos = 4294967295,
    _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
      _M_p = 0x8b0845 <Address 0x8b0845 out of bounds>}}}
---Type <return> to continue, or q <return> to quit---
        ActionDoc = (IXML_Document *) 0x88a1e8c
        RespDoc = (IXML_Document *) 0xb78c5ff4
        ret = -1081911912
0000005 0x0823ec8d in CUPnPControlPoint::PrivateAddPortMapping (this=0x88a1e60,
    upnpPortMapping=@0x8640f80) at UPnPBase.cpp:1049
        it = {<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x88a1ea4,
    _M_version = 1, _M_prior = 0x0, _M_next = 0x0}, _M_current = {
    _M_node = 0x93bffd0}}
        ipAddress = {static npos = 4294967295,
  _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x940c6dc "192.168.1.100"}}
        actionName = {static npos = 4294967295,
  _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x9408464 "AddPortMapping"}}
        argval = {<std::__norm::vector<CUPnPArgumentValue,std::allocator<CUPnPArgumentValue> >> = {<std::__norm::_Vector_base<CUPnPArgumentValue,std::allocator<CUPnPArgumentValue> >> = {
      _M_impl = {<std::allocator<CUPnPArgumentValue>> = {<__gnu_cxx::new_allocator<CUPnPArgumentValue>> = {<No data fields>}, <No data fields>},
        _M_start = 0x8b48250, _M_finish = 0x8b48290,
        _M_end_of_storage = 0x8b48290}}, <No data fields>}, <__gnu_debug::_Safe_sequence<std::__debug::vector<CUPnPArgumentValue, std::allocator<CUPnPArgumentValue> > >> = {<__gnu_debug::_Safe_sequence_base> = {_M_iterators = 0x0,
---Type <return> to continue, or q <return> to quit---
      _M_const_iterators = 0x0, _M_version = 1}, <No data fields>},
  _M_guaranteed_capacity = 8}
        ret = true
0000006 0x08240756 in CUPnPControlPoint::AddPortMappings (this=0x88a1e60,
    upnpPortMapping=@0x8640dd0) at UPnPBase.cpp:951
        i = 0
        msg = {<std::basic_ostream<char,std::char_traits<char> >> = {<std::basic_ios<char,std::char_traits<char> >> = {<> = {<No data fields>}, _M_tie = 0x0,
      _M_fill = 0 '\0', _M_fill_init = false, _M_streambuf = 0xbf8357d0,
      _M_ctype = 0xb78c7800, _M_num_put = 0xb78c7a40,
      _M_num_get = 0xb78c7a38}, _vptr.basic_ostream = 0x835e7ec},
  _M_stringbuf = {<std::basic_streambuf<char,std::char_traits<char> >> = {
      _vptr.basic_streambuf = 0x835e968, _M_in_beg = 0x0, _M_in_cur = 0x0,
      _M_in_end = 0x0, _M_out_beg = 0x0, _M_out_cur = 0x0, _M_out_end = 0x0,
      _M_buf_locale = {static none = 0, static ctype = 1, static numeric = 2,
        static collate = 4, static time = 8, static monetary = 16,
        static messages = 32, static all = 63, _M_impl = 0xb78c7684,
        static _S_classic = <optimized out>,
        static _S_global = <optimized out>,
        static _S_categories = <optimized out>,
        static _S_once = <optimized out>}}, _M_mode = std::_S_out,
    _M_string = {static npos = 4294967295,
      _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> ---Type <return> to continue, or q <return> to quit---
= {<No data fields>}, <No data fields>}, _M_p = 0x843a49c ""}}}}
        n = 4
        ok = false
        PortMappingNumberOfEntries = {<std::basic_istream<char,std::char_traits<char> >> = {<std::basic_ios<char,std::char_traits<char> >> = {<> = {<No data fields>}, _M_tie = 0x0, _M_fill = 0 '\0', _M_fill_init = false,
      _M_streambuf = 0xbf83571c, _M_ctype = 0xb78c7800,
      _M_num_put = 0xb78c7a40, _M_num_get = 0xb78c7a38},
    _vptr.basic_istream = 0x837ddac, _M_gcount = 0},
  _M_stringbuf = {<std::basic_streambuf<char,std::char_traits<char> >> = {
      _vptr.basic_streambuf = 0x835e968, _M_in_beg = 0x843a49c "",
      _M_in_cur = 0x843a49c "", _M_in_end = 0x843a49c "", _M_out_beg = 0x0,
      _M_out_cur = 0x0, _M_out_end = 0x0, _M_buf_locale = {static none = 0,
        static ctype = 1, static numeric = 2, static collate = 4,
        static time = 8, static monetary = 16, static messages = 32,
        static all = 63, _M_impl = 0xb78c7684,
        static _S_classic = <optimized out>,
        static _S_global = <optimized out>,
        static _S_categories = <optimized out>,
        static _S_once = <optimized out>}}, _M_mode = std::_S_in, _M_string = {
      static npos = 4294967295,
      _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x843a49c ""}}}}
---Type <return> to continue, or q <return> to quit---
        oldNumberOfEntries = 143269600
        argval = {<std::__norm::vector<CUPnPArgumentValue,std::allocator<CUPnPArgumentValue> >> = {<std::__norm::_Vector_base<CUPnPArgumentValue,std::allocator<CUPnPArgumentValue> >> = {
      _M_impl = {<std::allocator<CUPnPArgumentValue>> = {<__gnu_cxx::new_allocator<CUPnPArgumentValue>> = {<No data fields>}, <No data fields>},
        _M_start = 0xb71b1bc, _M_finish = 0xb78c3298,
        _M_end_of_storage = 0x6}}, <No data fields>}, <__gnu_debug::_Safe_sequence<std::__debug::vector<CUPnPArgumentValue, std::allocator<CUPnPArgumentValue> > >> = {<__gnu_debug::_Safe_sequence_base> = {_M_iterators = 0x0,
      _M_const_iterators = 0x1002, _M_version = 0}, <No data fields>},
  _M_guaranteed_capacity = 0}
        newNumberOfEntries = 0
0000007 0x08082a62 in CamuleApp::ReinitializeNetwork (this=0x8640d48,
    msg=0xbf835e30) at amule.cpp:1014
        ok = true
        myaddr = {{<> = {<No data fields>}, <No data fields>},
  {<> = {<No data fields>}, <No data fields>},
  {<> = {<No data fields>}, <No data fields>},
  {<> = {<No data fields>}, <No data fields>}}
        ip = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x8895fcc}, <No data fields>}
        firstTime = false
---Type <return> to continue, or q <return> to quit---
0000008 0x08085ffc in CamuleApp::OnInit (this=0x8640d48) at amule.cpp:734
        FullMuleVersion = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x8647cf4}, <No data fields>}
        OSDescription = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x8648044}, <No data fields>}
        cmdline = {m_data = 0x8647e98}
        ec_config = false
        reset_config = false
        geometry_enabled = false
        geom_string = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0xb79dbb98}, <No data fields>}
        cfg = (struct wxConfigBase *) 0x8649e80
        logfileName = {<CPrintable> = {_vptr.CPrintable = 0x83999b0},
  m_printable = {<wxStringBase> = {static npos = 4294967295,
      m_pchData = 0x8655bfc}, <No data fields>},
  m_filesystem = {<wxStringBase> = {static npos = 4294967295,
      m_pchData = 0x8655ae4}, <No data fields>}}
        checkResult = {first = true, second = {<CPrintable> = {
      _vptr.CPrintable = 0x83999b0}, m_printable = {<wxStringBase> = {
        static npos = 4294967295, m_pchData = 0x866d9a4}, <No data fields>},
    m_filesystem = {<wxStringBase> = {static npos = 4294967295,
        m_pchData = 0x866dc3c}, <No data fields>}}}
        vfile = <incomplete type>
---Type <return> to continue, or q <return> to quit---
        newMule = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x86800bc}, <No data fields>}
        langId = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0xb79dbb98}, <No data fields>}
        msg = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x888e95c}, <No data fields>}
0000009 0x08072c08 in CamuleDaemonApp::OnInit (this=0x8640d48) at amuled.cpp:663
No locals.
0000010 0x08074b4c in wxAppConsole::CallOnInit (this=0x8640d48)
    at /usr/include/wx-2.8/wx/app.h:76
No locals.
11 0xb794e030 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
0000012 0xb794e107 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
0000013 0x08074832 in main (argc=Cannot access memory at address 0x11f4
) at amuled.cpp:156
No locals.

(continues in the third comment)
Logged

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Crash on init, no clue of which is the problem
« Reply #2 on: July 09, 2008, 02:50:11 PM »

Code: [Select]
thread apply all bt ==========================================================================

(gdb) thread apply all bt

Thread 10 (Thread 0xb3bffb90 (LWP 4609)):
0 0xb772fe77 in select () from /lib/libc.so.6
0000001 0xb7a81c6c in sock_read_write (info=0xb3bff258, buffer=0xb3bfea20 "",
    bufsize=2048, timeoutSecs=0xb3bff26c, bRead=1 '\001')
    at src/genlib/net/sock.c:218
0000002 0xb7a81db6 in sock_read (info=0xb3bff258, buffer=0xb3bfea20 "",
    bufsize=2048, timeoutSecs=0xb3bff26c) at src/genlib/net/sock.c:307
0000003 0xb7a84b9d in http_RecvMessage (info=0xb3bff258, parser=0xb3bff284,
    request_method=HTTPMETHOD_UNKNOWN, timeout_secs=0xb3bff26c,
    http_error_code=0xb3bff280) at src/genlib/net/http/httpreadwrite.c:237
0000004 0xb7a7dd54 in handle_request (args=0x93c1cf0)
    at src/genlib/miniserver/miniserver.c:282
0000005 0xb7a6cfc8 in WorkerThread (arg=0xb7aa5780) at src/ThreadPool.c:573
0000006 0xb7facfda in start_thread () from /lib/libpthread.so.0
0000007 0x00000002 in ?? ()
0000008 0x00000000 in ?? ()

Thread 9 (Thread 0xb43ffb90 (LWP 4608)):
0 0xb7fb18a8 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
0000001 0xb7a6cce4 in WorkerThread (arg=0xb7aa5a80) at src/ThreadPool.c:499
0000002 0xb7facfda in start_thread () from /lib/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
0000003 0x00000002 in ?? ()
0000004 0x00000000 in ?? ()

Thread 8 (Thread 0xb4bffb90 (LWP 4607)):
0 0xb7fb18a8 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
0000001 0xb7a6cce4 in WorkerThread (arg=0xb7aa5780) at src/ThreadPool.c:499
0000002 0xb7facfda in start_thread () from /lib/libpthread.so.0
0000003 0x00000002 in ?? ()
0000004 0x00000000 in ?? ()

Thread 7 (Thread 0xb53ffb90 (LWP 4606)):
0 0xb772fe77 in select () from /lib/libc.so.6
0000001 0xb7a7e1a3 in RunMiniServer (miniSock=0x88a3948)
    at src/genlib/miniserver/miniserver.c:420
0000002 0xb7a6cfc8 in WorkerThread (arg=0xb7aa5780) at src/ThreadPool.c:573
0000003 0xb7facfda in start_thread () from /lib/libpthread.so.0
0000004 0x00000002 in ?? ()
0000005 0x00000000 in ?? ()

Thread 6 (Thread 0xb5bffb90 (LWP 4605)):
0 0xb772fe77 in select () from /lib/libc.so.6
0000001 0xb7a81c6c in sock_read_write (info=0xb5bfe3fc, buffer=0xb5bfdbc0 "L",
---Type <return> to continue, or q <return> to quit---
    bufsize=2048, timeoutSecs=0xb5bfe430, bRead=1 '\001')
    at src/genlib/net/sock.c:218
0000002 0xb7a81db6 in sock_read (info=0xb5bfe3fc, buffer=0xb5bfdbc0 "L",
    bufsize=2048, timeoutSecs=0xb5bfe430) at src/genlib/net/sock.c:307
0000003 0xb7a84b9d in http_RecvMessage (info=0xb5bfe3fc, parser=0xb5bfe4fc,
    request_method=HTTPMETHOD_GET, timeout_secs=0xb5bfe430,
    http_error_code=0xb5bfe408) at src/genlib/net/http/httpreadwrite.c:237
0000004 0xb7a855cd in http_RequestAndResponse (destination=0xb5bfe5d8,
    request=0x891a108 "GET /WANCommonInterfaceConfig.xml HTTP/1.1\r\nHOST: 192.168.1.1:2800\r\nDATE: Tue, 08 Jul 2008 15:57:00 GMT\r\nCONNECTION: close\r\nUSER-AGENT: Linux/2.6.24-19-generic, UPnP/1.0, Portable SDK for UPnP devices"...,
    request_length=210, req_method=HTTPMETHOD_GET, timeout_secs=30,
    response=0xb5bfe4fc) at src/genlib/net/http/httpreadwrite.c:554
0000005 0xb7a85930 in http_Download (
    url_str=0x8aa6d74 "http://192.168.1.1:2800/WANCommonInterfaceConfig.xml", [^]
    timeout_secs=30, document=0xb5bfe684, doc_length=0xb5bfe64c,
    content_type=0xb5bfe68c "\021\033\211·\b\203\211\b\b\203\211\b¨æ¿µ\221\233\a\bd¢m·\aç¿µØæ¿µ\205\235\a\bÓæ¿µ`qz·X\230\215\b`")
    at src/genlib/net/http/httpreadwrite.c:648
0000006 0xb7a9acf7 in UpnpDownloadUrlItem (
    url=0x8aa6d74 "http://192.168.1.1:2800/WANCommonInterfaceConfig.xml", [^]
    outBuf=0xb5bfe684,
    contentType=0xb5bfe68c "\021\033\211·\b\203\211\b\b\203\211\b¨æ¿µ\221\233\a\---Type <return> to continue, or q <return> to quit---
bd¢m·\aç¿µØæ¿µ\205\235\a\bÓæ¿µ`qz·X\230\215\b`") at src/api/upnpapi.c:3249
0000007 0xb7a9ad8b in UpnpDownloadXmlDoc (
    url=0x8aa6d74 "http://192.168.1.1:2800/WANCommonInterfaceConfig.xml", [^]
    xmlDoc=0xb5bfe860) at src/api/upnpapi.c:3281
0000008 0x08237541 in CUPnPControlPoint::Subscribe (this=0x88a1e60,
    service=@0x88d7f28) at UPnPBase.cpp:1516
0000009 0x082383fa in CUPnPService (this=0x88d7f28, upnpControlPoint=@0x88a1e60,
    upnpLib=@0x88a1e60, service=0x891c7e8, URLBase=@0xb5bff038)
    at UPnPBase.cpp:542
0000010 0x0825761f in CXML_List (this=0x8895628, upnpControlPoint=@0x88a1e60,
    upnpLib=@0x88a1e60, parent=0x88e2d18, url=@0xb5bff038) at UPnPBase.h:186
11 0x082387b8 in CUPnPDevice (this=0x8895600, upnpControlPoint=@0x88a1e60,
    upnpLib=@0x88a1e60, device=0x88e2d18, URLBase=@0xb5bff038)
    at UPnPBase.cpp:761
0000012 0x082578cf in CXML_List (this=0x8959d44, upnpControlPoint=@0x88a1e60,
    upnpLib=@0x88a1e60, parent=0x8899668, url=@0xb5bff038) at UPnPBase.h:186
0000013 0x08239184 in CUPnPDevice (this=0x8959d40, upnpControlPoint=@0x88a1e60,
    upnpLib=@0x88a1e60, device=0x8899668, URLBase=@0xb5bff038)
    at UPnPBase.cpp:761
0000014 0x08239b6f in CUPnPRootDevice (this=0x8959d40,
    upnpControlPoint=@0x88a1e60, upnpLib=@0x88a1e60, rootDevice=0x8899668,
    OriginalURLBase=@0xb5bff03c, FixedURLBase=@0xb5bff038,
    location=0xc5d0958 "http://192.168.1.1:2800/InternetGatewayDevice.xml", [^]
---Type <return> to continue, or q <return> to quit---
    expires=1830) at UPnPBase.cpp:812
0000015 0x08239fb3 in CUPnPControlPoint::AddRootDevice (this=0x88a1e60,
    rootDevice=0x8899668, urlBase=@0xb5bff2d4,
    location=0xc5d0958 "http://192.168.1.1:2800/InternetGatewayDevice.xml", [^]
    expires=1830) at UPnPBase.cpp:1479
0000016 0x0823f53d in CUPnPControlPoint::Callback (
    EventType=UPNP_DISCOVERY_SEARCH_RESULT, Event=0xc5d0680)
    at UPnPBase.cpp:1218
0000017 0xb7a77396 in send_search_result (data=0xc5d0680)
    at src/ssdp/ssdp_ctrlpt.c:73
0000018 0xb7a6cfc8 in WorkerThread (arg=0xb7aa5520) at src/ThreadPool.c:573
0000019 0xb7facfda in start_thread () from /lib/libpthread.so.0
0000020 0x00000002 in ?? ()
0000021 0x00000000 in ?? ()

Thread 5 (Thread 0xb63ffb90 (LWP 4604)):
0 0xb7fb3d94 in __lll_lock_wait () from /lib/libpthread.so.0
0000001 0xb7faf7f8 in _L_lock_95 () from /lib/libpthread.so.0
0000002 0xb7faf1ea in pthread_mutex_lock () from /lib/libpthread.so.0
0000003 0xb79b6ded in wxMutexInternal::Lock () from /usr/lib/libwx_baseu-2.8.so.0
0000004 0xb79b6e38 in wxMutex::Lock () from /usr/lib/libwx_baseu-2.8.so.0
0000005 0x0807875b in wxMutexLocker (this=0xb63ff028, mutex=@0x88a1ed4)
    at /usr/include/wx-2.8/wx/thread.h:176
---Type <return> to continue, or q <return> to quit---
0000006 0x08239e11 in CUPnPControlPoint::AddRootDevice (this=0x88a1e60,
    rootDevice=0x897e280, urlBase=@0xb63ff2d4,
    location=0xc5cff90 "http://192.168.1.1:2800/InternetGatewayDevice.xml", [^]
    expires=1830) at UPnPBase.cpp:1458
0000007 0x0823f53d in CUPnPControlPoint::Callback (
    EventType=UPNP_DISCOVERY_SEARCH_RESULT, Event=0xc5cfcb8)
    at UPnPBase.cpp:1218
0000008 0xb7a77396 in send_search_result (data=0xc5cfcb8)
    at src/ssdp/ssdp_ctrlpt.c:73
0000009 0xb7a6cfc8 in WorkerThread (arg=0xb7aa5520) at src/ThreadPool.c:573
0000010 0xb7facfda in start_thread () from /lib/libpthread.so.0
11 0x00000002 in ?? ()
0000012 0x00000000 in ?? ()

Thread 4 (Thread 0xb6bffb90 (LWP 4603)):
0 0xb7fb18a8 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
0000001 0xb7a6ef1c in TimerThreadWorker (arg=0xb7aa56e0) at src/TimerThread.c:137
0000002 0xb7a6cfc8 in WorkerThread (arg=0xb7aa5a80) at src/ThreadPool.c:573
0000003 0xb7facfda in start_thread () from /lib/libpthread.so.0
0000004 0x00000002 in ?? ()
0000005 0x00000000 in ?? ()

---Type <return> to continue, or q <return> to quit---
Thread 3 (Thread 0xb752fb90 (LWP 4602)):
0 0xb7fb18a8 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
0000001 0xb7a6cce4 in WorkerThread (arg=0xb7aa5a80) at src/ThreadPool.c:499
0000002 0xb7facfda in start_thread () from /lib/libpthread.so.0
0000003 0x00000002 in ?? ()
0000004 0x00000000 in ?? ()

Thread 1 (Thread 0xb766a6c0 (LWP 4596)):
0 0xb769b1b6 in raise () from /lib/libc.so.6
0000001 0xb769ca31 in abort () from /lib/libc.so.6
0000002 0x0808a82b in std::__debug::__replacement_assert (
    __file=0x837b8b9 "/usr/include/c++/4.2/memory", __line=285,
    __function=0x837ce00 "_Tp* std::auto_ptr<_Tp>::operator->() const [with _Tp = CUPnPSCPD]", __condition=0x837b8ad "_M_ptr != 0")
    at /usr/include/c++/4.2/debug/debug.h:99
0000003 0x0824f50d in std::auto_ptr<CUPnPSCPD>::operator-> (this=0x88d7f80)
    at /usr/include/c++/4.2/memory:285
0000004 0x0823c36a in CUPnPService::Execute (this=0x88d7f28,
    ActionName=@0xbf8356bc, ArgValue=@0xbf835644) at UPnPBase.cpp:575
0000005 0x0823ec8d in CUPnPControlPoint::PrivateAddPortMapping (this=0x88a1e60,
    upnpPortMapping=@0x8640f80) at UPnPBase.cpp:1049
0000006 0x08240756 in CUPnPControlPoint::AddPortMappings (this=0x88a1e60,
---Type <return> to continue, or q <return> to quit---
    upnpPortMapping=@0x8640dd0) at UPnPBase.cpp:951
0000007 0x08082a62 in CamuleApp::ReinitializeNetwork (this=0x8640d48,
    msg=0xbf835e30) at amule.cpp:1014
0000008 0x08085ffc in CamuleApp::OnInit (this=0x8640d48) at amule.cpp:734
0000009 0x08072c08 in CamuleDaemonApp::OnInit (this=0x8640d48) at amuled.cpp:663
0000010 0x08074b4c in wxAppConsole::CallOnInit (this=0x8640d48)
    at /usr/include/wx-2.8/wx/app.h:76
11 0xb794e030 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
0000012 0xb794e107 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
0000013 0x08074832 in main (argc=Cannot access memory at address 0x11f4
) at amuled.cpp:156

The character max is set to 20.000 that is why i had to reply myself twice to put the fulll backtrace...


P.S.: i already talked with wuischke: Sorry for making duplicated issues here and in the bug tracker. It wont happen again, unless a dev tells me to do so.

Cheers!
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Crash on init, no clue of which is the problem
« Reply #3 on: July 09, 2008, 03:53:05 PM »

It's a bug in UPnP code.

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: Crash on init, no clue of which is the problem
« Reply #4 on: July 10, 2008, 04:53:42 AM »

Indeed a bug. Should be fixed on tomorrow svn tarball.

GrayFox.i0n, please test and report.

Cheers!
Logged

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Crash on init, no clue of which is the problem
« Reply #5 on: July 10, 2008, 09:28:14 AM »

As far as i tryed, it started twice without giving me any error....... though it displays me a lot of events in the console, i think about UPnP (Maybe because i have the UPnP log enabled, i suppose)
Now i get high ID when connecting to the server (unlike before, when was really difficult to get a high ID)

I think, until what i saw now, the problem is fixed.
Anyway, i will keep an eye on it to check the correct behaviour of UPnP....

Thanks to all the dev team! :D
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: Crash on init, no clue of which is the problem
« Reply #6 on: July 14, 2008, 12:20:38 AM »

GrayFox.i0n,

Can you give me some update information about how UPnP is working (or not) for you?

Cheers!
Logged

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Crash on init, no clue of which is the problem
« Reply #7 on: July 14, 2008, 07:12:48 AM »

I have to start twice amuled for making the UPnP work.... (First start i get low id, second time, i always get high id)
The program actually hangs up whenever i close it from amulecmd.....
I will try to create a backtrace of these events with today's release.
Cheers!
Logged

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Crash on init, no clue of which is the problem
« Reply #8 on: July 14, 2008, 09:41:12 AM »

I have been trying today's SVN, and i realized this issues:

1: UPnP seems to not work the first time i run amule. The web interface port mapping seems to work, because i was able to connect to the web interface, but the server connection is allways low id..... Either the UPnP for the transfer port is not correctly working or amuleweb is reporting low id when i have high one? (i actually think, and im 99,9% sure i have low one). These synthoms dissapear once i shutdown amule and run it again.

2: I ran amuled in debug mode from one console, and from another one i ran amulecmd. In amulecmd i typed the command "shutdown" for closing amuled.... amuled seems to save the preferences and all the needed stuff, but does not dissapear from memory..... as you can see in the backtrace, i had to stop the debug with ctrl+c..... then, in this situation, amuled dissapeared from memory, but, usually, i have to input: killall amuled....
I think amuled does not close cleanly....

Here you have the generated backtrace that i got after performing these tests:


Code: [Select]
bigboss@OuterHeaven:~$ gdb amuled
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run
Starting program: /usr/bin/amuled
[Thread debugging using libthread_db enabled]
[New Thread 0xb75d56c0 (LWP 20190)]
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
[New Thread 0xb749ab90 (LWP 20195)]
HTTP download thread started
Host: amule.sourceforge.net:80
URL: http://amule.sourceforge.net/lastversion
Response: 200 (Error: 0)
Download size: 6
HTTP download thread ended
[Thread 0xb749ab90 (LWP 20195) exited]
ListenSocket: Ok.
[New Thread 0xb749ab90 (LWP 20196)]
[New Thread 0xb6affb90 (LWP 20197)]
[New Thread 0xb62ffb90 (LWP 20198)]
[New Thread 0xb5affb90 (LWP 20199)]
[New Thread 0xb52ffb90 (LWP 20200)]
[New Thread 0xb4affb90 (LWP 20201)]
[New Thread 0xb42ffb90 (LWP 20202)]
[New Thread 0xb3affb90 (LWP 20203)]
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Connection, value: close
hdr name: Content-Type, value: text/xml
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Connection, value: close
hdr name: Content-Type, value: text/xml
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Connection, value: close
hdr name: Content-Type, value: text/xml
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Connection, value: close
hdr name: Content-Type, value: text/xml
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
[New Thread 0xb32ffb90 (LWP 20204)]
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Connection, value: close
hdr name: Content-Length, value: 15479
hdr name: Content-Type, value: text/xml
hdr name: ETag, value: "gNa2L"
hdr name: Last-Modified, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: max-age=3600, public
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Connection, value: close
hdr name: Content-Length, value: 15479
hdr name: Content-Type, value: text/xml
hdr name: ETag, value: "gNa2L"
hdr name: Last-Modified, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: max-age=3600, public
Loading temp files from /home/bigboss/.TempaMule.
Loading PartFile 1 of 1
All PartFiles Loaded.
Adding file /home/bigboss/.TempaMule/002.part.met to shares
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: SID, value: uuid:9179c1c4-73bc-a667-3fc6-6512d2f4a831
hdr name: TIMEOUT, value: Second-600
hdr name: Content-Length, value: 0
method = 4, version = 1.1, url = /
hdr name: User-Agent, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Host, value: 192.168.1.100:50000
hdr name: NT, value: upnp:event
hdr name: NTS, value: upnp:propchange
hdr name: SID, value: uuid:9179c1c4-73bc-a667-3fc6-6512d2f4a831
hdr name: SEQ, value: 0
hdr name: Connection, value: Keep-Alive
hdr name: Content-Length, value: 391
hdr name: Content-Type, value: text/xml
[New Thread 0xb2affb90 (LWP 20205)]
HTTP download thread started
[Thread 0xb6affb90 (LWP 20197) exited]
Host: switch.dl.sourceforge.net:80
URL: http://switch.dl.sourceforge.net/sourceforge/emulepawcio/ipfilter.dat
Response: 200 (Error: 0)
Download size: 17546082
[Thread 0xb52ffb90 (LWP 20200) exited]
[New Thread 0xb52ffb90 (LWP 20207)]
[New Thread 0xb6affb90 (LWP 20208)]
[Thread 0xb52ffb90 (LWP 20207) exited]
method = 4, version = 1.1, url = /
hdr name: User-Agent, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Host, value: 192.168.1.100:50000
hdr name: NT, value: upnp:event
hdr name: NTS, value: upnp:propchange
hdr name: SID, value: uuid:9179c1c4-73bc-a667-3fc6-6512d2f4a831
hdr name: SEQ, value: 1
hdr name: Connection, value: Keep-Alive
hdr name: Content-Length, value: 157
hdr name: Content-Type, value: text/xml
HTTP download thread ended
[Thread 0xb2affb90 (LWP 20205) exited]
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Content-Type, value: text/xml; charset=utf-8
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 500, version = 1.1, status msg = Internal Error
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Content-Type, value: text/xml; charset=utf-8
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 500, version = 1.1, status msg = Internal Error
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Content-Type, value: text/xml; charset=utf-8
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 500, version = 1.1, status msg = Internal Error
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Content-Type, value: text/xml; charset=utf-8
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 500, version = 1.1, status msg = Internal Error
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Content-Type, value: text/xml; charset=utf-8
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Content-Type, value: text/xml; charset=utf-8
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
[Thread 0xb32ffb90 (LWP 20204) exited]
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Content-Type, value: text/xml; charset=utf-8
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 500, version = 1.1, status msg = Internal Error
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Content-Type, value: text/xml; charset=utf-8
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 500, version = 1.1, status msg = Internal Error
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Content-Type, value: text/xml; charset=utf-8
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 500, version = 1.1, status msg = Internal Error
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Content-Type, value: text/xml; charset=utf-8
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 500, version = 1.1, status msg = Internal Error
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Content-Type, value: text/xml; charset=utf-8
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
resp status = 200, version = 1.1, status msg = OK
hdr name: Server, value: Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
hdr name: Content-Type, value: text/xml; charset=utf-8
hdr name: Expires, value: Thu, 01 Jan 1970 00:00:00 GMT
hdr name: Cache-Control, value: no-cache
hdr name: Pragma, value: no-cache
[Thread 0xb6affb90 (LWP 20208) exited]
Now, exiting main app...
aMule OnExit: Terminating core.
Saving PartFile 1 of 1
All PartFiles Saved.

Program received signal SIGINT, Interrupt.
[Switching to Thread 0xb75d56c0 (LWP 20190)]
0xb769ae77 in select () from /lib/libc.so.6

Continues on next reply...
Logged

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Crash on init, no clue of which is the problem
« Reply #9 on: July 14, 2008, 09:41:31 AM »

Code: [Select]
bt =======================================================================

(gdb) bt
#0  0xb769ae77 in select () from /lib/libc.so.6
#1  0xb79ecc6c in sock_read_write (info=0xbfa2bebc, buffer=0xbfa2b680 "u", bufsize=2048, timeoutSecs=0xbfa2bef0, bRead=1 '\001')
    at src/genlib/net/sock.c:218
#2  0xb79ecdb6 in sock_read (info=0xbfa2bebc, buffer=0xbfa2b680 "u", bufsize=2048, timeoutSecs=0xbfa2bef0) at src/genlib/net/sock.c:307
#3  0xb79efb9d in http_RecvMessage (info=0xbfa2bebc, parser=0xbfa2bfa8, request_method=HTTPMETHOD_UNSUBSCRIBE, timeout_secs=0xbfa2bef0,
    http_error_code=0xbfa2bec8) at src/genlib/net/http/httpreadwrite.c:237
#4  0xb79f05cd in http_RequestAndResponse (destination=0xbfa2bf28,
    request=0xb17df330 "UNSUBSCRIBE /EmWeb/UPnP/Eventing/4 HTTP/1.1\r\nHOST: 192.168.1.1:2800\r\nSID: uuid:9179c1c4-73bc-a667-3fc6-6512d2f4a831\r\nUSER-AGENT: Linux/2.6.24-19-generic, UPnP/1.0, Portable SDK for UPnP devices/1.6.6\r"..., request_length=203, req_method=HTTPMETHOD_UNSUBSCRIBE, timeout_secs=30,
    response=0xbfa2bfa8) at src/genlib/net/http/httpreadwrite.c:554
#5  0xb79fc3db in gena_unsubscribe (url=0xb21efd18 "http://192.168.1.1:2800/EmWeb/UPnP/Eventing/4",
    sid=0xb2276e58 "uuid:9179c1c4-73bc-a667-3fc6-6512d2f4a831", response=0xbfa2bfa8) at src/gena/gena_ctrlpt.c:234
#6  0xb79fcb1d in genaUnregisterClient (client_handle=1) at src/gena/gena_ctrlpt.c:422
#7  0xb7a01257 in UpnpUnRegisterClient (Hnd=1) at src/api/upnpapi.c:1399
#8  0x0823534c in ~CUPnPControlPoint (this=0x87ea688) at UPnPBase.cpp:924
#9  0x08086e41 in CamuleApp::OnExit (this=0x8640d48) at amule.cpp:294
#10 0x08072b40 in CamuleDaemonApp::OnExit (this=0x8640d48) at amuled.cpp:728
#11 0xb78b9066 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#12 0xb78b9107 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#13 0x08074832 in main (argc=128, argv=0x0) at amuled.cpp:156

bt full ==================================================================

(gdb) bt full
#0  0xb769ae77 in select () from /lib/libc.so.6
No symbol table info available.
#1  0xb79ecc6c in sock_read_write (info=0xbfa2bebc, buffer=0xbfa2b680 "u", bufsize=2048, timeoutSecs=0xbfa2bef0, bRead=1 '\001')
    at src/genlib/net/sock.c:218
        retCode = -1214319622
        readSet = {__fds_bits = {128, 0 <repeats 31 times>}}
        writeSet = {__fds_bits = {0 <repeats 32 times>}}
        timeout = {tv_sec = 29, tv_usec = 720000}
        numBytes = -1079855576
        start_time = 1216020064
        sockfd = 7
        bytes_sent = 0
        byte_left = 0
        num_written = -1214328069
#2  0xb79ecdb6 in sock_read (info=0xbfa2bebc, buffer=0xbfa2b680 "u", bufsize=2048, timeoutSecs=0xbfa2bef0) at src/genlib/net/sock.c:307
No locals.
#3  0xb79efb9d in http_RecvMessage (info=0xbfa2bebc, parser=0xbfa2bfa8, request_method=HTTPMETHOD_UNSUBSCRIBE, timeout_secs=0xbfa2bef0,
    http_error_code=0xbfa2bec8) at src/genlib/net/http/httpreadwrite.c:237
        status = 105
        num_read = 76
        ok_on_close = 0 '\0'
        buf = "u\000\000\000x\000\000\000/\000\000\0002\000\000\000.\000\000\0006\000\000\000.\000\000\0002\000\000\0004\000\000\000-\000\000\0001\000\000\0009\000\000\000-\000\000\000g\000\000\000e\000\000\000n\000\000\000e\000\000\000r\000\000\000i\000\000\000c\000\000\000,\000\000\000 \000\000\000U\000\000\000P\000\000\000n\000\000\000P\000\000\000/\000\000\0001\000\000\000.\000\000\0000\000\000\000,\000\000\000 \000\000\000P\000\000\000o\000\000\000r\000\000\000t\000\000\000a\000\000\000b\000\000\000l\000\000\000e\000\000\000 \000\000\000S\000\000\000D\000\000\000K\000\000\000 \000\000\000f\000\000\000o\000\000\000r\000\000\000 \000\000\000U\000\000\000"...
#4  0xb79f05cd in http_RequestAndResponse (destination=0xbfa2bf28,
    request=0xb17df330 "UNSUBSCRIBE /EmWeb/UPnP/Eventing/4 HTTP/1.1\r\nHOST: 192.168.1.1:2800\r\nSID: uuid:9179c1c4-73bc-a667-3fc6-6512d2f4a831\r\nUSER-AGENT: Linux/2.6.24-19-generic, UPnP/1.0, Portable SDK for UPnP devices/1.6.6\r"..., request_length=203, req_method=HTTPMETHOD_UNSUBSCRIBE, timeout_secs=30,
    response=0xbfa2bfa8) at src/genlib/net/http/httpreadwrite.c:554
        tcp_connection = 7
        ret_code = 0
        http_error_code = 0
        info = {socket = 7, foreign_ip_addr = {s_addr = 0}, foreign_ip_port = 0}
#5  0xb79fc3db in gena_unsubscribe (url=0xb21efd18 "http://192.168.1.1:2800/EmWeb/UPnP/Eventing/4",
    sid=0xb2276e58 "uuid:9179c1c4-73bc-a667-3fc6-6512d2f4a831", response=0xbfa2bfa8) at src/gena/gena_ctrlpt.c:234
        return_code = 0
        dest_url = {type = ABSOLUTE, scheme = {buff = 0xb21efd18 "http://192.168.1.1:2800/EmWeb/UPnP/Eventing/4", size = 4}, path_type = ABS_PATH,
  pathquery = {buff = 0xb21efd2f "/EmWeb/UPnP/Eventing/4", size = 22}, fragment = {buff = 0x0, size = 0}, hostport = {text = {
      buff = 0xb21efd1f "192.168.1.1:2800/EmWeb/UPnP/Eventing/4", size = 16}, IPv4address = {sin_family = 2, sin_port = 61450, sin_addr = {
        s_addr = 16885952}, sin_zero = "\000\000\000\000\000\000\000"}}}
        request = {
  buf = 0xb17df330 "UNSUBSCRIBE /EmWeb/UPnP/Eventing/4 HTTP/1.1\r\nHOST: 192.168.1.1:2800\r\nSID: uuid:9179c1c4-73bc-a667-3fc6-6512d2f4a831\r\nUSER-AGENT: Linux/2.6.24-19-generic, UPnP/1.0, Portable SDK for UPnP devices/1.6.6\r"..., length = 203, capacity = 203, size_inc = 30}
#6  0xb79fcb1d in genaUnregisterClient (client_handle=1) at src/gena/gena_ctrlpt.c:422
        sub_copy = {sid = "uuid:2b897216-1dd2-11b2-8da8-9153fc7a0bea\000ô·", ActualSID = 0xb2276e58 "uuid:9179c1c4-73bc-a667-3fc6-6512d2f4a831",
  EventURL = 0xb21efd18 "http://192.168.1.1:2800/EmWeb/UPnP/Eventing/4", RenewEventId = -1, next = 0x0}
        return_code = 1
        handle_info = (struct Handle_Info *) 0x9e78660
        response = {msg = {initialized = 1, method = HTTPMETHOD_POST, uri = {type = ABSOLUTE, scheme = {buff = 0x0, size = 0}, path_type = ABS_PATH,
      pathquery = {buff = 0x0, size = 0}, fragment = {buff = 0x0, size = 0}, hostport = {text = {buff = 0x0, size = 0}, IPv4address = {sin_family = 0,
          sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}}}, request_method = HTTPMETHOD_UNSUBSCRIBE, status_code = 0,
    status_msg = {buf = 0x0, length = 0, capacity = 0, size_inc = 5}, is_request = 0 '\0', major_version = 0, minor_version = 0, headers = {head = {
        prev = 0x0, next = 0xbfa2c018, item = 0x0}, tail = {prev = 0xbfa2c00c, next = 0x0, item = 0x0}, size = 0, freeNodeList = {head = 0x0,
        element_size = 12, maxFreeListLength = 100, freeListLength = 0}, free_func = 0xb79ed387 <httpheader_free>,
      cmp_func = 0xb79ed2fb <httpmsg_compare>}, entity = {buf = 0x0, length = 0}, msg = {buf = 0x0, length = 0, capacity = 0, size_inc = 5}, urlbuf = 0x0},
  http_error_code = 400, valid_ssdp_notify_hack = 0 '\0', position = POS_RESPONSE_LINE, ent_position = 1, content_length = 0, chunk_size = 0,
  entity_start_position = 0, scanner = {msg = 0xbfa2c048, cursor = 0, entire_msg_loaded = 0 '\0'}}
#7  0xb7a01257 in UpnpUnRegisterClient (Hnd=1) at src/api/upnpapi.c:1399
---Type <return> to continue, or q <return> to quit---
        HInfo = (struct Handle_Info *) 0x1
        node = (ListNode *) 0x0
        searchArg = (SsdpSearchArg *) 0x0
#8  0x0823534c in ~CUPnPControlPoint (this=0x87ea688) at UPnPBase.cpp:924
No locals.
#9  0x08086e41 in CamuleApp::OnExit (this=0x8640d48) at amule.cpp:294
No locals.
#10 0x08072b40 in CamuleDaemonApp::OnExit (this=0x8640d48) at amuled.cpp:728
No locals.
#11 0xb78b9066 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#12 0xb78b9107 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#13 0x08074832 in main (argc=128, argv=0x0) at amuled.cpp:156
No locals.

thread apply all bt ======================================================

(gdb) thread apply all bt

Thread 10 (Thread 0xb3affb90 (LWP 20203)):
#0  0xb7f1c8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb79d7ce4 in WorkerThread (arg=0xb7a10780) at src/ThreadPool.c:499
#2  0xb7f17fda in start_thread () from /lib/libpthread.so.0
#3  0x00000002 in ?? ()
#4  0x00000000 in ?? ()

Thread 9 (Thread 0xb42ffb90 (LWP 20202)):
#0  0xb7f1c8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb79d7ce4 in WorkerThread (arg=0xb7a10a80) at src/ThreadPool.c:499
#2  0xb7f17fda in start_thread () from /lib/libpthread.so.0
#3  0x00000002 in ?? ()
#4  0x00000000 in ?? ()

Thread 8 (Thread 0xb4affb90 (LWP 20201)):
#0  0xb769ae77 in select () from /lib/libc.so.6
#1  0xb79e91a3 in RunMiniServer (miniSock=0x87cbed8) at src/genlib/miniserver/miniserver.c:420
#2  0xb79d7fc8 in WorkerThread (arg=0xb7a10780) at src/ThreadPool.c:573
#3  0xb7f17fda in start_thread () from /lib/libpthread.so.0
#4  0x00000002 in ?? ()
#5  0x00000000 in ?? ()

Thread 6 (Thread 0xb5affb90 (LWP 20199)):
#0  0xb7f1c8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb79d7ce4 in WorkerThread (arg=0xb7a10520) at src/ThreadPool.c:499
#2  0xb7f17fda in start_thread () from /lib/libpthread.so.0
#3  0x00000002 in ?? ()
#4  0x00000000 in ?? ()

Thread 5 (Thread 0xb62ffb90 (LWP 20198)):
#0  0xb7f1c8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb79d7ce4 in WorkerThread (arg=0xb7a10520) at src/ThreadPool.c:499
#2  0xb7f17fda in start_thread () from /lib/libpthread.so.0
#3  0x00000002 in ?? ()
#4  0x00000000 in ?? ()

Thread 3 (Thread 0xb749ab90 (LWP 20196)):
#0  0xb7f1c8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb79d9f1c in TimerThreadWorker (arg=0xb7a106e0) at src/TimerThread.c:137
#2  0xb79d7fc8 in WorkerThread (arg=0xb7a10a80) at src/ThreadPool.c:573
#3  0xb7f17fda in start_thread () from /lib/libpthread.so.0
#4  0x00000002 in ?? ()
#5  0x00000000 in ?? ()

Thread 1 (Thread 0xb75d56c0 (LWP 20190)):
#0  0xb769ae77 in select () from /lib/libc.so.6
#1  0xb79ecc6c in sock_read_write (info=0xbfa2bebc, buffer=0xbfa2b680 "u", bufsize=2048, timeoutSecs=0xbfa2bef0, bRead=1 '\001')
    at src/genlib/net/sock.c:218
#2  0xb79ecdb6 in sock_read (info=0xbfa2bebc, buffer=0xbfa2b680 "u", bufsize=2048, timeoutSecs=0xbfa2bef0) at src/genlib/net/sock.c:307
#3  0xb79efb9d in http_RecvMessage (info=0xbfa2bebc, parser=0xbfa2bfa8, request_method=HTTPMETHOD_UNSUBSCRIBE, timeout_secs=0xbfa2bef0,
    http_error_code=0xbfa2bec8) at src/genlib/net/http/httpreadwrite.c:237
#4  0xb79f05cd in http_RequestAndResponse (destination=0xbfa2bf28,
    request=0xb17df330 "UNSUBSCRIBE /EmWeb/UPnP/Eventing/4 HTTP/1.1\r\nHOST: 192.168.1.1:2800\r\nSID: uuid:9179c1c4-73bc-a667-3fc6-6512d2f4a831\r\nUSER-AGENT: Linux/2.6.24-19-generic, UPnP/1.0, Portable SDK for UPnP devices/1.6.6\r"..., request_length=203, req_method=HTTPMETHOD_UNSUBSCRIBE, timeout_secs=30,
    response=0xbfa2bfa8) at src/genlib/net/http/httpreadwrite.c:554
#5  0xb79fc3db in gena_unsubscribe (url=0xb21efd18 "http://192.168.1.1:2800/EmWeb/UPnP/Eventing/4",
    sid=0xb2276e58 "uuid:9179c1c4-73bc-a667-3fc6-6512d2f4a831", response=0xbfa2bfa8) at src/gena/gena_ctrlpt.c:234
#6  0xb79fcb1d in genaUnregisterClient (client_handle=1) at src/gena/gena_ctrlpt.c:422
---Type <return> to continue, or q <return> to quit---
#7  0xb7a01257 in UpnpUnRegisterClient (Hnd=1) at src/api/upnpapi.c:1399
#8  0x0823534c in ~CUPnPControlPoint (this=0x87ea688) at UPnPBase.cpp:924
#9  0x08086e41 in CamuleApp::OnExit (this=0x8640d48) at amule.cpp:294
#10 0x08072b40 in CamuleDaemonApp::OnExit (this=0x8640d48) at amuled.cpp:728
#11 0xb78b9066 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#12 0xb78b9107 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#13 0x08074832 in main (argc=128, argv=0x0) at amuled.cpp:156


btw... i think there are pages in which you can paste source code, and they will host it for you, giving you a hotlink to paste it wherever you want, that will show you that code. Kinda imageshack, but with source code instead of with images.... Do you know any? (i dont want to do as in the beginning of this thead, (and now), replying myself to put the fulll bt because of the character amount limitation....


Cheers!!
Logged

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Crash on init, no clue of which is the problem
« Reply #10 on: July 14, 2008, 02:54:53 PM »

This is what appeared in the log (another attempt to connect some hours after the backtrace):

Code: [Select]
2008-07-14 14:13:13: UPnPBase.cpp(866): Universal Plug and Play: bound to 192.168.1.100:50000.
2008-07-14 14:13:16: UPnPBase.cpp(937): Universal Plug and Play: UPnP Error: CUPnPControlPoint::AddPortMapping: Wan Service not detected.

The stupid UPnP did not be able to detect my router.....  >:(

Cheers!  :D
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: Crash on init, no clue of which is the problem
« Reply #11 on: July 15, 2008, 02:37:06 AM »

Sorry, what exactly is stupid? The code that I have written? :(

Would you mind providing the full debug log of UPnP? You must enable UPnP debug log from "Preferences", exit aMule, run it again and then attach the file ~/.aMule/logfile to this thread.

EDIT: Even better, before doing that, try tomorrow svn code, I think I have fixed this issue. If it still does not work, then please report.
« Last Edit: July 15, 2008, 04:19:04 AM by phoenix »
Logged

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Crash on init, no clue of which is the problem
« Reply #12 on: July 15, 2008, 07:08:10 AM »

Sorry, what exactly is stupid? The code that I have written? :(

Would you mind providing the full debug log of UPnP? You must enable UPnP debug log from "Preferences", exit aMule, run it again and then attach the file ~/.aMule/logfile to this thread.

EDIT: Even better, before doing that, try tomorrow svn code, I think I have fixed this issue. If it still does not work, then please report.

Just kidding about the UPnP...  ;D is a great work...

I realized UPnP leaves two files in my home directory everytime  i start amuled... i will try to post them here as well....

Cheers!!
Logged

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Crash on init, no clue of which is the problem
« Reply #13 on: July 15, 2008, 09:06:05 AM »

I am not able to connect via web.. i think the port mapping for this connection is not working... :( (But i got High ID)

Here you have the logfile

Code: [Select]
2008-07-15 07:25:51: ClientCreditsList.cpp(168): Archivo de créditos cargado, 462 clientes conocidos
2008-07-15 07:25:51: IPFilter.cpp(109): Cargando filtros IP 'ipfilter.dat' y 'ipfilter_static.dat'
2008-07-15 07:26:13: IPFilter.cpp(334): Cargado 246589 rangos IP desde '/home/bigboss/.aMule/ipfilter.dat'. 0 líneas malformadas fueron descartadas
2008-07-15 07:26:13: IPFilter.cpp(334): Cargado 0 rangos IP desde '/home/bigboss/.aMule/ipfilter_static.dat'. 0 líneas malformadas fueron descartadas
2008-07-15 07:26:14: ExternalConn.cpp(160): *** TCP socket (ECServer) listening on 0.0.0.0:4712
2008-07-15 07:26:14: MuleUDPSocket.cpp(81): Created Server UDP-Socket at port 4632
2008-07-15 07:26:14: MuleUDPSocket.cpp(81): Created Client UDP-Socket at port 4759
2008-07-15 07:26:14: UPnPBase.cpp(868): Universal Plug and Play: bound to 192.168.1.100:50000.
2008-07-15 07:26:29: UPnPBase.cpp(1225): Universal Plug and Play: Internet Gateway Device Detected.
2008-07-15 07:26:29: UPnPBase.cpp(562): Universal Plug and Play: Uninteresting service detected: 'urn:schemas-upnp-org:service:WANDSLLinkConfig:1'. Ignoring.
2008-07-15 07:26:29: UPnPBase.cpp(545): Universal Plug and Play: WAN Service Detected: 'urn:schemas-upnp-org:service:WANPPPConnection:1'.
2008-07-15 07:26:29: UPnPBase.cpp(1225): Universal Plug and Play: Internet Gateway Device Detected.
2008-07-15 07:26:29: UPnPBase.cpp(1529): Universal Plug and Play: Successfully retrieved SCPD Document for service urn:schemas-upnp-org:service:WANPPPConnection:1, absEventSubURL: http://192.168.1.1:2800/EmWeb/UPnP/Eventing/4.
2008-07-15 07:26:29: UPnPBase.cpp(1543): Universal Plug and Play: Successfully subscribed to service urn:schemas-upnp-org:service:WANPPPConnection:1, absEventSubURL: http://192.168.1.1:2800/EmWeb/UPnP/Eventing/4.
2008-07-15 07:26:29: UPnPBase.cpp(562): Universal Plug and Play: Uninteresting service detected: 'urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1'. Ignoring.
2008-07-15 07:26:29: UPnPBase.cpp(562): Universal Plug and Play: Uninteresting service detected: 'urn:schemas-upnp-org:service:Layer3Forwarding:1'. Ignoring.
2008-07-15 07:26:29: UPnPBase.cpp(1458): Universal Plug and Play: UPNP_EVENT_RECEIVED:
    SID: uuid:8c53dd60-1dd2-11b2-94da-d46064b0a4fb
    Key: 0
    Property list:
        PossibleConnectionTypes='IP_Routed'
        ConnectionStatus='Connected'
        ExternalIPAddress='hidden.ip.address.for.security.reasons'
        PortMappingNumberOfEntries='1'
2008-07-15 07:26:29: UPnPBase.cpp(1458): Universal Plug and Play: UPNP_EVENT_RECEIVED:
    SID: uuid:8c53dd60-1dd2-11b2-94da-d46064b0a4fb
    Key: 1
    Property list:
        PortMappingNumberOfEntries='3'
2008-07-15 07:26:29: UPnPBase.cpp(1458): Universal Plug and Play: UPNP_EVENT_RECEIVED:
    SID: uuid:8c53dd60-1dd2-11b2-94da-d46064b0a4fb
    Key: 2
    Property list:
        PortMappingNumberOfEntries='5'
2008-07-15 07:26:29: ServerList.cpp(83): Cargando archivo server.met: /home/bigboss/.aMule/server.met
2008-07-15 07:26:29: ServerList.cpp(168): 4 servidores encontrados en server.met
2008-07-15 07:26:29: DownloadQueue.cpp(176): Encontrado 1 parte de archivo
2008-07-15 07:26:29: SharedFileList.cpp(352): Encontrado 9 archivos compartidos
2008-07-15 07:26:29: amule.cpp(801): Conectando
2008-07-15 07:26:29: ServerSocket.cpp(621): Servers: Trying to connect
2008-07-15 07:26:29: ServerSocket.cpp(754): Conectando a Razorback 3.1 (193.138.205.25 - 193.138.205.25:443)
2008-07-15 07:26:29: Indexed.cpp(240): Kademlia Indexing: CSafeIOException in CIndexed::readFile: SafeIO::EOF: Attempt to read past end of file.
2008-07-15 07:26:29: RoutingZone.cpp(188): Leídos 175 contactos Kad
2008-07-15 07:26:30: amule.cpp(844): servidor web corriendo con pid: 15917
2008-07-15 07:26:30: Logger.cpp(275): Deleted stale lock file '/home/bigboss/.aMule/muleLock'.
2008-07-15 07:26:30: ThreadScheduler.cpp(308): ThreadScheduler: Completed task 'AICH Syncronizing', 0 tasks remaining.
2008-07-15 07:26:30: amule.cpp(1914): Tu copia de aMule está actualizada.
2008-07-15 07:26:30: ExternalConn.cpp(218): Nueva conexión externa, aceptada
2008-07-15 07:26:30: ExternalConn.cpp(252): Conectando con cliente: aMuleweb SVN
2008-07-15 07:26:30: ExternalConn.cpp(307): Acceso concedido.
2008-07-15 07:26:31: ServerSocket.cpp(621): Servers: Trying to connect
2008-07-15 07:26:31: ServerSocket.cpp(754): Conectando a # eMule Serverlist Nr.1 # (193.138.221.213 - 193.138.221.213:4242) usando ofuscación de protocolo.
2008-07-15 07:26:31: ServerConnect.cpp(190): Conectado a # eMule Serverlist Nr.1 # (193.138.221.213:4242)
2008-07-15 07:26:31: Kad iniciado.
2008-07-15 07:26:32: Kad detenido.
2008-07-15 07:26:32: Conectado a Kad (tras cortafuegos)
2008-07-15 07:26:35: ServerSocket.cpp(409): Servers: Connected
2008-07-15 07:26:35: ServerConnect.cpp(263): Conexión establecida en: # eMule Serverlist Nr.1 #
2008-07-15 07:26:35: Conectado a # eMule Serverlist Nr.1 # con IDAlta
2008-07-15 07:26:35: ServerSocket.cpp(417): El nuevo ID-Cliente es 2279476056
2008-07-15 07:26:59: Conectado a Kad (ok)
2008-07-15 07:27:31: IPFilter.cpp(109): Cargando filtros IP 'ipfilter.dat' y 'ipfilter_static.dat'
2008-07-15 07:27:55: IPFilter.cpp(334): Cargado 246589 rangos IP desde '/home/bigboss/.aMule/ipfilter.dat'. 0 líneas malformadas fueron descartadas
2008-07-15 07:27:55: IPFilter.cpp(334): Cargado 0 rangos IP desde '/home/bigboss/.aMule/ipfilter_static.dat'. 0 líneas malformadas fueron descartadas
2008-07-15 07:29:36: Desconectado de eD2k
2008-07-15 07:29:36: ServerSocket.cpp(621): Servers: Trying to connect
2008-07-15 07:29:36: ServerSocket.cpp(754): Conectando a eDonkeyServer No1 (77.247.178.244 - 77.247.178.244:443) usando ofuscación de protocolo.
2008-07-15 07:29:36: ServerConnect.cpp(190): Conectado a eDonkeyServer No1 (77.247.178.244:4242)
2008-07-15 07:29:38: ServerSocket.cpp(409): Servers: Connected
2008-07-15 07:29:38: ServerConnect.cpp(263): Conexión establecida en: eDonkeyServer No1
2008-07-15 07:29:38: Conectado a eDonkeyServer No1 con IDAlta
2008-07-15 07:29:38: ServerSocket.cpp(417): El nuevo ID-Cliente es 2279476056
2008-07-15 07:29:38: Mensaje del servidor: server version 17.15 (lugdunum)
2008-07-15 07:29:38: Mensaje del servidor: .    __       ___       ______ ______ ________     _________   __   ________     __     __
2008-07-15 07:29:38: Mensaje del servidor: .   /   /      /       |    /__    __/__    __/    ____/    |   /    /__    __/  /__/  /   __     /    |   /    /   /   /
2008-07-15 07:29:38: Mensaje del servidor: .  /   /     /   /  |   |      /    /        /    /   /    /__   /      | /    /    /    /       __    /   /    /   /      | /    /   /   /
2008-07-15 07:29:38: Mensaje del servidor: . /_ /    /   ___   |   /    /        /    /   /    /___ /     /|      /    /    /      /    /   /   /__/  /     /|      /   /_ /
2008-07-15 07:29:38: Mensaje del servidor: .( _ )  / _ /    |__\/ _ /        / _ /   / _____/ __/ |_  /    / _ /      / _ /   /_____ /  _/ |_   /   ( _ )__/ __/ |_  /    / _ /      / _ /   /_____ /  _/ |_   /   ( _ ) /   /_____ /  _/ |_   /   ( _ )
2008-07-15 08:03:32: Mensaje del servidor: .
2008-07-15 08:03:32: Mensaje del servidor: .
2008-07-15 08:03:32: Mensaje del servidor: Test Usenet downloads at full DSL-Speed for 2 weeks free and get 150GB http://test.eDonkey.to
2008-07-15 08:43:56: RoutingZone.cpp(235): Escritos 167 contactos Kad
2008-07-15 08:43:59: MuleUDPSocket.cpp(81): Created Client UDP-Socket at port 4759
2008-07-15 08:43:59: RoutingZone.cpp(188): Leídos 167 contactos Kad
2008-07-15 08:44:01: Conectado a Kad (tras cortafuegos)
2008-07-15 08:44:14: Conectado a Kad (ok)
2008-07-15 08:46:34: ExternalConn.cpp(218): Nueva conexión externa, aceptada
2008-07-15 08:46:34: ExternalConn.cpp(252): Conectando con cliente: aMulecmd SVN
2008-07-15 08:46:34: ExternalConn.cpp(307): Acceso concedido.
2008-07-15 08:47:03: ExternalConn.cpp(1058): Conexión externa: apagado solicitado
2008-07-15 08:47:03: RoutingZone.cpp(235): Escritos 184 contactos Kad
2008-07-15 08:47:04: Desconectado de eD2k
2008-07-15 08:47:04: Desconectado de Kad
2008-07-15 08:47:04: TerminationProcess.cpp(49): Comando `'amuleweb' '--amule-config-file=/home/bigboss/.aMule/amule.conf'' con pid `15917' ha terminado con código `-1'.
2008-07-15 08:47:16: UPnPBase.cpp(1104): Universal Plug and Play: UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.
2008-07-15 08:47:17: UPnPBase.cpp(139): Universal Plug and Play: Error: UpnpSendAction: Error code :'501', Error description :'Action failed, No Matching Waiting Session Found'.
2008-07-15 08:47:17: UPnPBase.cpp(1104): Universal Plug and Play: UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.
2008-07-15 08:47:18: UPnPBase.cpp(139): Universal Plug and Play: Error: UpnpSendAction: Error code :'501', Error description :'Action failed, No Matching Waiting Session Found'.
2008-07-15 08:47:18: UPnPBase.cpp(1104): Universal Plug and Play: UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.
2008-07-15 08:47:18: UPnPBase.cpp(139): Universal Plug and Play: Error: UpnpSendAction: Error code :'501', Error description :'Action failed, No Matching Waiting Session Found'.
2008-07-15 08:47:18: UPnPBase.cpp(1104): Universal Plug and Play: UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.
2008-07-15 08:47:19: UPnPBase.cpp(139): Universal Plug and Play: Error: UpnpSendAction: Error code :'501', Error description :'Action failed, No Matching Waiting Session Found'.

Is in spanish.... i would prefer if i can have all the logfiles and messages in english, so i can report anything in an easyer way for you to understand.....

And here i attach the error files i was talking about....... They are quite big, so i had to upload them to rapidhsare..... my apologies.....

http://rapidshare.de/files/40005528/IUpnp.zip.html

Thanks for your great effort!


EDIT: Updated info:

Even i restarted the machine once and again, and i closed amuled and reopened it once and again, i can never connect through web interface (Port 4711)...
« Last Edit: July 15, 2008, 12:19:50 PM by GrayFox.i0n »
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: Crash on init, no clue of which is the problem
« Reply #14 on: July 17, 2008, 03:36:49 PM »

Hi GrayFox.i0n,

The link is broken for me. But from your post I can see that UPnP is functional now, is that right?

About the web connection, this is probably another problem. Do you still get the crash upon entry? I guess not.

Quote
2008-07-15 07:26:30: amule.cpp(844): servidor web corriendo con pid: 15917
2008-07-15 07:26:30: Logger.cpp(275): Deleted stale lock file '/home/bigboss/.aMule/muleLock'.
2008-07-15 07:26:30: ThreadScheduler.cpp(308): ThreadScheduler: Completed task 'AICH Syncronizing', 0 tasks remaining.
2008-07-15 07:26:30: amule.cpp(1914): Tu copia de aMule está actualizada.
2008-07-15 07:26:30: ExternalConn.cpp(218): Nueva conexión externa, aceptada
2008-07-15 07:26:30: ExternalConn.cpp(252): Conectando con cliente: aMuleweb SVN
2008-07-15 07:26:30: ExternalConn.cpp(307): Acceso concedido.
This means that the webserver has been started and has connected to aMule.

Quote
2008-07-15 08:46:34: ExternalConn.cpp(218): Nueva conexión externa, aceptada
2008-07-15 08:46:34: ExternalConn.cpp(252): Conectando con cliente: aMulecmd SVN
2008-07-15 08:46:34: ExternalConn.cpp(307): Acceso concedido.
This means that amulecmd has made a connection to aMule.

Quote
2008-07-15 08:47:03: ExternalConn.cpp(1058): Conexión externa: apagado solicitado
2008-07-15 08:47:03: RoutingZone.cpp(235): Escritos 184 contactos Kad
2008-07-15 08:47:04: Desconectado de eD2k
2008-07-15 08:47:04: Desconectado de Kad
2008-07-15 08:47:04: TerminationProcess.cpp(49): Comando `'amuleweb' '--amule-config-file=/home/bigboss/.aMule/amule.conf'' con pid `15917' ha terminado con código `-1'.
2008-07-15 08:47:16: UPnPBase.cpp(1104): Universal Plug and Play: UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.
2008-07-15 08:47:17: UPnPBase.cpp(139): Universal Plug and Play: Error: UpnpSendAction: Error code :'501', Error description :'Action failed, No Matching Waiting Session Found'.
2008-07-15 08:47:17: UPnPBase.cpp(1104): Universal Plug and Play: UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.
2008-07-15 08:47:18: UPnPBase.cpp(139): Universal Plug and Play: Error: UpnpSendAction: Error code :'501', Error description :'Action failed, No Matching Waiting Session Found'.
2008-07-15 08:47:18: UPnPBase.cpp(1104): Universal Plug and Play: UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.
2008-07-15 08:47:18: UPnPBase.cpp(139): Universal Plug and Play: Error: UpnpSendAction: Error code :'501', Error description :'Action failed, No Matching Waiting Session Found'.
2008-07-15 08:47:18: UPnPBase.cpp(1104): Universal Plug and Play: UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.UPnP Error: CUPnPControlPoint::DeletePortMapping: Mapping was not found in the active mapping map.
2008-07-15 08:47:19: UPnPBase.cpp(139): Universal Plug and Play: Error: UpnpSendAction: Error code :'501', Error description :'Action failed, No Matching Waiting Session Found'.
This is strange. You have asked aMule to shutdown, but somehow the original port mappings that were asked on the router were no longer there. Someone has deleted them, or you have reset your router during the process?

Make sure you have port 4711 open in the firewall. Did you read this? http://www.amule.org/wiki/index.php/HowTo_get_aMule_web_interface

Cheers!

PS: Log messages should not be translated indeed. This is a problem.
Logged
Pages: [1] 2