Bug 847539
| Summary: | Repeatable core dump with --block-size of 2G or greater | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Allan Engelhardt <allane> |
| Component: | xz | Assignee: | Jindrich Novy <jnovy> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 17 | CC: | a.badger, jnovy, pknirsch |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-09-21 23:56:58 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Allan Engelhardt
2012-08-12 18:57:10 UTC
Thanks for reporting. May I ask what is the size of the file you are trying to compress? I'm getting this: $ xz --compress --keep -9e --block-size=2G --threads=4 --verbose <file> xz: bsd: Cannot allocate memory with almost any file I try to compress in this way (having 8G of RAM). $ stat /var/backup/allane/allane-bin.tar File: `/var/backup/allane/allane-bin.tar' Size: 395512023040 Blocks: 772484504 IO Block: 4096 regular file Device: fd08h/64776d Inode: 12 Links: 1 Access: (0640/-rw-r-----) Uid: ( 1000/ allane) Gid: ( 1000/ allane) Context: unconfined_u:object_r:file_t:s0 Access: 2012-08-12 19:07:34.802218071 +0100 Modify: 2012-08-12 19:07:21.251065908 +0100 Change: 2012-08-12 19:07:21.251065908 +0100 Birth: - $ head -n 2 /proc/meminfo MemTotal: 16435520 kB MemFree: 4478664 kB $ egrep -A 4 '^processor\s+:' /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5420 @ 2.50GHz -- processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5420 @ 2.50GHz -- processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5420 @ 2.50GHz -- processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5420 @ 2.50GHz Discussed this bug with upstream (Lasse Collin) and the problem (double-free) happens when the setting requires too much memory (28G in your case). The following commit fixes it: http://git.tukaani.org/?p=xz.git;a=commitdiff;h=ab50ae3ef40c81e5bf613905ca3fd636548b75e7 and the fix for it is a part of xz-5.1.2alpha which is already in f18 and newer. There shouldn't be any major breakage while updating to 5.1.2alpha so I will schedule an update. xz-5.1.2-1alpha.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/xz-5.1.2-1alpha.fc17 Package xz-5.1.2-1alpha.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing xz-5.1.2-1alpha.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-11856/xz-5.1.2-1alpha.fc17 then log in and leave karma (feedback). All working now, thanks, and I added the karma to the update. perl-Compress-Raw-Lzma-2.052-2.fc17,xz-5.1.2-1alpha.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/perl-Compress-Raw-Lzma-2.052-2.fc17,xz-5.1.2-1alpha.fc17 perl-Compress-Raw-Lzma-2.052-2.fc17, xz-5.1.2-1alpha.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |