This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Seg fault in libgcj!_Jv_RegisterClassHookDefault()
- From: T Ziomek <t_ziomek at yahoo dot com>
- To: java at gcc dot gnu dot org
- Date: Wed, 18 Aug 2004 00:45:04 -0700 (PDT)
- Subject: Re: Seg fault in libgcj!_Jv_RegisterClassHookDefault()
--- Bryce McKinlay <mckinlay@redhat.com> wrote:
>
> T Ziomek wrote:
>
> >Program received signal SIGSEGV, Segmentation fault.
> >0x102caae7 in libgcj!_Jv_RegisterClassHookDefault ()
> > from /tmp/thisiscool-gcc/gcc-3.4/i686-pc-mingw32/lib/libgcj.dll
> >(gdb)
> >
> >
>
> Any chance you could get line numbers and a backtrace? That might make
> it easier to figure out what the problem is.
Mrmmm, yeah it sure would; sorry I didn't include that.
Or not...I'm not sure what I'm doing wrong, but I can't get a meaningful
backtrace. I've tried compiling with -g, -g0, -g2, -ggdb and -ggdb2 (one at
a time) and no matter what, I get the following:
% gdb HaloBrowser
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) break 'HaloBrowser.main(java.lang.String[])'
Breakpoint 1 at 0x401338: file HaloBrowser.java, line 21.
(gdb) r
Starting program: /tmp/HaloBrowser/HaloBrowser.exe
Program received signal SIGSEGV, Segmentation fault.
0x102caae7 in libgcj!_Jv_RegisterClassHookDefault ()
from /tmp/thisiscool-gcc/gcc-3.4/i686-pc-mingw32/lib/libgcj.dll
(gdb) where
#0 0x102caae7 in libgcj!_Jv_RegisterClassHookDefault ()
from /tmp/thisiscool-gcc/gcc-3.4/i686-pc-mingw32/lib/libgcj.dll
#1 0x77f82528 in ?? ()
#2 0xffffffff in ?? ()
#3 0x0022fe10 in ?? ()
#4 0x7c5861da in KERNEL32!AddAtomA ()
from /cygdrive/c/WINNT/system32/KERNEL32.DLL
#5 0x00230000 in ?? ()
#6 0x40000060 in ?? ()
#7 0x004716c2 in _Utf5 ()
#8 0x00000045 in ?? ()
#9 0x0022fef0 in ?? ()
(gdb) list
1 c:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc6Bbaaa.i: No such file or
directory
.
in c:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc6Bbaaa.i
(gdb) quit
The program is running. Exit anyway? (y or n) y
%
So a breakpoint set at the first line of code doesn't get hit, and the trace-
back doesn't look helpful (though that addr of $FFFFFFFF at #2 seems odd...).
I'm thinking this crash is happening early in the code's startup, before main()
is entered... FWIW, I'm using the following crt* files:
thisiscool-gcc/gcc-3.4/i686-pc-mingw32/lib/crt2.o
thisiscool-gcc/gcc-3.4/lib/gcc/i686-pc-mingw32/3.4.0/crtbegin.o
thisiscool-gcc/gcc-3.4/lib/gcc/i686-pc-mingw32/3.4.0/crtend.o
Tom
BTW, if I try building with -save-temps, the link fails with:
HaloBrowsermain.o(.text+0x45): In function `main':
N:/tmp/HaloBrowser/HaloBrowsermain.i:11: undefined reference to
`HaloBrowser::class$'
so I'm not sure I'll be able to get 'list' to work...
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail