Skip to content

Investigate possible bug in Monitor #572

Closed
@renecannao

Description

@renecannao

This happened while keeping proxysql stopped in gdb for long time.
Maybe caused by some timeout of FD becoming invalidated

[warn] Epoll ADD(4) on fd 49 failed.  Old events were 0; read change was 0 (none); write change was 1 (add): Bad file descriptor
[warn] Epoll ADD(4) on fd 50 failed.  Old events were 0; read change was 0 (none); write change was 1 (add): Invalid argument
[warn] Epoll ADD(4) on fd 53 failed.  Old events were 0; read change was 0 (none); write change was 1 (add): Invalid argument
proxysql: MySQL_Monitor.cpp:273: MySQL_Monitor_State_Data::~MySQL_Monitor_State_Data(): Assertion `mysql==__null' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff1bff700 (LWP 31821)]
0x00007ffff65bcf79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff65bcf79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff65c0388 in __GI_abort () at abort.c:89
#2  0x00007ffff65b5e36 in __assert_fail_base (fmt=0x7ffff6707718 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x635421 "mysql==__null",
    file=file@entry=0x63540f "MySQL_Monitor.cpp", line=line@entry=273,
    function=function@entry=0x636a20 <MySQL_Monitor_State_Data::~MySQL_Monitor_State_Data()::__PRETTY_FUNCTION__> "MySQL_Monitor_State_Data::~MySQL_Monitor_State_Data()") at assert.c:92
#3  0x00007ffff65b5ee2 in __GI___assert_fail (assertion=0x635421 "mysql==__null", file=0x63540f "MySQL_Monitor.cpp", line=273,
    function=0x636a20 <MySQL_Monitor_State_Data::~MySQL_Monitor_State_Data()::__PRETTY_FUNCTION__> "MySQL_Monitor_State_Data::~MySQL_Monitor_State_Data()")
    at assert.c:101
#4  0x00000000004eebef in MySQL_Monitor_State_Data::~MySQL_Monitor_State_Data (this=0x7ffff1c44b40, __in_chrg=<optimized out>) at MySQL_Monitor.cpp:273
#5  0x00000000004eb15f in MySQL_Monitor::monitor_connect (this=0x7ffff6035f80) at MySQL_Monitor.cpp:838
#6  0x0000000000485f95 in std::_Mem_fn<void* (MySQL_Monitor::*)()>::operator()<, void>(MySQL_Monitor*) const (this=0x7ffff283a038, __object=0x7ffff6035f80)
    at /usr/include/c++/4.8/functional:601
#7  0x0000000000485ee5 in std::_Bind_simple<std::_Mem_fn<void* (MySQL_Monitor::*)()> (MySQL_Monitor*)>::_M_invoke<0ul>(std::_Index_tuple<0ul>) (this=0x7ffff283a030)
    at /usr/include/c++/4.8/functional:1732
#8  0x0000000000485ded in std::_Bind_simple<std::_Mem_fn<void* (MySQL_Monitor::*)()> (MySQL_Monitor*)>::operator()() (this=0x7ffff283a030)
    at /usr/include/c++/4.8/functional:1720
#9  0x0000000000485d86 in std::thread::_Impl<std::_Bind_simple<std::_Mem_fn<void* (MySQL_Monitor::*)()> (MySQL_Monitor*)> >::_M_run() (this=0x7ffff283a018)
    at /usr/include/c++/4.8/thread:115
#10 0x00007ffff6ef6390 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x00007ffff7bc4182 in start_thread (arg=0x7ffff1bff700) at pthread_create.c:312
#12 0x00007ffff668130d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions