View Issue Details

IDProjectCategoryView StatusLast Update
0000018SkyChart1-Softwarepublic08-09-18 08:02
ReporterPeter Gregory Assigned ToPatrick Chevalley  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Platformx86OSLinuxOS Version2.6
Product Version3.0.1.0 
Summary0000018: Program crashes while loading
DescriptionTWidgetSet.AppSetTitle not implemented by TGTKWidgetSet
[WARNING] *******************************************************
[WARNING] ** **
[WARNING] ** Multibyte character encodings (like UTF8) are not **
[WARNING] ** supported at the moment. **
[WARNING] ** For full keyboard event support, make sure that **
[WARNING] ** the LANG environment var has no UTF8 **
[WARNING] ** **
[WARNING] *******************************************************
TGtkWSWinControl.SetFont f_about:Tf_about
2006-03-06T10:36:25.114 Start trace
TGtkWSWinControl.SetFont f_main:Tf_main
TGtkWSWinControl.SetFont ToolBar3:TToolBar
TGtkWSWinControl.SetFont quicksearch:TComboBox
TGtkWSWinControl.SetFont TimeU:TComboBox
2006-03-06T10:36:25.705 Connected to SQL database /home/peter/
cartes_du_ciel/database/cdc.db
2006-03-06T10:36:26.305
2006-03-06T10:36:26.347 Listen on port: 3292
*** glibc detected *** double free or corruption (fasttop): 0x089b7160
***
Aborted
TagsNo tags attached.

Activities

Peter Gregory

06-03-07 12:44

reporter   ~0000033

peter****:/usr/bin$ gdb skychart
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/skychart
[Thread debugging using libthread_db enabled]
[New Thread -1212901696 (LWP 12741)]
[WARNING] *******************************************************
[WARNING] ** **
[WARNING] ** Multibyte character encodings (like UTF8) are not **
[WARNING] ** supported at the moment. **
[WARNING] ** For full keyboard event support, make sure that **
[WARNING] ** the LANG environment var has no UTF8 **
[WARNING] ** **
[WARNING] *******************************************************
2006-03-07T11:42:26.713 Start trace
[New Thread -1220248656 (LWP 12745)]
[New Thread -1228641360 (LWP 12746)]
[Thread -1220248656 (LWP 12745) exited]
[Thread -1228641360 (LWP 12746) exited]
2006-03-07T11:42:27.814 Connected to SQL database /home/peter/cartes_du_ciel/database/cdc.db
[New Thread -1228641360 (LWP 12747)]
2006-03-07T11:42:28.254
2006-03-07T11:42:28.941 Listen on port: 3292
*** glibc detected *** double free or corruption (fasttop): 0x0898d830 ***

Program received signal SIGABRT, Aborted.
[Switching to Thread -1212901696 (LWP 12741)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7b7d9b1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7b7f2c9 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb7bb16ea in __fsetlocking () from /lib/tls/i686/cmov/libc.so.6
#4 0xb7bb7f54 in malloc_trim () from /lib/tls/i686/cmov/libc.so.6
#5 0xb7bb82ca in free () from /lib/tls/i686/cmov/libc.so.6
#6 0xb7e72caf in XPolygonRegion () from /usr/lib/libX11.so.6
#7 0xb7f31e9d in gdk_region_polygon () from /usr/lib/libgdk-1.2.so.0
#8 0x0819b5fa in TGTKWIDGETSET__CREATEPOLYGONRGN (POINTS=0xbf9b22f8, NUMPTS=4, FILLMODE=2, this=0xb7a9101c)
    at gtkwinapi.inc:1941
#9 0x081a471f in TGTKWIDGETSET__POLYGON (DC=-1215969636, POINTS=0xbf9b22f8, NUMPTS=5, WINDING=true, this=0xb7a9101c)
    at gtkwinapi.inc:6866
#10 0x081d4391 in POLYGON (DC=-1215969636, POINTS=0xbf9b22f8, NUMPTS=4, WINDING=true) at winapi.inc:593
#11 0x081f9092 in TCANVAS__POLYGON (POINTS=0xbf9b22f8, NUMPTS=4, WINDING=true, this=0xb754db6c) at canvas.inc:699
#12 0x081f9027 in TCANVAS__POLYGON (POINTS=0xbf9b22f8, WINDING=true, STARTINDEX=0, NUMPTS=4, highPOINTS=3, this=0xb754db6c)
    at canvas.inc:690
#13 0x081f90d5 in TCANVAS__POLYGON (POINTS=0xbf9b22f8, highPOINTS=3, this=0xb754db6c) at canvas.inc:711
#14 0x080a45b9 in TSPLOT__PLOTCOMET (X=489.383545, Y=290.550934, CX=531.8172, CY=278.86142, SYMBOL=1,
    MA=6.7750625476905286, DIAM=8.2004186375974779, PIXSCALE=0.18092592592592593, this=0xb6255e5c) at cu_plot.pas:1637
