Bug #60096 Mysqlbackup fails with segmentation fault error
Submitted: 10 Feb 2011 16:44 Modified: 15 Feb 2011 15:28
Reporter: Hema Sridharan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Backup Severity:S2 (Serious)
Version:MEB 3.6 OS:Any
Assigned to: Thava Alagu CPU Architecture:Any

[10 Feb 2011 16:44] Hema Sridharan
Description:
Execute mysqlbackup. It fails with segmentation fault error.
Note that this error is noticed only in latest tree

bzr branch bzr+ssh://hsridharan@bk-internal.mysql.com/bzrroot/meb/sbin-repo/single-bin

How to repeat:
Run mysqlbackup

./mysqlbackup  --datadir=/export/home2/tmp/mysql-5.1-meb-testing/mysql-test/var/mysqld.1/backup/data/  --innodb_log_file_size=5M --innodb_log_files_in_group=4 --backup_innodb_log_files_in_group=4 --backup_innodb_log_file_size=5M --innodb_data_home_dir=/export/home2/tmp/mysql-5.1-meb-testing/mysql-test/var/mysqld.1/backup/data/ --backup-dir=/export/home2/tmp/meb-backups/bkp --socket=/export/home2/tmp/mysql-5.1-meb-testing/mysql-test/var/tmp/mysqld.1.sock --user=root --port=13000 --protocol=tcp backup

It produces the logs as 

....
....
mysqlbackup: INFO: Backing up the database directory 'dbb'
 mysqlbackup: INFO: Backing up the database directory 'mtr'
 mysqlbackup: INFO: Backing up the database directory 'mysql'
 mysqlbackup: INFO: Backing up the database directory 'test'
 mysqlbackup: INFO: A copied database page was modified at 52586.
          (This is the highest lsn found on page)
          Scanned log up to lsn 54219.
          Was able to parse the log up to lsn 54219.
          Maximum page number for a log record 55
110210 17:38:18 mysqlbackup: INFO: All tables unlocked
 mysqlbackup: INFO: All MySQL tables were locked for 0.000 seconds
110210 17:38:18 mysqlbackup: INFO: Full backup completed!

-------------------------------------------------------------
   Parameters Summary
-------------------------------------------------------------
   Start LSN                  : 52224
   End LSN                    : 54219
   Highest modified page LSN  : 52586
-------------------------------------------------------------

 mysqlbackup: INFO: Backup created in directory '/export/home2/tmp/meb-backups/bkp'
Segmentation fault ====>  ERROR!
[15 Feb 2011 15:28] Thava Alagu
Closing this bug since it has been fixed in the latest push.