Bug 79844

Summary: When I click autoformat table icon or from menu table>autoformat the program crashes
Product: LibreOffice Reporter: Luis Arjona <larjona>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: critical CC: jmadero.dev, serval2412
Priority: high    
Version: 4.2.4.2 release   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: I think this is a corrupted file

Description Luis Arjona 2014-06-09 17:04:35 UTC
When I open a document, or when I create a new document from start, when I click the autoformat button the program crashes, and I must kill the soffice.bin from CLI.

System:
Ubuntu 14.04 64 bits
Dell Latitude E5540
Libreoffice 4.2.4.2


From CLI
larjona@larjona-pc:~$ ps -ef|grep office
larjona   8098  7720 15 19:00 pts/3    00:00:01 /usr/lib/libreoffice/program/soffice.bin --writer [...]


Then when I click on autoformat button and the program crashed:
larjona@larjona-pc:~$ sudo strace -p 8098xxxxxxpread(37, "", 4096, 59719)              = 0
pread(37, "", 4096, 59719)              = 0
pread(37, "", 4096, 59719)              = 0
pread(37, "", 4096, 59719)              = 0
pread(37, "", 4096, 59719)              = 0
pread(37, "", 4096, 59719)              = 0
pread(37, "", 4096, 59719)              = 0
pread(37, "", 4096, 59719)              = 0
pread(37, "", 4096, 59719)              = 0


Loop till I push ctrl + c to break the process
Comment 1 Julien Nabet 2014-06-09 17:15:13 UTC
On pc Debian x86-64 with LO 4.2.4 Debian package, I don't reproduce this.
Here what I did:
- open Writer
- insert a new table 2 x 2
- enter the first cell (top left)
- autoformat

Could you a precise (but minimal) step by step to reproduce this?
Comment 2 Luis Arjona 2014-06-10 07:16:41 UTC
Hi Julien

I did exactly steps that you say.
- open Writer
- insert a new table 2 x 2
- enter the first cell (top left)
- autoformat

Program crashed. I must to kill soffice.bin
Comment 3 Luis Arjona 2014-06-10 10:34:46 UTC
Created attachment 100796 [details]
I think this is a corrupted file

I have resolved this issue.

I have uninstall libreoffice and purge them.
I have reinstall libreoffice from repositories (the same version 4.2.4.2 420m0 (Build:2))

When the program crashed, I have executed:

sudo lsof -p 14157

14157 is the libreoffice procces ID. That show me a lot of information, but I focus on:

soffice.b 14157 larjona   38r   REG              252,4    59719  3147772 /home/larjona/.config/libreoffice/4/user/config/autotbl.fmt

Then, I have executed:

larjona@larjona-pc:~$ cd /home/larjona/.config/libreoffice/4/user/config/

larjona@larjona-pc:~/.config/libreoffice/4/user/config$ mv autotbl.fmt autotbl.fmt.old

larjona@larjona-pc:~/.config/libreoffice/4/user/config$ ls -l autotbl*
-rw-r--r-- 1 larjona larjona 48408 oct 22  2013 autotbl.fmt.backup.20140307
-rw-r--r-- 1 larjona larjona 59719 sep  5  2013 autotbl.fmt.old


I have renamed the autotbl.fmt file to autotbl.fmt.old, and I have found a file called autotbl.fmt.backup.20140307. Then I rename the autotbl.fmt.backup.20140307 to autotbl.fmt


Now, autoformat works fine with new files and previoud created files.
Comment 4 Julien Nabet 2014-06-10 16:36:06 UTC
Thank you Luis for your feedback, I put it as WFM.