aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule crash on OpenBSD  (Read 485 times)

gb_master

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
aMule crash on OpenBSD
« on: July 07, 2019, 01:37:20 PM »

Everytime I start amule 2.3.2 on OpenBSD 6.4/6.5 it keeps on crashing with the following message:

Assertion failed: ./src/common/fdiodispatcher.cpp:ModifyFD:113: Assertion 'i != m_handlers.end()' failed. modifying unregistered handler?

The produced core file contains the following info:

$ gdb --core=amuled.core /usr/local/bin/amuled
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd6.5"...(no debugging symbols found)

Core was generated by `amuled'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libpthread.so.26.1...done.
Loaded symbols for /usr/lib/libpthread.so.26.1
Loaded symbols for /usr/local/bin/amuled
Symbols already loaded for /usr/lib/libpthread.so.26.1
Reading symbols from /usr/lib/libz.so.5.0...done.
Loaded symbols for /usr/lib/libz.so.5.0
Reading symbols from /usr/local/lib/libcryptopp.so.4.0...done.
Loaded symbols for /usr/local/lib/libcryptopp.so.4.0
Reading symbols from /usr/local/lib/libupnp.so.1.1...done.
Loaded symbols for /usr/local/lib/libupnp.so.1.1
Reading symbols from /usr/local/lib/libthreadutil.so.1.1...done.
Loaded symbols for /usr/local/lib/libthreadutil.so.1.1
Reading symbols from /usr/local/lib/libixml.so.0.2...done.
Loaded symbols for /usr/local/lib/libixml.so.0.2
Reading symbols from /usr/local/lib/libwx_baseu_net-3.0.so.0.0...done.
Loaded symbols for /usr/local/lib/libwx_baseu_net-3.0.so.0.0
Reading symbols from /usr/local/lib/libwx_baseu-3.0.so.0.0...done.
Loaded symbols for /usr/local/lib/libwx_baseu-3.0.so.0.0
Reading symbols from /usr/lib/libc++.so.2.1...done.
Loaded symbols for /usr/lib/libc++.so.2.1
Reading symbols from /usr/lib/libc++abi.so.0.1...done.
Loaded symbols for /usr/lib/libc++abi.so.0.1
Reading symbols from /usr/lib/libm.so.10.1...done.
Loaded symbols for /usr/lib/libm.so.10.1
Reading symbols from /usr/lib/libc.so.95.0...done.
Loaded symbols for /usr/lib/libc.so.95.0
Reading symbols from /usr/local/lib/libiconv.so.6.0...done.
Loaded symbols for /usr/local/lib/libiconv.so.6.0
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0  thrkill () at -:3
3   -: No such file or directory.
   in -
(gdb) bt
#0  thrkill () at -:3
#1  0x000011e97e8c31bf in __register_frame_info () from /usr/local/bin/amuled
#2  0x000011ec6d224021 in wxAbort () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#3  0x000011ec6d221841 in wxOnAssert () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#4  0x000011ec6d342c54 in wxMappedFDIODispatcher::ModifyFD () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#5  0x000011ec6d343d6f in wxSelectDispatcher::ModifyFD () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#6  0x000011ec6d34956e in wxConsoleAppTraits::CreateEventLoop () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#7  0x000011ebcac8830c in wxURL::SetProxy () from /usr/local/lib/libwx_baseu_net-3.0.so.0.0
#8  0x000011ebcac829ce in wxSocketBase::Write () from /usr/local/lib/libwx_baseu_net-3.0.so.0.0
#9  0x000011e97e9ed223 in std::__1::vector<unsigned short, std::__1::allocator<unsigned short> >::__push_back_slow_path<unsigned short> () from /usr/local/bin/amuled
#10 0x000011e97e9179e6 in CryptoPP::RSAFunction::RSAFunction () from /usr/local/bin/amuled
#11 0x000011e97e8f780c in CryptoPP::RSAFunction::RSAFunction () from /usr/local/bin/amuled
#12 0x000011e97e97154d in std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >::assign<unsigned int*> () from /usr/local/bin/amuled
#13 0x000011ec6d357d7f in wxThread::CallEntry () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#14 0x000011ec6d357310 in wxCondition::Signal () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#15 0x000011ebf3a57021 in _rthread_start (v=Variable "v" is not available.
) at /usr/src/lib/librthread/rthread.c:96
#16 0x000011ebdc656c1b in __tfork_thread () at /usr/src/lib/libc/arch/amd64/sys/tfork_thread.S:72
#17 0x0000000000000000 in ?? ()
Current language:  auto; currently asm
(gdb) bt full
#0  thrkill () at -:3
No locals.
#1  0x000011e97e8c31bf in __register_frame_info () from /usr/local/bin/amuled
No symbol table info available.
#2  0x000011ec6d224021 in wxAbort () from /usr/local/lib/libwx_baseu-3.0.so.0.0
No symbol table info available.
#3  0x000011ec6d221841 in wxOnAssert () from /usr/local/lib/libwx_baseu-3.0.so.0.0
No symbol table info available.
#4  0x000011ec6d342c54 in wxMappedFDIODispatcher::ModifyFD () from /usr/local/lib/libwx_baseu-3.0.so.0.0
No symbol table info available.
#5  0x000011ec6d343d6f in wxSelectDispatcher::ModifyFD () from /usr/local/lib/libwx_baseu-3.0.so.0.0
No symbol table info available.
#6  0x000011ec6d34956e in wxConsoleAppTraits::CreateEventLoop () from /usr/local/lib/libwx_baseu-3.0.so.0.0
No symbol table info available.
#7  0x000011ebcac8830c in wxURL::SetProxy () from /usr/local/lib/libwx_baseu_net-3.0.so.0.0
No symbol table info available.
#8  0x000011ebcac829ce in wxSocketBase::Write () from /usr/local/lib/libwx_baseu_net-3.0.so.0.0
No symbol table info available.
#9  0x000011e97e9ed223 in std::__1::vector<unsigned short, std::__1::allocator<unsigned short> >::__push_back_slow_path<unsigned short> () from /usr/local/bin/amuled
No symbol table info available.
#10 0x000011e97e9179e6 in CryptoPP::RSAFunction::RSAFunction () from /usr/local/bin/amuled
No symbol table info available.
#11 0x000011e97e8f780c in CryptoPP::RSAFunction::RSAFunction () from /usr/local/bin/amuled
No symbol table info available.
#12 0x000011e97e97154d in std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >::assign<unsigned int*> () from /usr/local/bin/amuled
No symbol table info available.
#13 0x000011ec6d357d7f in wxThread::CallEntry () from /usr/local/lib/libwx_baseu-3.0.so.0.0
No symbol table info available.
#14 0x000011ec6d357310 in wxCondition::Signal () from /usr/local/lib/libwx_baseu-3.0.so.0.0
No symbol table info available.
#15 0x000011ebf3a57021 in _rthread_start (v=Variable "v" is not available.
) at /usr/src/lib/librthread/rthread.c:96
   thread = Variable "thread" is not available.
(gdb) thread apply all bt

Thread 3 (process 610957):
#0  futex () at -:3
#1  0x000011ebdc655395 in _rthread_cond_timedwait (cond=0x11eb84492ba0, mutexp=0x11ec5e3ead80, abs=0x11ebec062868) at tcb.h:43
#2  0x000011ec6d3548ab in wxThread::GetCurrentId () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#3  0x000011ec6d356183 in wxCondition::Wait () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#4  0x000011e97ea2020e in std::__1::__split_buffer<unsigned int*, std::__1::allocator<unsigned int*>&>::push_front () from /usr/local/bin/amuled
#5  0x000011ec6d357d7f in wxThread::CallEntry () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#6  0x000011ec6d357310 in wxCondition::Signal () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#7  0x000011ebf3a57021 in _rthread_start (v=Variable "v" is not available.
) at /usr/src/lib/librthread/rthread.c:96
#8  0x000011ebdc656c1b in __tfork_thread () at /usr/src/lib/libc/arch/amd64/sys/tfork_thread.S:72
#9  0x0000000000000000 in ?? ()

Thread 2 (process 101007):
#0  futex () at -:3
#1  0x000011ebdc662cc7 in _rthread_mutex_timedlock (mutexp=Variable "mutexp" is not available.
) at atomic.h:94
#2  0x000011ec6d35f87e in wxMutex::Lock () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#3  0x000011e97e916d3c in CryptoPP::RSAFunction::RSAFunction () from /usr/local/bin/amuled
#4  0x000011ec6d37d6d5 in wxEventHashTable::HandleEvent () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#5  0x000011ec6d37f0fb in wxEvtHandler::ProcessEventLocally () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#6  0x000011ec6d37ef26 in wxEvtHandler::ProcessEvent () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#7  0x000011ec6d37ebca in wxEvtHandler::ProcessPendingEvents () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#8  0x000011ec6d221bef in wxAppConsoleBase::ProcessPendingEvents () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#9  0x000011ec6d264d57 in wxEventLoopManual::DoRun () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#10 0x000011ec6d264836 in wxEventLoopBase::Run () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#11 0x000011ec6d220e3b in wxAppConsoleBase::MainLoop () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#12 0x000011ec6d2af2d6 in wxEntry () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#13 0x000011e97e8b755e in __register_frame_info () from /usr/local/bin/amuled
#14 0x000011e97e8b7142 in ?? () from /usr/local/bin/amuled
#15 0x0000000000000000 in ?? ()

Thread 1 (process 565033):
#0  thrkill () at -:3
#1  0x000011e97e8c31bf in __register_frame_info () from /usr/local/bin/amuled
#2  0x000011ec6d224021 in wxAbort () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#3  0x000011ec6d221841 in wxOnAssert () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#4  0x000011ec6d342c54 in wxMappedFDIODispatcher::ModifyFD () from /usr/local/lib/libwx_baseu-3.0.so.0.0
---Type <return> to continue, or q <return> to quit---
#5  0x000011ec6d343d6f in wxSelectDispatcher::ModifyFD () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#6  0x000011ec6d34956e in wxConsoleAppTraits::CreateEventLoop () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#7  0x000011ebcac8830c in wxURL::SetProxy () from /usr/local/lib/libwx_baseu_net-3.0.so.0.0
#8  0x000011ebcac829ce in wxSocketBase::Write () from /usr/local/lib/libwx_baseu_net-3.0.so.0.0
#9  0x000011e97e9ed223 in std::__1::vector<unsigned short, std::__1::allocator<unsigned short> >::__push_back_slow_path<unsigned short> () from /usr/local/bin/amuled
#10 0x000011e97e9179e6 in CryptoPP::RSAFunction::RSAFunction () from /usr/local/bin/amuled
#11 0x000011e97e8f780c in CryptoPP::RSAFunction::RSAFunction () from /usr/local/bin/amuled
#12 0x000011e97e97154d in std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >::assign<unsigned int*> () from /usr/local/bin/amuled
#13 0x000011ec6d357d7f in wxThread::CallEntry () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#14 0x000011ec6d357310 in wxCondition::Signal () from /usr/local/lib/libwx_baseu-3.0.so.0.0
#15 0x000011ebf3a57021 in _rthread_start (v=Variable "v" is not available.
) at /usr/src/lib/librthread/rthread.c:96
#16 0x000011ebdc656c1b in __tfork_thread () at /usr/src/lib/libc/arch/amd64/sys/tfork_thread.S:72
#17 0x0000000000000000 in ?? ()
(gdb)

Usually it lasts a bunch of minutes and then crashes. For me, the only way to have it "always" running, is launching it through a "while true" loop, which is kind of unconfortable.

Sometimes I also get this message:
./src/common/selectdispatcher.cpp(204): assert "Assert failure" failed in ProcessSets(): NULL handler in wxSelectDispatcher?
Assertion failed: ./src/common/selectdispatcher.cpp:ProcessSets:204: Assertion 'Assert failure' failed. NULL handler in wxSelectDispatcher?

Do you have any idea about the cause?
Thanks in advance
Logged