Re: compile in debug mode



<console>
GNU DDD 3.3.8 (i386-suse-linux-gnu), by Dorothea LUsing host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) run
[Thread debugging using libthread_db enabled]
[New Thread 1084073856 (LWP 10527)]
Detaching after fork from child process 10530.
Detaching after fork from child process 10531.

** (lt-dia:10527): WARNING **: No valid configuration files found for the XSLT plugin, not loading.

** (lt-dia:10527): WARNING **: Python: Couldn't find startup file /usr/local/share/dia/python-startup.py


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1084073856 (LWP 10527)]
0x40627fa2 in g_type_check_instance_cast () from /opt/gnome/lib/libgobject-2.0.so.0
(gdb)
</console>

<backtrace>
#8  0x08099d28 in main (argc=1, argv=0xbfffeda4) at main.c:36
/src/dia-cvs/app/main.c:36:1065:beg:0x8099d28
(gdb) frame 7
#7  0x0806c462 in app_init (argc=1, argv=0xbfffeda4) at app_procs.c:860
/src/dia-cvs/app/app_procs.c:860:23668:beg:0x806c462
(gdb) frame 6
#6 0x40041e25 in dia_object_defaults_load (filename=0x0, create_lazy=1) at stdlib.h:317
/usr/include/stdlib.h:317:10614:beg:0x40041e25
(gdb) frame 5
#5 0x414955a6 in custom_load_using_properties (obj_node=0x85a3c30, version=0, filename=0x0) at custom_object.c:1370
/src/dia-cvs/objects/custom/custom_object.c:1370:43000:beg:0x414955a6
(gdb) frame 4
#4 0x41495874 in custom_create (startpoint=0xbfffec20, user_data=0x8206930, handle1=0x74737563, handle2=0x74737563) at custom_object.c:1247
/src/dia-cvs/objects/custom/custom_object.c:1247:39557:beg:0x41495874
(gdb) frame 3
#3  0x41491fea in shape_info_realise (info=0x8206930) at shape_info.c:104
/src/dia-cvs/objects/custom/shape_info.c:104:2865:beg:0x41491fea
(gdb) frame 2
#2 0x400364d1 in new_text (string=0x8206288 "Projectdata", font=0x8205650, height=0.80000000000000004, pos=0x82062d0, color=0x80ad920, align=1953723747) at text.c:192
/src/dia-cvs/lib/text.c:192:4256:beg:0x400364d1
(gdb) frame 1
#1  0x4003700f in dia_font_ref (font=0x8205650) at font.c:316
(gdb) frame 0
#0 0x40627fa2 in g_type_check_instance_cast () from /opt/gnome/lib/libgobject-2.0.so.0
(gdb)
</backtrace>

But there is no font variable! I tried several things(echo $font, $Font ...; env | grep -ni font) , but nothing like this. There are several programms, like: font2c, fontexport, fontimport, fontinst but thats it!

hope, this makes it a bit clearer to you and we can sort this out!

cheers,
denny


Lars Clausen wrote:
On Mon, 2005-04-25 at 18:11 +0100, Denny Beyer wrote:
Hey again,

compiling in debug mode and using ddd gave a segmantation fault in fonts.c line 316:

314 DiaFont* dia_font_ref(DiaFont* font)
315 {
316     g_object_ref(G_OBJECT(font));
317     return font;
318 }

Any idea, whats wrong there / how to find out / how to fix it?

If you can show us a backtrace (bt), it will give us a better idea of
what caused this.  I'm thinking there's a bad font (as in a corrupt font
file) or a bad font name somewhere.  If you can give the contents of the
'font' variable, too, that should tell a great deal.

-Lars





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]