enchant zemberek backend cause sylpheed crash

Bug #413994 reported by Julien Lavergne
90
This bug affects 14 people
Affects Status Importance Assigned to Milestone
enchant (Ubuntu)
Fix Released
Medium
Unassigned
sylpheed (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: sylpheed

karmic (up-to-date 08-15-2009)
sylpheed 2.6.0
imap account setting (with gmail server)

It crashes when I click on compose button.

ProblemType: Crash
Architecture: i386
Date: Sat Aug 15 13:10:08 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/sylpheed
Package: sylpheed 2.6.0-3
ProcCmdline: sylpheed
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-5.24-generic
SegvAnalysis:
 Segfault happened at: 0x81bd0e <IA__g_main_context_prepare+366>: mov (%eax),%esi
 PC (0x0081bd0e) ok
 source "(%eax)" (0x00e5ac00) not located in a known VMA region (needed readable region)!
 destination "%esi" ok
SegvReason: reading unknown VMA
Signal: 11
SourcePackage: sylpheed
StacktraceTop:
 IA__g_main_context_prepare (context=0x8eb0670, priority=0xbff2529c)
 g_main_context_iterate (context=0x8eb0670,
 IA__g_main_loop_run (loop=0x91e88b0)
 IA__gtk_main ()
 main (argc=1, argv=0xbff25474) at main.c:329
Title: sylpheed crashed with SIGSEGV in IA__g_main_context_prepare()
Uname: Linux 2.6.31-5-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Julien Lavergne (gilir) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt (retraced)

StacktraceTop:IA__g_main_context_prepare (context=0x8eb0670, priority=0xbff2529c)
g_main_context_iterate (context=0x8eb0670,
IA__g_main_loop_run (loop=0x91e88b0)
IA__gtk_main ()
?? ()

Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt (retraced)
Changed in sylpheed (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
Revision history for this message
Julien Lavergne (gilir) wrote : Re: sylpheed crashed with SIGSEGV in IA__g_main_context_prepare()

Also happens with 2.7.1

visibility: private → public
Revision history for this message
Akihiro Matsushima (amatsus) wrote :

It operates normally when libenchant1c2a 1.4.2-3.3ubuntu1 is used.

Revision history for this message
Julien Lavergne (gilir) wrote :

@amatsus
I can confirm it, rebuilding enchant 1.4.2 and sylpheed 2.7.1 and the problem is gone. Good catch !

Changed in enchant (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Erik de Castro Lopo (erikd) wrote :

Compiling sylpheed with --disable-gtkspell also fixes it.

Revision history for this message
Julien Lavergne (gilir) wrote :

Thanks Erik, I confim that it's working for me too.
I'm going to add this workaround to the next upload of sylpheed, waiting for a proper fix.

Revision history for this message
Alessio Treglia (quadrispro) wrote :

The release available in debian works fine, merging it.

Changed in sylpheed (Ubuntu):
assignee: nobody → Alessio Treglia (quadrispro)
status: New → In Progress
assignee: Alessio Treglia (quadrispro) → nobody
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sylpheed - 2.7.1-2ubuntu1

---------------
sylpheed (2.7.1-2ubuntu1) lucid; urgency=low

  * Merge from debian testing, remaining changes:
    - debian/control: Recommends curl to add support for update check.
  * Re-enable gtkspell, now it's working fine without dropping it, closing:
    - LP: #475832
    - LP: #413994

sylpheed (2.7.1-2) unstable; urgency=low

  * debian/control
  - Fixed -i18n section to localization
  - Updated Standards-Version to 3.8.3, no other changes
  - Fixed required version of debhelper as suggested by lintian
  - Use libreadline6-dev now we have it in unstable (thanks doko)
  * README.source
  - Added file pointing out quilt usage
 -- Alessio Treglia <email address hidden> Wed, 11 Nov 2009 00:49:44 +0100

Changed in sylpheed (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Julien Lavergne (gilir) wrote :

  * Re-enable gtkspell, now it's working fine without dropping it, closing:

I don't know why you think that, the problem is in the support of enchant 1.5.0. Maybe the version in Debian works, but it's just because Debian is using enchant 1.4.2. I have still the problem with 2.7.1, even with 3.0 alpha of sylpheed.

Changed in sylpheed (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Alessio Treglia (quadrispro) wrote :

Julien, I tried it in a lucid chroot and it work'd fine.

Revision history for this message
Alessio Treglia (quadrispro) wrote :

At least, this isn't still reproducible.

Revision history for this message
Julien Lavergne (gilir) wrote :

Still reproducible for me in a Lucid VBox.

Revision history for this message
Alessio Treglia (quadrispro) wrote :
Download full text (23.8 KiB)

Steps I followed:

1. Install sylpheed:

alessio@quadromatic:~$ schroot -u root -c lucid_amd64
I: [lucid_amd64-58d65d71-9555-4a95-a2e9-ba98a6fbd843 chroot] (alessio->root) Running login shell: '/bin/bash'
(lucid_amd64)root@quadromatic:/home/alessio# apt-get update
Get:1 http://127.0.0.1 lucid Release.gpg [189B]
Get:2 http://127.0.0.1 lucid Release [65.9kB]
Get:3 http://127.0.0.1 lucid/main Packages [1354kB]
Get:4 http://127.0.0.1 lucid/restricted Packages [7969B]
Get:5 http://127.0.0.1 lucid/universe Packages [5128kB]
Get:6 http://127.0.0.1 lucid/multiverse Packages [185kB]
Fetched 6742kB in 21s (317kB/s)
Reading package lists... Done
(lucid_amd64)root@quadromatic:/home/alessio# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  linux-libc-dev
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 728kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://127.0.0.1 lucid/main linux-libc-dev 2.6.32-3.4 [728kB]
Fetched 728kB in 7s (96.3kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 11194 files and directories currently installed.)
Preparing to replace linux-libc-dev 2.6.32-3.3 (using .../linux-libc-dev_2.6.32-3.4_amd64.deb) ...
Unpacking replacement linux-libc-dev ...
Setting up linux-libc-dev (2.6.32-3.4) ...
(lucid_amd64)root@quadromatic:/home/alessio# apt-get install sylpheed
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  aspell aspell-en curl defoma dictionaries-common fontconfig fontconfig-config hicolor-icon-theme hunspell-en-us libaspell15
  libatk1.0-0 libatk1.0-data libavahi-client3 libavahi-common-data libavahi-common3 libbluetooth3 libcairo2 libcompfaceg1 libcups2
  libcurl3 libdatrie1 libdbus-glib-1-2 libdirectfb-1.2-0 libenchant1c2a libexpat1 libfont-freetype-perl libfontconfig1 libfontenc1
  libfreetype6 libfribidi0 libglib2.0-0 libglib2.0-data libgpgme11 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtkspell0
  libhunspell-1.2-0 libjasper1 libjpeg62 libnewt0.52 libonig2 libpango1.0-0 libpango1.0-common libpcre3 libpisock9 libpixman-1-0
  libpopt0 libpth20 libsysfs2 libthai-data libthai0 libtiff4 libts-0.0-0 libx11-6 libx11-data libxau6 libxcb-render-util0
  libxcb-render0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxfont1 libxft2 libxi6 libxinerama1
  libxml2 libxrandr2 libxrender1 metamail sgml-base shared-mime-info sharutils sylpheed-i18n tsconf ttf-dejavu ttf-dejavu-core
  ttf-dejavu-extra ucf whiptail x-ttc...

Revision history for this message
Alessio Treglia (quadrispro) wrote :
Revision history for this message
Julien Lavergne (gilir) wrote :

Hum, strange, maybe the bug can't be trigger in a chroot. All reports was with VBox or real installation.
Anyway, a new upstream will probably be available later in the cycle, we can test more with it.

Revision history for this message
Julien Lavergne (gilir) wrote :

Seems to be an enchant. If you compile enchant without zemberek support, it's working.

Attached debdiff will fix the problem.

Other solution is to depends on zemberek package, but it will bring some java depends. Another solution is to separate the zemberek backend in its own binary, but I'm not sure it'll fix the problem in sylpheed for example.

Changed in sylpheed (Ubuntu):
status: Confirmed → Invalid
Julien Lavergne (gilir)
summary: - sylpheed crashed with SIGSEGV in IA__g_main_context_prepare()
+ sylpheed zemberek backend cause sylpheed crash
summary: - sylpheed zemberek backend cause sylpheed crash
+ enchant zemberek backend cause sylpheed crash
Revision history for this message
Sebastien Bacher (seb128) wrote :

the code should be fixed to not crash, stopping building code because of a bug is not a fix it's a workaround...

Revision history for this message
Julien Lavergne (gilir) wrote :

No, it's a bug in enchant, upstream is also aware of this and they turned zemberek support off by default (see http://bugzilla.abisource.com/show_bug.cgi?id=12529). It's also the same on Fedora and Archlinux.

There are others packages potentially affected by this :
https://bugs.webkit.org/show_bug.cgi?id=30860
http://bugs.archlinux.org/task/17401?cat=&dev=notassigned&sev=2&status=

Revision history for this message
Sebastien Bacher (seb128) wrote :

right it's a bug in enchant but what make you think the code can't be changed to not crash? not building the option seems rather to be a workaround there...

Revision history for this message
Julien Lavergne (gilir) wrote :

Yes, and in meantime, it was fixed on sylpheed.
However, I think the package is still not correct. Or the zemberek support is enable (with all the potential risk) and the package need adjustments (depends on zemberek and/or split into a new binary), or the support need to be disable to follow the the package. For the 2 cases, something is missing.

Revision history for this message
Sebastien Bacher (seb128) wrote :

other option would be to do runtime detection and act correctly

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package enchant - 1.5.0-0ubuntu4

---------------
enchant (1.5.0-0ubuntu4) lucid; urgency=low

  * debian/rules: Disable backend zemberek by passing --disable-zemberek flag
    This option makes sylpheed crash if zemberek is not installed, which have
    a lot of java depends. (LP: #413994)
 -- Julien Lavergne <email address hidden> Thu, 19 Nov 2009 11:29:06 -0600

Changed in enchant (Ubuntu):
status: Confirmed → Fix Released
tags: added: iso-testing
Revision history for this message
Id2ndR (id2ndr) wrote :

I can confirm that the update of libenchant1c2a to 1.5.0-0ubuntu4 fix the segfault of ubiquity (bug #529726 which is a duplicate of this one).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.