← Back to team overview

desktop-packages team mailing list archive

[Bug 669849] Re: [Upstream] Regex Find & Replace foo[^\[:alpha:\]] causes Writer to become unresponsive

 

Launchpad has imported 4 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=41738.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2011-10-13T02:49:55+00:00 Christopher M. Penalver wrote:

Downstream bug may be found at:

https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/669849

1) lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10

2) apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.4.3-3ubuntu2
  Candidate: 1:3.4.3-3ubuntu2
  Version table:
 *** 1:3.4.3-3ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen in LibreOffice Writer via the Terminal:

cd ~/Desktop && lowriter -nologo

Ctrl+F -> Search bar box foo[^\[:alpha:\]] -> click More Options button
-> checked Regular expressions checkbox -> clicked Find button

and it fails quickly and gracefully.

4) What happens instead is Writer becomes and remains unresponsive.

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/669849/comments/5

------------------------------------------------------------------------
On 2011-10-13T06:52:19+00:00 Libreoffice-z wrote:

[Reproducible] with Server installation of Master "LibO-dev 3.5.0 – WIN7
Home Premium (64bit) English UI [(Build ID:  d3d1481-3f8994a-2ba0a9f)]"
(110909)

Also [Reproducible] with "LibreOffice 3.4.3  - WIN7 Home Premium (64bit)
German UI [OOO340m1 (Build:302)]" CALC

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/669849/comments/6

------------------------------------------------------------------------
On 2011-11-06T05:18:00+00:00 Koehlerkarl wrote:

This may be simplified: regex-search for

[[:\]

The following (inline) patch avoids the infinite loop, by advancing the
starting point if we fall into the [: a second time.


--- a/regexp/source/reclass.cxx
+++ b/regexp/source/reclass.cxx
@@ -1255,6 +1255,7 @@ Regexpr::regex_compile()
         break;
       } else {
         p = p1+1;
+        p1 ++;
         last_char = (sal_Unicode)':';
         set_list_bit(last_char, b);
       }

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/669849/comments/7

------------------------------------------------------------------------
On 2011-11-11T13:38:23+00:00 Erack wrote:

Fixed in master with
http://cgit.freedesktop.org/libreoffice/core/commit/?id=305878f44bfee90c8ddba1f40b30d18150d4adde

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/669849/comments/8


** Changed in: df-libreoffice
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/669849

Title:
  [Upstream] Regex Find & Replace foo[^\[:alpha:\]] causes Writer to
  become unresponsive

Status in LibreOffice Productivity Suite:
  Fix Released
Status in “libreoffice” package in Ubuntu:
  Triaged
Status in “openoffice.org” package in Ubuntu:
  Won't Fix

Bug description:
  Binary package hint: openoffice.org

  1)  lsb_release -rd
  Description:	Ubuntu 11.10
  Release:	11.10

  2)  apt-cache policy libreoffice-writer
  libreoffice-writer:
    Installed: 1:3.4.3-3ubuntu2
    Candidate: 1:3.4.3-3ubuntu2
    Version table:
   *** 1:3.4.3-3ubuntu2 0
          500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
          100 /var/lib/dpkg/status

  3) What is expected to happen in LibreOffice Writer via the Terminal:

  cd ~/Desktop && lowriter -nologo

  Ctrl+F -> Search bar box foo[^\[:alpha:\]] -> click More Options
  button -> checked Regular expressions checkbox -> clicked Find button

  and it fails quickly and gracefully.

  4) What happens instead is Writer becomes and remains unresponsive.

  ORIGINAL REPORTER COMMENTS: On my system this will reliably crash
  soffice.bin. I realize the example regex is probably not a good idea
  in the first place, but that shouldn't crash the application.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: openoffice.org-core 1:3.2.0-7ubuntu4.1
  Uname: Linux 2.6.35-020635-generic x86_64
  Architecture: amd64
  Date: Tue Nov  2 11:10:23 2010
  ExecutablePath: /usr/lib/openoffice/program/soffice.bin
  InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
  ProcEnviron:
   LANGUAGE=de:de_DE:en_GB:en
   PATH=(custom, no user)
   LANG=de_DE.utf8
   SHELL=/bin/bash
  SourcePackage: openoffice.org

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/669849/+subscriptions