GNOME Bugzilla – Bug 721598
Segmentation fault on opening 1.12.1 gnumeric spreadsheets in 1.12.6
Last modified: 2014-01-30 16:53:40 UTC
I was using Ubuntu 13.04 until recently where I upgraded to Ubuntu 13.10. Along with this, my Gnumeric 1.12.1 was upgraded to Gnumeric 1.12.6. Prior to using Gnumeric 1.12.1 (on Ubuntu 13.04) I was using Gnumeric 1.10.17 on an Ubuntu 12.10. It was while using Gnumeric 1.10.17 that I created a Gnumeric spreadsheet. When I upgraded from Gnumeric 1.10.17 (on Ubuntu 12.10) to Gnumeric 1.12.1 (on Ubuntu 13.04), the spreadsheet still worked. As I said, I just upgraded from Gnumeric 1.12.1 (on Ubuntu 12.04) to Gnumeric 1.12.6 (on Ubuntu 13.10). This spreadsheet no longer works. When I try to load it I get a segmentation violation. Actually this happens to (so far) two Gnumeric spreadsheets I have. Other ones I have still work. Here is my backtrace - $ gdb gnumeric GNU gdb (GDB) 7.6.1-ubuntu [...] (gdb) run Starting program: /usr/bin/gnumeric [...] Program received signal SIGSEGV, Segmentation fault. scg_find_pane (pos=0x555556236cec, scg=0x555555d0ca80) at sheet-control-gui.c:3705 3705 sheet-control-gui.c: No such file or directory. (gdb) bt
+ Trace 233001
The trunk commit I am suspicious of is commit 55aa911c22ccd0c2c5458c717aa885bea5f59ea7 from August 4th, 2013. I suspect it because it looks like it added the variables which now can not be found before the SIGSEGV. It is also a commit that was not in 1.12.1 but which was in Gnumeric 1.12.6. I wanted to quickly do a git bisect or something to check my suspicion, but ran into minor dependency problems and was then waylaid for time reasons. If this still puzzles yous, and I get the time, maybe if I get the time I'll get my JHbuild setup is up to date and dive in to take a closer look. I don't know if I'll have time to do that though, so if yous can see what's wrong that will be better. Especially whether that commit is what breaks things. I filed a bug for this at Ubuntu's bug tracker to https://bugs.launchpad.net/ubuntu/+source/gnumeric/+bug/1266268
Created attachment 265394 [details] 1.10.17 Gnumeric spreadsheet - breaks on 1.12.6, worked on 1.12.1 (and 1.10.17)
Created attachment 265395 [details] xzipped Crash file Compressed because Ubuntu web site would not allow uncompressed
This is a known and fixed patch. It has to do with the fact that the file contains a frozen pane. Unfortunately the 1.12.6 release of Gnumeric failed to handle this correctly. Any more recent releases will read the file just fine.
That should have been "This is a known and fixed bug".
Thanks for taking the time to report this bug. This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade. *** This bug has been marked as a duplicate of bug 707047 ***
*** Bug 723298 has been marked as a duplicate of this bug. ***
The workaround for this problem is to not use frozen panes until gnumeric can be upgraded or downgraded. This hack removes frozen panes from a file. It should be all on one line. Please keep a copy of the old file as backup. gunzip < in.gnumeric | perl -n -e 'print unless m|^\s*<gnm:FreezePanes .*/>\s*|' | gzip > out.gnumeric