This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Aborted


The garbage collector uses signals (often SIGUSR1 and SIGUSR2) to suspend
threads during garbage collection.  You can use GDB to debug Java or other
programs that use GC with the following command:

	handle SIGUSR1 nostop noprint
	handle SIGUSR2 nostop noprint

On Mon, 11 Dec 2000 06:55:24 Torsten Rüger wrote:
> Hi,
> does anyone know what is happening here, or rather why?
> 
> Torsten
> 
> gcc version 2.97 20001208 (experimental)
> 
> Program received signal SIG32, Real-time event 32.
> 0x4045458b in __sigsuspend (set=0xbffff72c) at
> ../sysdeps/unix/sysv/linux/sigsuspend.c:48
> 48 ../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory.
> (gdb) where
> #0  0x4045458b in __sigsuspend (set=0xbffff72c) at
> ../sysdeps/unix/sysv/linux/sigsuspend.c:48
> #1  0x4041a662 in __pthread_create_2_1 (thread=0x85dbf8c,
> attr=0xbffff864, start_routine=0x404015a0 <GC_start_routine>,
> arg=0x859afc0) at restart.h:32
> #2  0x4041aeff in __pthread_create_2_0 (thread=0x85dbf8c,
> attr=0xbffff8b0, start_routine=0x404015a0 <GC_start_routine>,
> arg=0x859afc0) at pthread.c:447
> #3  0x40401733 in GC_pthread_create (new_thread=0x85dbf8c,
> attr=0xbffff920, start_routine=0x40274710 <really_start(void *)>,
> arg=0x85afff8)
>     at ../../../libgcj/boehm-gc/linux_threads.c:681
> #4  0x40274861 in _Jv_ThreadStart (thread=0x8580e70, data=0x85dbf88,
> meth=0x4016f0c0 <java::lang::Thread::run_(java::lang::Object *)>)
>     at ../../../libgcj/libjava/posix-threads.cc:394
> #5  0x4016f37f in java::lang::Thread::start (this=0x8580e70) at
> ../../../libgcj/libjava/java/lang/natThread.cc:294
> #6  0x4014ef22 in JvRunMain (klass=0x83a8ac0, argc=7, argv=0xbffffa54)
> at ../../../libgcj/libjava/prims.cc:889
> #7  0x82d3393 in main (argc=7, argv=0xbffffa54) at
> /tmp/ccnGdGOgmain.i:11
> #8  0x4044e1eb in __libc_start_main (main=0x82d3370 <main>, argc=7,
> argv=0xbffffa54, init=0x805bd4c <_init>, fini=0x82d33fc <_fini>,
> rtld_fini=0x4000a610 <_dl_fini>,
>     stack_end=0xbffffa4c) at ../sysdeps/generic/libc-start.c:90
> (gdb) info threads
> (gdb)
> (gdb)
> 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]