Bug 790233 - [abrt] libreoffice-writer- crash deleting styles from template dialog (SIGSEGV)
Summary: [abrt] libreoffice-writer- crash deleting styles from template...
Alias: None
Product: Fedora
Classification: Fedora
Component: libreoffice
Version: 15
Hardware: i686
OS: Unspecified
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:4e2cc0cfb82a7178b664db4c79e...
Depends On:
TreeView+ depends on / blocked
Reported: 2012-02-14 00:36 UTC by nomnex
Modified: 2012-06-08 19:38 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-06-08 13:28:55 UTC

Attachments (Terms of Use)
File: dso_list (20.31 KB, text/plain)
2012-02-14 00:36 UTC, nomnex
no flags Details
File: maps (44.73 KB, text/plain)
2012-02-14 00:36 UTC, nomnex
no flags Details
File: backtrace (59.80 KB, text/plain)
2012-02-14 00:36 UTC, nomnex
no flags Details
print-screen template management (38.83 KB, image/png)
2012-06-08 15:18 UTC, nomnex
no flags Details
Print-screen delete context menu (37.01 KB, image/png)
2012-06-08 16:01 UTC, nomnex
no flags Details

Description nomnex 2012-02-14 00:36:04 UTC
abrt version: 2.0.3
architecture:   i686
backtrace_rating: 4
cmdline:        /usr/lib/libreoffice/program/swriter.bin -writer
component:      libreoffice
crash_function: SwDocStyleSheet::PresetNameAndFamily
executable:     /usr/lib/libreoffice/program/swriter.bin
os_release:     Fedora release 15 (Lovelock)
package:        libreoffice-writer-
reason:         Process /usr/lib/libreoffice/program/swriter.bin was killed by signal 11 (SIGSEGV)
time:           Tue Feb 14 09:08:48 2012
uid:            500
username:       mt

backtrace:      Text file, 61239 bytes
dso_list:       Text file, 20795 bytes
maps:           Text file, 45802 bytes

:Deleting several styles, in Templates > Organize > Document (or) Template makes LibreOffice to crash.
:I can reproduce the crash (Always)
:Open a writer document or template
:Open the Organize Templates window
:Click on the document or template to show its styles
:Delete some styles one by one (only option)
:LibreOffice terminates after the second or third style deletion

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

:Feb 14 08:56:36 nh28d kernel: [ 3510.820362] swriter.bin[2280]: segfault at 30000 ip 4b194fb6 sp bfa04e90 error 4 in libswli.so[4a8ff000+d51000]
:Feb 14 08:56:38 nh28d abrt[2579]: saved core dump of pid 2280 (/usr/lib/libreoffice/program/swriter.bin) to /var/spool/abrt/ccpp-2012-02-14-08:56:36-2280.new/coredump (103591936 bytes)
:Feb 14 09:08:48 nh28d kernel: [ 4243.330980] swriter.bin[2623]: segfault at 9 ip 4b194fb8 sp bfdd3350 error 4 in libswli.so[4a8ff000+d51000]
:Feb 14 09:08:50 nh28d abrt[2982]: saved core dump of pid 2623 (/usr/lib/libreoffice/program/swriter.bin) to /var/spool/abrt/ccpp-2012-02-14-09:08:48-2623.new/coredump (98844672 bytes)

Comment 1 nomnex 2012-02-14 00:36:10 UTC
Created attachment 561713 [details]
File: dso_list

Comment 2 nomnex 2012-02-14 00:36:20 UTC
Created attachment 561714 [details]
File: maps

Comment 3 nomnex 2012-02-14 00:36:29 UTC
Created attachment 561715 [details]
File: backtrace

Comment 4 Caolan McNamara 2012-05-15 14:47:50 UTC
Backtrace shows that this is a crash removing a style via the template dialog, but I struggled to be able to delete *any* user-defined style from that dialog.

Turns out that being unable to delete styles from the dialog seems to have been accidentally disabled since around 2006. I've fixed that part of things upstream as http://cgit.freedesktop.org/libreoffice/core/commit/?id=cdd4d969b1446ca0492adda239f5caf9987b84eb and now can delete styles from documents/templates again from organize->templates without any apparent problem.

I'm inclined to think that your crash is triggered by the problem I've fixed, but I'm a little unsure, because I don't understand how you were able to delete styles without the fix :-)

Comment 5 Caolan McNamara 2012-06-08 13:28:55 UTC
I'm going to assume this crash is somehow related to the busted logic in sfx2/source/doc/docvor.cxx which I've fixed upstream, in which case it'll be good in F18. Seeing as its not definite that it is I won't backport to a stable release

Comment 6 nomnex 2012-06-08 15:18:38 UTC
Created attachment 590460 [details]
print-screen template management

Just to make sure, the crash occurs when I delete the custom styles of a document using the template management.

I join a print-screen, see the red rectangle. NB: This document is an default document without custom styles. Assuming the document would have some custom styles, removing would reproduce this bug.

are we talking about the same issue?

Comment 7 Caolan McNamara 2012-06-08 15:30:37 UTC
yeah, that's the dialog I'm talking about. But I'm interested in *how* are you "removing" them, because the bug I fixed was that pressing delete wasn't doing anything, or right clicking a style wasn't showing the "delete" option because it was looking at the wrong index.

Comment 8 nomnex 2012-06-08 16:01:39 UTC
Created attachment 590465 [details]
Print-screen delete context menu

LibreOffice 3.3.4 
OOO330m19 (Build:401)

There is a context menu Delet, and I confirm on the window "Are you sure you want to delete the style".

When I remove more than 1 single style in a row, writer crashes.

You last comment says you have removed access to the feature. That was (is ;)) very handy to remove some document custom styles this way. Any chance to re-gain the feature in a later LO version, minus the crashes?

Comment 9 nomnex 2012-06-08 16:03:12 UTC
Sorry, it's late here. It will be fixed in F-18, in your comment 5

Comment 10 Caolan McNamara 2012-06-08 19:38:47 UTC
Really odd that your F-15 screenshot has that while my F15+ doesn't and my fix was to fix the code that made it not appear. *shrug*, its *hopefully* all the same underlying problem.

Note You need to log in before you can comment on or make changes to this bug.