Re: compile in debug mode



On Mon, 2005-04-25 at 23:48 +0100, Denny Beyer wrote:
<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>
[...]
#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!

Are you making your own shape?

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

-Lars

-- 
Lars Clausen <lars raeder dk>




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