Description of problem: DrGeo crashes often Version-Release number: drgeo-1.1.0-12.fc9.i386 How reproducible: very reproducible Steps to Reproduce: 1. start DrGeo 2. create New Geometric Figure (leftmost button on the top-side toolbar) 3. select Point (topmost tool on the left-side toolbar), click on the main canvas Same result when running DrGeo on a sample file drgeo /usr/share/drgeo/examples/figures/refraction.fgeo and moving points around Actual results: as seen when run under gdb: (drgeo:3694): libglade-WARNING **: Unknown GtkToolbar child property: width_request (drgeo:3694): libglade-WARNING **: Unknown GtkToolbar child property: height_request Program received signal SIGSEGV, Segmentation fault. 0x08074a36 in drgeoFigure::addToUndoQueue () (gdb) where #0 0x08074a36 in drgeoFigure::addToUndoQueue () #1 0x08074c88 in drgeoFigure::moveItem () #2 0x0807eb88 in drgeoSelectTool::handleRelease () #3 0x0806dda4 in drgeoDrawableUI::handleRelease () #4 0x0806fd0d in drgeoGtkDrawable::releaseCallback () #5 0x0807078f in ?? () #6 0x078b42f6 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #7 0x08d2c600 in ?? () #8 0x08e25008 in ?? () #9 0x00000000 in ?? () Expected results: lack of crash Additional info:
You are right. I can reproduce the problem but i don't know how to solve it because there is no more support upstream.
diff -u geo/drgeo_figure.cc* --- geo/drgeo_figure.cc 2008-07-08 02:38:50.000000000 -0400 Bug results from a gint () function failing to return a value. The following patch fixes the problem. Please test and send it up to Fedora updates, as this is a neat application, and it would be a pity if it was left broken for long. --- geo/drgeo_figure.cc 2008-07-08 02:38:50.000000000 -0400 +++ geo/drgeo_figure.cc~ 2005-07-14 03:30:01.000000000 -0400 @@ -1309,7 +1309,7 @@ gint drgeoFigure::preferedUndoLevel () { - return atoi (drgeoConfigGet (":undoLevel")); + atoi (drgeoConfigGet (":undoLevel")); } void
Thanks your patch seems to solve the problem but there is a mistake in the patch : --- geo/drgeo_figure.cc 2008-07-08 02:38:50.000000000 -0400 +++ geo/drgeo_figure.cc~ 2005-07-14 03:30:01.000000000 -0400 @@ -1309,7 +1309,7 @@ gint drgeoFigure::preferedUndoLevel () { - atoi (drgeoConfigGet (":undoLevel")); + return atoi (drgeoConfigGet (":undoLevel")); } void
drgeo-1.1.0-13.fc9 has been submitted as an update for Fedora 9
drgeo-1.1.0-13.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update drgeo'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-6257
drgeo-1.1.0-13.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.