"
... to use the statistics feature, you need a clean copy of the database including correctly sized log files, so you need to execute with --prepare twice to use this functionality on a backup.
"
Since the crash reported in this bug was caused by missing log files when using the --stats option, the fix should be to make xtrabackup --stats refuse to run with a descriptive error message when no log files have been found rather than trying to create them and crash.
The xtrabackup manual says:
"
... to use the statistics feature, you need a clean copy of the database including correctly sized log files, so you need to execute with --prepare twice to use this functionality on a backup.
"
http:// www.percona. com/docs/ wiki/percona- xtrabackup: xtrabackup: statistics
Since the crash reported in this bug was caused by missing log files when using the --stats option, the fix should be to make xtrabackup --stats refuse to run with a descriptive error message when no log files have been found rather than trying to create them and crash.