Issue 118475

Summary: SegFault when replacing with regular expression in a selection
Product: Writer Reporter: bkleine <bbfk>
Component: codeAssignee: writerneedsconfirm <swneedsconfirm>
Status: CLOSED IRREPRODUCIBLE QA Contact:
Severity: Blocker    
Priority: P5 (lowest) CC: hdu, issues
Version: OOo 3.3Keywords: crash, usability
Target Milestone: ---   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description bkleine 2011-10-01 11:00:03 UTC

    
Comment 1 bkleine 2011-10-01 11:07:05 UTC
Hi,

I have some protein sequence date where I want to add ";" to be able to make tables. using reg expressions in search/replace and choosing "." in search and "$0;" in replace works as long as I donot select the data before doing search and replace.

When I have the data selected, doing the same search/replace action first of all the entire first line is replace and not the first letter, and after that the programm has crashed.

Steps to repeat:

Use:

mrkrapqsemapagvslratilcllawaglaagDRVYIHPFHLvihnest
ceqlakanagkpkdptfipapiqaktspvdekalqdqlvlvaakldtedk
lraamvgmlanflgfriygmhselwgvvhgatvlsptavfgtlaslylga
ldhtadrlqailgvpwkdknctsrldahkvlsalqavqgllvaqgradsq

Search (with reg.expr selected) "."
replace $0;

Then select the text and repeat the search replace.

Greeting Bernhard
Comment 2 bkleine 2011-10-01 18:14:13 UTC
bug #56449 and #50510 are in the same drawer
Bernhard
Comment 3 hdu@apache.org 2012-02-01 11:33:42 UTC
Not reproducible with the new ICU based regexp engine available in recent Apache OpenOffice builds available at http://s.apache.org/Jqc.

While looking into this bug #118862 has been found (for single replacement).
Comment 4 hdu@apache.org 2012-02-07 13:51:29 UTC
Not reproducible on Apache OpenOffice. AOO34 development builds are available at http://s.apache.org/Jqc