SEGV

Boehm, Hans hans_boehm@hp.com
Fri Sep 21 14:04:00 GMT 2001


> Starting program: /home/joze/test
>> Breakpoint 1, GC_gcj_malloc (lb=34, 
> ptr_to_struct_containing_descr=0x8144e74) at 
> ../../../gcc/boehm-gc/gcj_mlc.c:117
> 117 if( EXPECT(SMALL_OBJ(lb), 1) ) {
> (gdb) n
> 119 lw = GC_size_map[lb];
> (gdb) n
> 123 opp = &(GC_gcjobjfreelist[lw]);
> (gdb) p opp
> 1ドル = (ptr_t *) 0x0
> (gdb) p lw
> 2ドル = 10
> (gdb) p
> 3ドル = 10
> </gdb>
>>> here again a NULL pointer is dereferenced.
>This looks insconsistent to me. Since lw is 10, I find it hard to believe
that
&(GC_gcjobjfreelist[lw]) is 0. Probably gdb is not qute telling the truth
here. What's GC_gcjobjfreelist?
What platform is this on? If I had to make a wild guess, I'd say that
somehow some of the Java initialization/class registration code is not
running correctly or soon enough. This changed recently (the jcr section
stuff) and was for a while broken on some platforms.
I'd be a lot more confident that my wild guess is correct if
GC_gcjobjfreelist is 0.
Hans
 


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /