xdrawchem crashes when importing a structure i've searched in the internet

Bug #112644 reported by Daniel Gungl
6
Affects Status Importance Assigned to Milestone
xdrawchem (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: xdrawchem

xdrawchem crashes when importing a structure i've searched in the internet
it has been found, but by trying to load it into the editing mask the programm crashed

ProblemType: Crash
Architecture: i386
Date: Sat May 5 18:00:53 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/xdrawchem
Package: xdrawchem 1.9.9-3
PackageArchitecture: i386
ProcCmdline: xdrawchem
ProcCwd: /home/daniel
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=de_AT.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: xdrawchem
StacktraceTop:
 ?? ()
 ?? ()
 QObject::activate_signal () from /usr/lib/libqt-mt.so.3
 QObject::activate_signal () from /usr/lib/libqt-mt.so.3
 QButton::clicked () from /usr/lib/libqt-mt.so.3
Uname: Linux dg-mobile-kubuntu 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev scanner video

Revision history for this message
Daniel Gungl (daniel-gungl-gmx) wrote :
Revision history for this message
Michael Banck (mbanck) wrote :

Can you attach the structure which provokes this segfault, please, if you haven't already.

Michael

Revision history for this message
Daniel Gungl (daniel-gungl-gmx) wrote : Reproducing the Crash

ok, i have tried to reproduce the crash and it worked like this:
started the program out of the kde menu.
i used the function: "Im Internet Finden" (i am using the german version, so it may be translated best with: online search structures)
searched for "Acetylcholin" and the only result i got was a structure with the CAS 66-23-9
without selecting the line in the result field i clicked on the button "Auswählen" (Select) and so the pogram chrashes without a hint.

Revision history for this message
Tom Mortimer-Jones (tom-morty) wrote :

I can confirm this bug. It only happens if you do not choose one of the items from the list of returned structures.

I recompiled from source to get the debugging information and found the offending line. The program wasn't checking to see if the user had chosen an item before using it.

Please find attached a patch that stops the crash. This bug doesn't seem to have been reported or fixed upstream.

Changed in xdrawchem:
status: Unconfirmed → Confirmed
Revision history for this message
Michael Banck (mbanck) wrote :

Thanks for the patch, fixed in Debian upload xdrawchem_1.9.9-4, to be synced to Ubuntu later.

Unfortunately, this is one of the many ways you can crash xdrawchem, it doesn't cope well with unexpected user input. And it seems upstream is mostly dormant.

Michael

Revision history for this message
William Grant (wgrant) wrote :

Gutsy now has 1.9.9-4.

Changed in xdrawchem:
status: Confirmed → 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.