Re: glib2.26: bus error in gtype.c:4073 type_check_is_value_type_U()



Hi,

At Thu, 25 Nov 2010 17:01:51 -0800,
Henry Kroll wrote:
[...]
> (gdb) p	node
> $1 = (TypeNode *) 0x4039 0000 0000 0000
> 
> ^^^If you will note here, node has a very odd value when it crashes from
> clicking the mouse on it. It is normally something like (TypeNode *)
> 0x80529d8 and the program does run fine until the mouse is clicked.

I didn't test your test code but the address of your node is
non-existant on the current x86_64.  try:

	cat /proc/self/maps

on your pc to see where is mapped.

it is impossible to get bus error with un-aligned address on x86 cpu
unless you enable the check. see:

       http://en.wikipedia.org/wiki/Segmentation_fault#Bus_error

it might be good idea to check how lookup_type_node_I() works with
tinycc.

have fun.
-- 
           yashi


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