Bug 767708

Summary: [abrt] VtableFactory::initializeBlock: write to mmap'ed file w/o disk space: SIGBUS
Product: [Fedora] Fedora Reporter: Milan Bouchet-Valat <nalimilan>
Component: libreofficeAssignee: Stephan Bergmann <sbergman>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: caolanm, dtardon, erack, ltinkl, mstahl, nomnex, phyrefyter, sbergman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:aaff2030c2ad675ca8e88a37873f498489ffb6a9
Fixed In Version: libreoffice- Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-23 17:22:24 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
File: dso_list
File: maps
File: backtrace none

Description Milan Bouchet-Valat 2011-12-14 12:25:14 EST
abrt version: 2.0.3
architecture:   x86_64
backtrace_rating: 4
cmdline:        /usr/lib64/libreoffice/program/scalc.bin -calc file:///home/milan/Nanterre/Interro%202/TD%20lundi/Djoumad%20Djillali.xls
comment:        I tried to open a .xls file and there was no free space on / and ~. This is the second time I see this.
component:      libreoffice
crash_function: bridges::cpp_uno::shared::VtableFactory::initializeBlock
executable:     /usr/lib64/libreoffice/program/scalc.bin
os_release:     Fedora release 15 (Lovelock)
package:        libreoffice-calc-
reason:         Process /usr/lib64/libreoffice/program/scalc.bin was killed by signal 7 (SIGBUS)
time:           Wed Dec 14 17:43:45 2011
uid:            1000
username:       milan

backtrace:      Text file, 65960 bytes
dso_list:       Text file, 21581 bytes
maps:           Text file, 81596 bytes

:'LESSOPEN=||/usr/bin/lesspipe.sh %s'

:Dec 14 17:40:29 milan abrt[20753]: saved core dump of pid 20730 (/usr/lib64/libreoffice/program/scalc.bin) to /var/spool/abrt/ccpp-2011-12-14-17:40:27-20730.new/coredump (103870464 bytes)
:Dec 14 17:43:47 milan abrt[20827]: saved core dump of pid 20810 (/usr/lib64/libreoffice/program/scalc.bin) to /var/spool/abrt/ccpp-2011-12-14-17:43:45-20810.new/coredump (103989248 bytes)
Comment 1 Milan Bouchet-Valat 2011-12-14 12:25:18 EST
Created attachment 546827 [details]
File: dso_list
Comment 2 Milan Bouchet-Valat 2011-12-14 12:25:20 EST
Created attachment 546828 [details]
File: maps
Comment 3 Milan Bouchet-Valat 2011-12-14 12:25:22 EST
Created attachment 546829 [details]
File: backtrace
Comment 4 Stephan Bergmann 2011-12-14 14:27:52 EST
This apparently allocates a file in the USE_DOUBLE_MMAP case VtableFactory::createBlock (via mkstemp, ftruncate to enlarge to required size, mmap), but ftruncate overcommits disk space (i.e., doesn't care whether there is disk space to eventually back the mmap'ed file's pages), disk is already full as user reports ("there was no free space on / and ~"), so first write to the mmap'ed memory gives SIGBUS.  Solution is to use posix_fallocate (even though, reportedly, even that can fail "with journaling/COW/snapshots/thin provisioning.")
Comment 5 David Tardon 2011-12-15 00:21:13 EST
*** Bug 674416 has been marked as a duplicate of this bug. ***
Comment 6 David Tardon 2011-12-15 00:21:49 EST
*** Bug 690681 has been marked as a duplicate of this bug. ***
Comment 7 Fedora Update System 2011-12-15 15:43:16 EST
libreoffice- has been submitted as an update for Fedora 16.
Comment 8 Milan Bouchet-Valat 2011-12-15 18:20:55 EST
I can't test the package since I'm still on Fedora 15, but I must say I'm really impressed by your responsiveness! ;-)
Comment 9 Fedora Update System 2011-12-16 14:59:18 EST
Package libreoffice-
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libreoffice-'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 10 Fedora Update System 2011-12-23 17:22:24 EST
libreoffice- has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 11 Fedora Update System 2012-01-17 04:09:37 EST
libreoffice- has been submitted as an update for Fedora 15.
Comment 12 Fedora Update System 2012-01-25 17:29:00 EST
libreoffice- has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.