Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8100 - abiword 1.0.2 on 1.4rc1 crashes on exit, print
Summary: abiword 1.0.2 on 1.4rc1 crashes on exit, print
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 8850 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-19 05:34 UTC by Jan Gutter
Modified: 2003-04-03 17:09 UTC (History)
3 users (show)

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


Attachments
debug info grabed from bug-buddy (abiword 1.0.4_pre1-r1) (abiword.bug4,10.51 KB, text/plain)
2002-12-18 11:13 UTC, Sylvain Meilard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Gutter 2002-09-19 05:34:32 UTC
Abiword 1.0.2 crashes on print preview, print and exit... Is this Gentoo 1.4rc1
specific? I've also had this problem with a system compiled with GCC 3.1.1...
Any info is appreciated
Comment 1 Modig 2002-10-02 19:28:56 UTC
<error text>
Applicatoin "/usr/bin/AbiWord_d" (process 28781) has crashed due to a fatal error.
(Segmentation fault)
</error text>
Comment 2 Shad Nelson 2002-10-07 16:35:10 UTC
I get the same error with GCC 3.2
Comment 3 foser (RETIRED) gentoo-dev 2002-10-10 11:06:03 UTC
*** Bug 8850 has been marked as a duplicate of this bug. ***
Comment 4 foser (RETIRED) gentoo-dev 2002-10-16 13:59:14 UTC
Seems to be an abiword bug http://bugzilla.abisource.com/show_bug.cgi?id=3846
Comment 5 foser (RETIRED) gentoo-dev 2002-10-17 10:32:00 UTC
And another one to keep an eye on
http://bugzilla.abisource.com/show_bug.cgi?id=3457 .
Comment 6 Sylvain Meilard 2002-12-16 18:40:54 UTC
I'm also a Gentoo user, and i have the same bug.
I'm (only) a C programmer, and not a a C++ programmer,
but i 've had a look at the code of the
release 1.0.2 :
it seem's that the crasch occurs line 963 in
abi/src/af/xap/unix/xap_UnixFrame.cpp, which is
gtk_widget_destroy(getTopLevelWindow());

That's in the method bool XAP_UnixFrame::close(),
called from the file
abi/src/wp/ap/xp/ap_EditMethods.cpp, line 2804, at
the end of the function
static bool s_closeWindow (AV_View * pAV_View,
EV_EditMethodCallData *pCallDate, bool bCanExit )

Could it come from the callback function
for the "destroy" signal ?
(I'm not a gtk guru...)

Hope this could help
Comment 7 foser (RETIRED) gentoo-dev 2002-12-16 18:51:04 UTC
interesting, for me the problem still exists in 1.4_pre1. Can you confirm that
one too ?

The problem is that on some systems which seem quite similar it does happen and
on other it's doesn't.

To give any sensible futher comment i need to look at it myself, will do so later.
Comment 8 Sylvain Meilard 2002-12-18 07:47:23 UTC
Yes, i'm also using gentoo 1.4_pre1.
I build it from stage1 (stage1-x86-1.4_rc1-20020908-1208.tar.bz2)
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
with an athlon XP 1900+
Comment 9 Sylvain Meilard 2002-12-18 10:08:22 UTC
I removed my -O3 option, and add a -g option to CFLAGS in /etc/make.conf, and
abiword don't crash anymore !
now, my -g option is useless :-)
Comment 10 Sylvain Meilard 2002-12-18 11:05:43 UTC
In fact, it still crash when i ask for a print preview. But it don't crash when
quitting.
Comment 11 Sylvain Meilard 2002-12-18 11:13:34 UTC
Created attachment 6589 [details]
debug info grabed from bug-buddy (abiword 1.0.4_pre1-r1)

here is the debug infos i get when i choose "print preview" in the "file" menu.

My CFLAGS has a -g option, and no -Ox option
I tried to rebuild also libgnome, libgnomeui, libgnomeprint, libgnomeprintui
and gtk+-1.2.10-r9 with the same options, but i didn't get more debug
informations.
Comment 12 Matthew Smith 2003-01-03 00:26:06 UTC
I just did a 'USE="-gnome" emerge abiword' as per
http://bugzilla.abisource.com/show_bug.cgi?id=3457#c7 and neither print nor exit
causes a crash anymore.
Comment 13 foser (RETIRED) gentoo-dev 2003-01-13 10:25:34 UTC
Well, i think the print and exit crashes are unrelated. And the print crash i
havent seen in a while, the exit crash though is still there when i USE=-gnome.
Only you probably don't notice because there's no gnome crash dialog. Try
running abi from the commandline and check.
Comment 14 Sander Graswinckel 2003-01-19 09:09:56 UTC
I can confirm that. Using -gnome I still get the "crash on exit":

/usr/bin/abiword: line 67:  2740 Aborted                
$ABISUITE_LIBEXEC/AbiWord_d "$@"

gdb reports:
Program received signal SIGSEGV, Segmentation fault.
0x401146b1 in gtk_handlers_run () from /usr/lib/libgtk-1.2.so.0

(gdb) bt
#0  0x401146b1 in gtk_handlers_run () from /usr/lib/libgtk-1.2.so.0
Cannot access memory at address 0x0
Comment 15 Brad Laue (RETIRED) gentoo-dev 2003-02-23 00:54:26 UTC
I've just built 1.4rc2 and AbiWord 1.0.4_pre1-r1 and AbiWord-1.0.4 both crash on print, print preview, and exit as per the above.

My compiler optimizations are the standard -march=pentium3 -O3 -pipe and nothing else special. GCC 3.2.1 does like to complain about the abiword source though, while it's building it.

Comment 16 Sander Graswinckel 2003-03-23 17:03:00 UTC
This problem (crash on exit) goes away if -O1 is used instead of -O2 in the CXXFLAGS. I added CXXFLAGS="${CXXFLAGS//-O?} -O1" to the ebuild just above the econf line. 
I hope this helps to narrow down this problem a little.

BTW I tried this on abiword-1.0.5 (which still has this problem)
Comment 17 foser (RETIRED) gentoo-dev 2003-03-24 07:47:52 UTC
this is amazing ... such a longstanding problem with such an easy solution. Well, at least it works for me.. i'm adding it to the 1.0.5 ebuild in the tree now.

Though i remember trying different optimizations to get it right.. duh mustve missed this.
Comment 18 foser (RETIRED) gentoo-dev 2003-04-03 17:09:55 UTC
since 1.0.5 is stable now and has this optimization cap we should be fine from now on.

thnx for your patience and help.