#15 0x0808e5ac in TSKYCHART__DRAWCOMET (this=0xb74e971c) at cu_skychart.pas:1210
#16 0x08087e54 in TSKYCHART__REFRESH (this=0xb74e971c) at cu_skychart.pas:212
#17 0x080db6b5 in TF_CHART__REFRESH (this=0xb626601c) at pu_chart.pas:365
#18 0x080dbfc8 in TF_CHART__REFRESHTIMERTIMER (SENDER=0xb756047c, this=0xb626601c) at pu_chart.pas:465
#19 0x0824d511 in TCUSTOMTIMER__DOONTIMER (this=0xb756047c) at customtimer.pas:176
#20 0x0824d48d in TCUSTOMTIMER__TIMER (this=0xb756047c) at customtimer.pas:152
#21 0x081e9560 in GTKTIMERCB (DATA=0xb74b37fc) at gtkcallback.inc:2459
#22 0xb7f5386c in g_source_add () from /usr/lib/libglib-1.2.so.0
#23 0xb7f52731 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#24 0xb7f53239 in g_main_add_poll () from /usr/lib/libglib-1.2.so.0
#25 0xb7da9070 in gtk_main_iteration_do () from /usr/lib/libgtk-1.2.so.0
#26 0x0818d556 in TGTKWIDGETSET__APPWAITMESSAGE (this=0xb7a9101c) at gtkobject.inc:1797
#27 0x080759ff in TAPPLICATION__IDLE (WAIT=true, this=0xb7ab901c) at application.inc:280
#28 0x08076e2d in TAPPLICATION__HANDLEMESSAGE (this=0xb7ab901c) at application.inc:900
#29 0x080771a0 in RUNMESSAGE (parentfp=0xbf9b27b8) at application.inc:1016
#30 0x080770eb in TAPPLICATION__RUNLOOP (this=0xb7ab901c) at application.inc:1026
#31 0x0814f50f in TWIDGETSET__APPRUN (ALOOP=0x80770ac <TAPPLICATION__RUNLOOP>, this=0xb7a9101c) at interfacebase.inc:42
#32 0x08077098 in TAPPLICATION__RUN (this=0xb7ab901c) at application.inc:1006
#33 0x08054174 in main () at cdc.lpr:43
(gdb) quit
The program is running. Exit anyway? (y or n) y
peter****:/usr/bin$

Patrick Chevalley

06-03-07 13:34

administrator   ~0000034

I think I catched this bug last month but obviously there is still some resistance.
You probably use Debian testing or Ubuntu and there is a bug in libgdk when drawing a too small polygon to plot a comet.
I already test for null polygon but it need more, fortunately your gdb backtrace give enough useful detail.

In the mean time to start the program edit the file ~/.cartesduciel.ini locate the line ShowComet=1 and replace by ShowComet=0

Patrick Chevalley

06-03-07 21:45

administrator   ~0000036

I can reproduce and fix the problem on my Ubuntu system.
Can you try with the new version: http://www.ap-i.net/skychart/snapshot/


Fixed in revision 364:
http://svn.origo.ethz.ch/viewvc/skychart?rev=364&view=rev

Also fixed another bug when drawing the comet:
http://svn.origo.ethz.ch/viewvc/skychart?rev=365&view=rev

Issue History

Date Modified Username Field Change
06-03-07 12:26 Peter Gregory New Issue
06-03-07 12:44 Peter Gregory Note Added: 0000033
06-03-07 13:34 Patrick Chevalley Note Added: 0000034
06-03-07 13:34 Patrick Chevalley Assigned To => Patrick Chevalley
06-03-07 13:34 Patrick Chevalley Status new => assigned
06-03-07 21:45 Patrick Chevalley Status assigned => resolved
06-03-07 21:45 Patrick Chevalley Resolution open => fixed
06-03-07 21:45 Patrick Chevalley Note Added: 0000036
08-09-18 08:02 Patrick Chevalley Status resolved => closed