espeak-gui doesn't start (segmentation fault)

Bug #889901 reported by breek
46
This bug affects 4 people
Affects Status Importance Assigned to Milestone
python-espeak
Fix Released
High
Unassigned
python-espeak (Ubuntu)
Fix Released
Medium
Siegfried Gevatter
Oneiric
Fix Released
Medium
Unassigned

Bug Description

[Impact]
Calling espeak.list_voices() causes a segmentation fault since Oneiric. This makes espeak-gui crash at startup.

[Development Fix]
This has been fixed upstream with a new 0.4 release, which has been uploaded to Precise.

[Stable Fix]
The fix is just changing the following line in espeak/espeakmodulecore.cpp:
 - "variant", item->variant
 + "variant", NULL // only used in espeak_setVoiceByProperties

[Test Case]
Running the following command on Oneiric currently results in a segmentation fault:
$ python -c "from espeak import espeak; espeak.list_voices()"

[Regression Potential]
Should have any. In any case, the only user of python-espeak in the repositories is espeak-gui, which is completely unusable because of this bug.

Revision history for this message
breek (breek) wrote :
Revision history for this message
Siegfried Gevatter (rainct) wrote :

Hi breek,

Thank you for your bug report. Can you please attach a backtrace so I can understand the reasons for the crash?

You can find instructions for doing this here: https://wiki.ubuntu.com/Backtrace#Generation (steps 1-6). You'll find the debugging symbols (step 1) at http://ddebs.ubuntu.com/pool/universe/p/python-espeak/.

Thanks!

Changed in espeak-gui (Ubuntu):
assignee: nobody → Siegfried Gevatter (rainct)
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
breek (breek) wrote :

here it is ;)

Revision history for this message
Siegfried Gevatter (rainct) wrote :

Hi again,

I forgot that gdb won't work just like that since espeak-gui is written in Python. The correct usage would have been with "gdb python [...]" and then "run /usr/bin/espeak-gui".

Anyway, I see I can reproduce it now that I'm using Oneiric. I'll have a look at it.

Thanks again!

Changed in espeak-gui (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Siegfried Gevatter (rainct) wrote :
Revision history for this message
breek (breek) wrote :

that's really strange; typing this command

gdb python espeak-gui 2>&1 | tee ~/gdb-espeak-gui.txt

espeak doesn't crash! the only problem is that the last word of the text entered in the gui is truncated.

if i run /usr/bin/espeak-gui or python /usr/bin/espeak-gui i get segmentation fault

no longer affects: espeak-gui
affects: espeak-gui (Ubuntu) → python-espeak (Ubuntu)
Changed in python-espeak (Ubuntu Oneiric):
importance: Undecided → Medium
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-espeak - 0.4-0ubuntu1

---------------
python-espeak (0.4-0ubuntu1) precise; urgency=low

  * New upstream version:
     - Fixes an invalid pointer dereference in list_voices (LP: #889901).
  * Bump Standards-Version to 3.9.2 and add debian/watch file.
 -- Siegfried-Angel Gevatter Pujals <email address hidden> Sun, 01 Jan 2012 18:26:35 +0100

Changed in python-espeak (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Siegfried Gevatter (rainct) wrote :

Backported fix uploaded to oneiric-proposed.

Changed in python-espeak:
importance: Undecided → High
status: New → Fix Released
milestone: none → 0.4
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello breek, or anyone else affected,

Accepted python-espeak into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in python-espeak (Ubuntu Oneiric):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
breek (breek) wrote :
Download full text (6.8 KiB)

something wrong in the package (or i did something wrong when enabling oneric-proposed?)

sudo aptitude install python-espeak/oneiric-proposed

(here is my translation of command output)

following packets will be REMOVED:
  libasound2{u} libasound2-plugins{u} libasyncns0{u} libatk1.0-0{u}
  libburn4{u} libflac8{u} libgdk-pixbuf2.0-0{u} libgtk2.0-0{u}
  libhal-storage1{u} libhal1{u} libiptcdata0{u} libisofs6{u}
  libjack-jackd2-0{u} libjasper1{u} libjson0{u} libjte1{u} libnspr4-0d{u}
  libnss3-1d{u} libogg0{u} libpulse0{u} libsamplerate0{u} libsndfile1{u}
  libspeexdsp1{u} libthunar-vfs-1-2{u} libthunar-vfs-1-common{u}
  libvorbis0a{u} libvorbisenc2{u} libwrap0{u} libxcomposite1{u}
  libxcursor1{u} libxinerama1{u} libxrandr2{u} linux-headers-3.0.0-12{u}
  linux-headers-3.0.0-12-generic{u} obexd-client{u} xfburn{u}
  xfce4-artwork{u} xfce4-battery-plugin{u} xfce4-clipman{u}
  xfce4-clipman-plugin{u} xfce4-cpufreq-plugin{u} xfce4-datetime-plugin{u}
  xfce4-genmon-plugin{u} xfce4-sensors-plugin{u} xfce4-timer-plugin{u}
  xfce4-wavelan-plugin{u} xfce4-xkb-plugin{u}
following packets will be updated:
  python-espeak
1 packet updated, 0 installed, 47 to be removed and 0 not updated.
it is necessary to download 9536 B. After extraction, 139 MB will be freed.
Following packets have unsatisfied dependencies:
  python-espeak-dbgsym: depends on: python-espeak (= 0.3-0ubuntu1) but 0.3-0ubuntu1.1 is going to be installed.
Following actions will satisfy dependencies:

      Remove following packets:
1) ia32-libs-multiarch
2) libacl1
3) libattr1
4) libaudio2
5) libavahi-client3
6) libavahi-common3
7) libc6
8) libcairo2
9) libcomerr2
10) libcups2
11) libcupsimage2
12) libcurl3
13) libdatrie1
14) libdb5.1
15) libdbus-1-3
16) libdrm-intel1
17) libdrm-nouveau1a
18) libdrm-radeon1
19) libdrm2
20) libexpat1
21) libffi6
22) libfontconfig1
23) libfreetype6
24) libgcc1
25) libgcrypt11
26) libgdbm3
27) libgl1-mesa-dri
28) libgl1-mesa-glx
29) libglapi-mesa
30) libglib2.0-0 ...

Read more...

Revision history for this message
Siegfried Gevatter (rainct) wrote :

Hi breek,

Please try uninstalling python-espeak-dbgsym first.

Revision history for this message
breek (breek) wrote :

you're right!
updated... and now works without any segfault ;)

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-espeak - 0.3-0ubuntu1.1

---------------
python-espeak (0.3-0ubuntu1.1) oneiric-proposed; urgency=low

  * Stable Release Update.
  * debian/patches/voice-variant-dereference.patch:
     - Fix invalid pointer dereference (LP: #889901).
 -- Siegfried-Angel Gevatter Pujals <email address hidden> Sun, 01 Jan 2012 19:10:31 +0100

Changed in python-espeak (Ubuntu Oneiric):
status: Fix Committed → Fix Released
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.