This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: SIGABRT?
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Adam Megacz <gcj at lists dot megacz dot com>
- Cc: java at gcc dot gnu dot org
- Date: Wed, 29 May 2002 15:30:09 +1200
- Subject: Re: SIGABRT?
- References: <86bsaz3c1i.fsf@megacz.com>
Well its crashing inside glibc. Check that the arguments being passed to
readdir_r are correct? Hmm... the example in the glibc manual uses
offsetof() when calculating the buffer size but we dont? Is name_max the
same as NAME_MAX?
regards
Bryce.
Adam Megacz wrote:
>Huh? Why would I get SIGABRT in java.io.File.performList()?
>
>This is the 3.1 branch, btw, cvs-update'd an hour ago and a clean
>build (of both gcj and my code).
>
> - a
>
>Program received signal SIGABRT, Aborted.
>0x0825fae5 in __getdents ()
>Current language: auto; currently c++
>(gdb) bt
>#0 0x0825fae5 in __getdents ()
>#1 0x0825f859 in readdir_r ()
>#2 0x081faa93 in java::io::File::performList(java::io::FilenameFilter*, java::io::FileFilter*, java::lang::Class*) (this=0x8760b80, filter=0x0, fileFilter=0x0, result_type=0x83a8540)
> at java/io/natFile.cc:150
>#3 0x081940a5 in java.io.File.list() (this=0x8760b80) at ../../../gcc/libjava/java/io/File.java:261
>#4 0x080f9bcc in org.xwt.Resources.loadDirectory(java.io.File, java.lang.String) (dir=0x8760b80,
> prefix=0x873f780) at /home/megacz/xwt/src/org/xwt/Resources.java:53
>#5 0x080f9f92 in org.xwt.Resources.loadDirectory(java.io.File, java.lang.String) (dir=0x8760e58,
> prefix=0x873f780) at /home/megacz/xwt/src/org/xwt/Resources.java:72
>#6 0x080f9f92 in org.xwt.Resources.loadDirectory(java.io.File, java.lang.String) (dir=0x8760ea8,
> prefix=0x873f780) at /home/megacz/xwt/src/org/xwt/Resources.java:72
>#7 0x080f9ae8 in org.xwt.Resources.loadDirectory(java.io.File) (dir=0xd0)
> at /home/megacz/xwt/src/org/xwt/Resources.java:50
>#8 0x080f1a4c in org.xwt.Main.main(java.lang.String[]) (args=0x8760b80)
> at /home/megacz/xwt/src/org/xwt/Main.java:113
>#9 0x081fa6ab in gnu::gcj::runtime::FirstThread::call_main() (this=0x84d3fc0)
> at ../../../gcc/libjava/gnu/gcj/runtime/natFirstThread.cc:46
>#10 0x0817f11e in _Jv_ThreadRun(java::lang::Thread*) (thread=0x8394710)
> at ../../../gcc/libjava/java/lang/natThread.cc:285
>#11 0x0816a6ea in _Jv_RunMain(java::lang::Class*, char const*, int, char const**, bool) (
> klass=0x8394ba0, name=0x0, argc=139280320, argv=0xbffff4f4, is_jar=false)
> at ../../../gcc/libjava/prims.cc:1010
>#12 0x0816a7ff in JvRunMain (klass=0xd0, argc=208, argv=0xd0) at ../../../gcc/libjava/prims.cc:1020
>#13 0x08048224 in main ()
>
>