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.
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.
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.
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?
Works fine for me as well using gcc-3.4.4-r1 and USE="-gnome +gtk2 -kde +nls".
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?
Is this still an issue with 1.6.9? Please reopen when you reply.
(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.
Reopening..
Fixed.