segfault when chunking

Bug #1289395 reported by Aleksandar Ivanisevic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Data Dumper
New
Undecided
Unassigned

Bug Description

After ruinning mydump for 3 months without any problem i have suddenly started getting segfaults when chunking data. It happens on a random table each run.

backtrace is here, if you need more data i can compile with debug info

this is latest trunk (as of today) on rhel5 32bit linked against mysql 5.6.15 libs but it also happens with 0.5.8 linked against 5.6.14

mysql@devdb ~]$ gdb --args mydumper -t 1 -u root -o $MYDUMP_DIR -r 100000 -c --kill-long-queries
GNU gdb (GDB) CentOS (7.0.1-45.el5.centos)
Copyright (C) 2009 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 "i386-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /bin/mydumper...(no debugging symbols found)...done.
(gdb) r
Starting program: /bin/mydumper -t 1 -u root -o /home/mysql/backup/full -r 100000 -c --kill-long-queries
[Thread debugging using libthread_db enabled]
[New Thread 0xb7ff3b90 (LWP 24242)]
[Thread 0xb7ff3b90 (LWP 24242) exited]
[New Thread 0xb7ff3b90 (LWP 24243)]

Program received signal SIGSEGV, Segmentation fault.
0x009faf7b in ____strtoll_l_internal () from /lib/libc.so.6
(gdb) bt
#0 0x009faf7b in ____strtoll_l_internal () from /lib/libc.so.6
#1 0x009fa50f in __strtoq_internal@GLIBC_2.0 () from /lib/libc.so.6
#2 0x0804d2ee in get_chunks_for_table ()
#3 0x0804d9c8 in dump_table ()
#4 0x0804e17e in start_dump ()
#5 0x0804f20d in main ()
(gdb)

Revision history for this message
Max Bubenick (max-bubenick) wrote :

Hi Aleksandar, can you provide glibc and kernel version?

Also if you can compile it with debug info and send me the output will help me in case I cant reproduce it.

Revision history for this message
Aleksandar Ivanisevic (aleksandar-e) wrote :

$ uname -r
2.6.18-371.4.1.el5

$ /lib/libc.so.6
GNU C Library stable release version 2.5, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.2 20080704 (Red Hat 4.1.2-54).
Compiled on a Linux 2.6.9 system on 2013-10-08.
Available extensions:
 The C stubs add-on version 2.1.2.
 crypt add-on version 2.1 by Michael Glad and others
 GNU Libidn by Simon Josefsson
 GNU libio by Per Bothner
 NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
 Native POSIX Threads Library by Ulrich Drepper et al
 BIND-8.2.3-T5B
 RT using linux kernel aio
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

about the debug info looks like mydumper was already compiled with debug info, I'm not that experienced, can you tell me whihc flags I have to add to compile with more info?

+ CFLAGS='-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ CXXFLAGS='-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ make -j 8

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.