Bug #78217 crash on deleting a Format_description_event with libbinlogstandalone
Description:
backtrace:
(gdb) bt
#0 0x00007ffff7b6a3ad in std::ostream::sentry::sentry(std::ostream&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x00007ffff7b6aa69 in std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2 0x0000000000401c61 in operator<< <std::char_traits<char> > (__s=0x4062de "Server ver: ", __out=...) at /usr/include/c++/4.8/ostream:535
#3 binary_log::Format_description_event::print_event_info (this=0x60e010, info=...)
at /root/mysql-5.7.8-rc/libbinlogevents/src/control_events.cpp:934
#4 0x0000000000401a88 in binary_log::Format_description_event::print_long_info (this=0x60e010, info=...)
at /root/mysql-5.7.8-rc/libbinlogevents/src/control_events.cpp:940
#5 0x0000000000401829 in main () at test.cc:6
How to repeat:
code:
#include "binary_log.h"
using namespace binary_log;
int main()
{
Format_description_event *tmp = new Format_description_event(3, "");
delete tmp;
return 0;
}
g++ -I/root/mysql-5.7.8-rc/include -I/root/mysql-5.7.8-rc/libbinlogevents/include -I/root/mysql-5.7.8-rc/libbinlogevents/export test.cc /root/mysql-5.7.8-rc/libbinlogstandalone/lib/libbinlogstandalone.a /root/mysql-5.7.8-rc/libmysql/libmysqlclient.a -g -o test
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.069 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: backtrace: (gdb) bt #0 0x00007ffff7b6a3ad in std::ostream::sentry::sentry(std::ostream&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #1 0x00007ffff7b6aa69 in std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #2 0x0000000000401c61 in operator<< <std::char_traits<char> > (__s=0x4062de "Server ver: ", __out=...) at /usr/include/c++/4.8/ostream:535 #3 binary_log::Format_description_event::print_event_info (this=0x60e010, info=...) at /root/mysql-5.7.8-rc/libbinlogevents/src/control_events.cpp:934 #4 0x0000000000401a88 in binary_log::Format_description_event::print_long_info (this=0x60e010, info=...) at /root/mysql-5.7.8-rc/libbinlogevents/src/control_events.cpp:940 #5 0x0000000000401829 in main () at test.cc:6 How to repeat: code: #include "binary_log.h" using namespace binary_log; int main() { Format_description_event *tmp = new Format_description_event(3, ""); delete tmp; return 0; } g++ -I/root/mysql-5.7.8-rc/include -I/root/mysql-5.7.8-rc/libbinlogevents/include -I/root/mysql-5.7.8-rc/libbinlogevents/export test.cc /root/mysql-5.7.8-rc/libbinlogstandalone/lib/libbinlogstandalone.a /root/mysql-5.7.8-rc/libmysql/libmysqlclient.a -g -o test