Apache OpenOffice (AOO) Bugzilla – Issue 14133
Empty "script.xlc" causes OOo to crash on every save
Last modified: 2010-11-11 03:17:12 UTC
Since yesterday OOo crashed everytime I wanted to save a document (presentation, spreadsheet, text etc.) in native OOo or old StarOffice format without any message. Saving in "foreign" formats (M$ etc.) worked. Having deleted all possible temporary files, I did strace and last action was accessing a "script.xlc" file in "~/.openoffice/user/basic" I checked this file (it seems to have been generated or last changed yesterday) and it was empty. Oo.o segfaults and exits accessing this file (read. I moved the file away and everything is working fine again?! I have no clue about this file (did not create it intentionally for sure) but I think OOo should not crash with a segfault on saving anyway... I'm a "power user" for years now (1.0.2 since one month) and haven't had this problem yet at all... so I'm giving it a P4 for now. Last lines of strace follow: open("/home/andi/Shared/studium/rup/uebung", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 28 fstat64(28, {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 fcntl64(28, F_SETFD, FD_CLOEXEC) = 0 close(28) = 0 stat64("/home/andi/Shared/studium/rup/uebung/svlbk.tmp", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 open("/home/andi/Shared/studium/rup/uebung/svlbk.tmp", O_RDWR) = 28 close(28) = 0 gettimeofday({1052157187, 224119}, NULL) = 0 time(NULL) = 1052157187 time(NULL) = 1052157187 stat64("/home/andi/Shared/studium/rup/uebung/svlbk.tmp", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 open("/home/andi/Shared/studium/rup/uebung/svlbk.tmp", O_RDWR) = 28 close(28) = 0 access("/home/andi/Shared/studium/rup/uebung/svlbk.tmp", F_OK) = 0 lstat64("/home/andi/Shared/studium/rup/uebung/svlbk.tmp", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 access("/home/andi/Shared/studium/rup/uebung/svlbk.tmp", W_OK) = 0 access("/home/andi/Shared/studium/rup/uebung/svlbk.tmp", X_OK) = -1 EACCES (Permission denied) stat64("/home/andi/Shared/studium/rup/uebung/svlbk.tmp", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 open("/home/andi/Shared/studium/rup/uebung/svlbk.tmp", O_RDONLY) = 28 lseek(28, 0, SEEK_CUR) = 0 lseek(28, 0, SEEK_END) = 0 lseek(28, 0, SEEK_CUR) = 0 lseek(28, 0, SEEK_SET) = 0 time(NULL) = 1052157187 time(NULL) = 1052157187 gettimeofday({1052157187, 231277}, NULL) = 0 times({tms_utime=2058, tms_stime=119, tms_cutime=10, tms_cstime=6}) = 432910 open("/usr/lib/openoffice/program/libfileacc.so", O_RDONLY) = 29 read(29, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\217"..., 1024) = 1024 fstat64(29, {st_mode=S_IFREG|0755, st_size=82080, ...}) = 0 old_mmap(NULL, 81392, PROT_READ|PROT_EXEC, MAP_PRIVATE, 29, 0) = 0x47f89000 mprotect(0x47f9c000, 3568, PROT_NONE) = 0 old_mmap(0x47f9c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 29, 0x13000) = 0x47f9c000 close(29) = 0 access("/home/andi/.openoffice/user/basic/script.xlc", F_OK) = 0 lstat64("/home/andi/.openoffice/user/basic/script.xlc", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 access("/home/andi/.openoffice/user/basic/script.xlc", W_OK) = 0 access("/home/andi/.openoffice/user/basic/script.xlc", X_OK) = -1 EACCES (Permission denied) stat64("/home/andi/.openoffice/user/basic/script.xlc", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 open("/home/andi/.openoffice/user/basic/script.xlc", O_RDONLY) = 29 read(29, "", 16384) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++
Sure enough. Reproduced in OpenOffice1.1beta1 on RH8 x86. The crash happened right after typing the first letter of the filename in the Save As box. Thanks!
Created attachment 6112 [details] Symbolic stack traceback with ooo1.1beta1 on rh8 x86
reset prio and target
The appended stack does not seem to be from the thread that aborted; could you please confirm and eventually append the crashed thread's stack ?
sorry, i didn't mean eventually but possibly.
Duplicate to #12104 (#11622 and # 12697 are also related to this one). *** This issue has been marked as a duplicate of 12104 ***
.
Created attachment 74109