tar4ibd -z (gzip) option core dumps

Bug #677279 reported by Dave Juntgen
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Medium
Stewart Smith
1.6
Fix Released
Medium
Stewart Smith
2.0
Fix Released
Medium
Stewart Smith

Bug Description

[x86-64 root@fwcwebchartdb /db/mydata]# uname -a
Linux fwcwebchartdb.med-web.com 2.6.25.6 #4 SMP Fri Jun 13 17:08:36 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

How to reproduce:
* Create a test database with at least one innodb table
* then run: tar4ibd -zc test > test.tar.gz

gdb trace:

[x86-64 root@xxx /db/mydata]# gdb /usr/local/bin/tar4ibd /tmp/core.tar4ibd.17231
GNU gdb Red Hat Linux (6.5-15.fc6rh)
Copyright (C) 2006 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 "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/libthread_db.so.1".

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib64/libz.so.1...done.
Loaded symbols for /usr/lib64/libz.so.1
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libnss_files.so.2...done.
Loaded symbols for /lib64/libnss_files.so.2
Core was generated by `tar4ibd -zc test'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007fff3e64b1f8 in gzwrite () from /usr/lib64/libz.so.1
(gdb) where
#0 0x00007fff3e64b1f8 in gzwrite () from /usr/lib64/libz.so.1
#1 0x0000000000403485 in th_write (t=0x6c7060) at block.c:370
#2 0x000000000040269c in tar_append_file (t=0x6c7060, realname=0x7fff46a732a0 "test", savename=0x7fff46a75b87 "test") at append.c:376
#3 0x0000000000406a37 in tar_append_tree (t=0x6c7060, realdir=0x7fff46a732a0 "test", savedir=0x7fff46a75b87 "test") at wrapper.c:105
#4 0x00000000004019e3 in create (tarfile=0x4077fd "<stdout>", rootdir=0x0, l=0x6c7010) at libtar.c:134
#5 0x0000000000401fef in main (argc=3, argv=0x7fff46a743e8) at libtar.c:351

Related branches

Revision history for this message
Dave Juntgen (djuntgen) wrote :
Revision history for this message
Dave Juntgen (djuntgen) wrote :
Dave Juntgen (djuntgen)
summary: - oz (gzip) option core dumps
+ tar4ibd -z (gzip) option core dumps
Changed in percona-xtrabackup:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Valentine Gostev (longbow) wrote :

segfault reproduced in 1.6

Changed in percona-xtrabackup:
importance: High → Low
Revision history for this message
Alexey Kopytov (akopytov) wrote :

Changing the Importance to Wishlist, as we don't document -z switch for tar4ibd.

Changed in percona-xtrabackup:
importance: Low → Wishlist
Revision history for this message
Stewart Smith (stewart) wrote : Re: [Bug 677279] Re: tar4ibd -z (gzip) option core dumps

On Mon, 16 May 2011 09:22:22 -0000, Alexey Kopytov <email address hidden> wrote:
> Changing the Importance to Wishlist, as we don't document -z switch for
> tar4ibd.

We should possibly error out on it though rather than segfault?

--
Stewart Smith

Revision history for this message
Peter Zaitsev (pz-percona) wrote :

Agreed,

If option is not supported we should not allow it but crashing is not a good
thing to do

On Mon, May 16, 2011 at 7:36 PM, Stewart Smith <email address hidden>wrote:

> On Mon, 16 May 2011 09:22:22 -0000, Alexey Kopytov <
> <email address hidden>> wrote:
> > Changing the Importance to Wishlist, as we don't document -z switch for
> > tar4ibd.
>
> We should possibly error out on it though rather than segfault?
>
>
--
Peter Zaitsev, CEO, Percona Inc.
Tel: +1 888 401 3401 ext 501 Skype: peter_zaitsev
24/7 Emergency Line +1 888 401 3401 ext 911

Percona Live MySQL Conference comes to NYC
http://www.percona.com/live/nyc-2011/

Revision history for this message
Alexey Kopytov (akopytov) wrote :

Agreed, so the fix is to remove unsupported options from tar4ibd.

Revision history for this message
Stewart Smith (stewart) wrote :

upping Importance as crash in backup is unnerving at best.

Changed in percona-xtrabackup:
importance: Wishlist → Medium
Stewart Smith (stewart)
Changed in percona-xtrabackup:
status: Confirmed → Triaged
Revision history for this message
Rodrigo Gadea (rodrigo-gadea-percona) wrote :
Revision history for this message
Stewart Smith (stewart) wrote :

On Wed, 21 Sep 2011 19:29:00 -0000, Rodrigo Gadea <email address hidden> wrote:
> Note that this was already documented in:
> http://www.percona.com/doc/percona-xtrabackup/tar4ibd/tar4ibd_binary.html

We may jsut change the docs to say that no other options are
supported/exist.

Simple line in RN will work too ("unused, unsupported and undocumented
options were removed from tar4ibd")

--
Stewart Smith

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-547

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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