Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105428 - sci-chemistry/chemtool quits with error when you preview saved files to open
Summary: sci-chemistry/chemtool quits with error when you preview saved files to open
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-09 14:51 UTC by Mark Webster
Modified: 2006-06-04 16:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Webster 2005-09-09 14:51:42 UTC
Error produced at console

Memory allocation problem (SIGSEGV) - dumping current drawing to file crashdump.cht


Reproducible: Always
Steps to Reproduce:
1.Start Chemtool
2.Open a saved file (not imported)

Actual Results:  
Program crashed with error

Expected Results:  
Displayed preview of file

Program will crash previewing any saved file.
Using compiler 3.3.6
Program version is 1.6.6.
Website for program noted that this bug was fixed in the previous release
(1.6.5). Have contacted author.
Comment 1 Peter Bienstman (RETIRED) gentoo-dev 2005-09-10 05:21:52 UTC
As you note, this is most likely a problem with the package itself rather than 
with the ebuild. I'm closing this bug for now, but feel free to reopen it if 
you hear back from the author and he insists that this shouldn't happen with 
the current version.  
Comment 2 Mark Webster 2005-09-16 01:23:17 UTC
Author cannot reproduce bug, but has provided a work around that works. The bug
happens even with the unmasked version, and even with the compiled version from
the project website.

gdb gives the following during a trace

Program received signal SIGSEGV, Segmentation fault.
> 0x0805dde3 in getpreview (w=0x8214750, row=136290904, column=1, bevent=0x1,
>     data=0xb7bcb640) at main.c:5397
> 5397      if (bevent && bevent->type == GDK_2BUTTON_PRESS)

the work around is to remove the lines 5397 and 5398 in main.c that read

 if (bevent && bevent->type == GDK_2BUTTON_PRESS)
    return;
at the top of function "getpreview"

The author isn't sure what is causing the problem, but would like to know if it
can be reproduced on another gentoo box. He notes that bevent causes no memory
problems on his Suse box.
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2005-09-16 03:13:16 UTC
I can't reproduce the problem with gcc 3.4.4 or gcc 3.3.5-something...
which USE flags were you using to build chemtool and which versions of its
dependencies do you have installed?
Comment 4 Markus Dittrich (RETIRED) gentoo-dev 2005-09-16 08:04:23 UTC
Works fine for me as well using gcc-3.4.4-r1 and
USE="-gnome +gtk2 -kde +nls".
Comment 5 Markus Dittrich (RETIRED) gentoo-dev 2005-11-09 19:45:02 UTC
Hi Mark, 
 
Any progress on this from your side? I just had a look at the code and 
it looks like the problem might come from gtk/gtk2. Could you please post your 
use flags (best would be "emerge info", really) as well as the versions 
of gtk/gtk2 you've installed. Have your tried compiling against gtk 
instead of gtk2 or vice versa? 
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-04 03:18:17 UTC
Is this still an issue with 1.6.9? Please reopen when you reply.
Comment 7 Mark Webster 2006-06-04 15:08:02 UTC
(In reply to comment #6)
> Is this still an issue with 1.6.9? Please reopen when you reply.
> 

No, this problem was solved with the latest version. I now have a compile error when emerging, so I will open a new bug. 
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-04 16:30:39 UTC
Reopening..
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-04 16:30:49 UTC
Fixed.