Re: compile in debug mode
- From: Denny Beyer <denny esru strath ac uk>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Re: compile in debug mode
- Date: Tue, 26 Apr 2005 10:29:53 +0100
Lars Clausen wrote:
[ ... ]
Are you making your own shape?
Yes, but in another version, and this I can compile! were i work on now
is cvs only!
To see the font, you need to be in the stack frame that contains the
font variable, in this case #1. You always start at #0, so after
bt
do
up 1
then
p *font
Ok, i did so:
Program received signal SIGSEGV, Segmentation fault.
0x40627fa2 in g_type_check_instance_cast () from
/opt/gnome/lib/libgobject-2.0.so.0
(gdb) bt
#0 0x40627fa2 in g_type_check_instance_cast () from
/opt/gnome/lib/libgobject-2.0.so.0
#1 0x4003700f in dia_font_ref (font=0x82058e8) at font.c:316
#2 0x400364d1 in new_text (string=0x81e7de8 "Projectdata",
font=0x82058e8, height=0.80000000000000004, pos=0x8206230,
color=0x80ad920, align=1953723747) at text.c:192
#3 0x41491fea in shape_info_realise (info=0x82069d8) at shape_info.c:104
#4 0x41495874 in custom_create (startpoint=0xbfffec20,
user_data=0x82069d8, handle1=0x74737563, handle2=0x74737563) at
custom_object.c:1247
#5 0x414955a6 in custom_load_using_properties (obj_node=0x8613498,
version=0, filename=0x0) at custom_object.c:1370
#6 0x40041e25 in dia_object_defaults_load (filename=0x0, create_lazy=1)
at stdlib.h:317
#7 0x0806c462 in app_init (argc=1, argv=0xbfffeda4) at app_procs.c:860
#8 0x08099d28 in main (argc=1, argv=0xbfffeda4) at main.c:36
(gdb) up 1
#1 0x4003700f in dia_font_ref (font=0x82058e8) at font.c:316
.../src/dia-cvs/lib/font.c:316:9155:beg:0x4003700f
(gdb) p *font
$1 = {parent_instance = {g_type_instance = {g_class = 0x74737563},
ref_count = 1664773487, qdata = 0x46666e6f}, pfd = 0x4e656c69,
legacy_name = 0x656d61 <Address 0x656d61 out of bounds>}
-Lars
Thanks a lot Lars, that you take your time to sort this out!
I really appreciate this!
denny
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]