Bug #59954 backup-to-image command of mysqlbackup fails to create backup image
Submitted: 4 Feb 2011 20:00 Modified: 7 Feb 2011 22:58
Reporter: Hema Sridharan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Backup Severity:S2 (Serious)
Version:MEB 3.6 OS:Linux
Assigned to: CPU Architecture:Any

[4 Feb 2011 20:00] Hema Sridharan
Description:
Run mysqlbackup with --backup-image option and backup-to-image command
The backup image will not be created and will fail with error 

mysqlbackup: /export/home/tmp/MEB/meb-36-image/src/backup/image_util.c:191: init_global_header: Assertion `sizeof(*hdr) == 224' failed.
Aborted

How to repeat:
Repeat the following command,

$MYSQLBACKUP --port=$MASTER_MYPORT  --protocol=tcp --user=root --backup-image=$MYSQLTEST_VARDIR/tmp/backupabs.mbi --backup-dir=$BACKUP_TARGET_DIR backup-to-image
[4 Feb 2011 21:08] Hema Sridharan
Use the latest MEB 3.6 version from bzrroot/meb/sbin-repo/single-bin repo.

There were also other errors that occurred when testing backup-to-image command
mysqlbackup: /export/home/tmp/MEB/meb-36-image/src/backup/image_util.c:196: init_global_header: Assertion `sizeof(*hdr) == 224' failed.

mysqlbackup: /export/home/tmp/MEB/meb-36-image/src/backup/image_util.c:238: init_component_file_header: Assertion `sizeof(*fhdr) == 80' failed.

Test failed in different lines of code (196, 238)
[5 Feb 2011 13:11] Sveta Smirnova
Thank you for the report.

Verified as described.
[7 Feb 2011 22:58] Thava Alagu
The problem is specific to 64 bit platforms.
This fix has been checked in now, hence closing the bug.