On 07/09/2014 12:50 AM, Samuel Thibault wrote: > tony mancill, le Tue 08 Jul 2014 22:20:01 -0700, a écrit : >> Program received signal SIGUSR1, User defined signal 1. > > SIGUSR1 is benign. Please use > > handle USR1 nostop noprint pass > > To let gdb continue the program, up to where there actually is an > illegal instruction. > > Samuel
Hi Samuel, After ignoring SIGUSR1 and SIGUSR2, I'm not sure what to make of the SIGILL, but here's the gdb output of just the SIGILL (full script attached). > Program received signal SIGILL, Illegal instruction. > 0x012ab278 in gnu.classpath.tools.gjdoc.Main.start(java.lang.String[])int ( > this=@80c8eb0, args=@8099f98) > at > ../../../../../src/libjava/classpath/tools/gnu/classpath/tools/gjdoc/Main.java:1050 > 1050 > ../../../../../src/libjava/classpath/tools/gnu/classpath/tools/gjdoc/Main.java: > No such file or directory. I saw in another thread that sometimes instruction set detection will cause this signal and to also try ignoring it the same way, but that's not the case here, since the signal isn't handled: > Program received signal SIGUSR1, User defined signal 1. > > Program received signal SIGUSR2, User defined signal 2. > > Program received signal SIGILL, Illegal instruction. > > Program terminated with signal SIGILL, Illegal instruction. > The program no longer exists. > (gdb) quit Thank you for providing guidance. Cheers, tony
$ gdb /usr/bin/javadoc GNU gdb (GDB) 7.6.2 (Debian 7.6.2-1+hurd.1) Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/bin/gjdoc-4.9...(no debugging symbols found)...done. (gdb) handle SIGUSR1 nostop noprint pass Signal Stop Print Pass to program Description SIGUSR1 No No Yes User defined signal 1 (gdb) run Starting program: /usr/bin/javadoc [New Thread 1836.5] [New Thread 1836.6] Program received signal SIGUSR2, User defined signal 2. 0x03a36a1c in mach_msg_trap () at /build/glibc-4q6TTG/glibc-2.19/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2 2 /build/glibc-4q6TTG/glibc-2.19/build-tree/hurd-i386-libc/mach/mach_msg_trap.S: No such file or directory. (gdb) handle SIGUSR2 nostop noprint pass Signal Stop Print Pass to program Description SIGUSR2 No No Yes User defined signal 2 (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /usr/bin/javadoc [New Thread 1857.11] [New Thread 1857.12] Program received signal SIGILL, Illegal instruction. 0x012ab278 in gnu.classpath.tools.gjdoc.Main.start(java.lang.String[])int ( this=@80c8eb0, args=@8099f98) at ../../../../../src/libjava/classpath/tools/gnu/classpath/tools/gjdoc/Main.java:1050 1050 ../../../../../src/libjava/classpath/tools/gnu/classpath/tools/gjdoc/Main.java: No such file or directory. (gdb) bt #0 0x012ab278 in gnu.classpath.tools.gjdoc.Main.start(java.lang.String[])int ( this=@80c8eb0, args=@8099f98) at ../../../../../src/libjava/classpath/tools/gnu/classpath/tools/gjdoc/Main.java:1050 #1 0x011d1693 in gnu.classpath.tools.gjdoc.Main.main(java.lang.String[])void ( args=@8099f98) at ../../../../../src/libjava/classpath/tools/gnu/classpath/tools/gjdoc/Main.java:870 #2 0x0201c463 in gnu::java::lang::MainThread::call_main (this=0x8141f60) at ../../../src/libjava/gnu/java/lang/natMainThread.cc:54 #3 0x0208e6af in gnu.java.lang.MainThread.run()void (this=@8141f60) at /build/gcc-4.9-Ibkhez/gcc-4.9-4.9.0/src/libjava/gnu/java/lang/MainThread.java:106 #4 0x0202d7f9 in _Jv_ThreadRun (thread=0x8141f60) at ../../../src/libjava/java/lang/natThread.cc:335 #5 0x01fe4375 in _Jv_RunMain (vm_args=0x0, klass= 0x8049980 <gnu::classpath::tools::gjdoc::Main::class$>, name=0x0, argc=1, argv=0x401fe34, is_jar=false) at ../../../src/libjava/prims.cc:1790 #6 0x01fe45ba in _Jv_RunMain ( klass=0x8049980 <gnu::classpath::tools::gjdoc::Main::class$>, name=0x0, argc=1, argv=0x401fe34, is_jar=false) at ../../../src/libjava/prims.cc:1815 #7 0x01fe45f4 in JvRunMain ( klass=0x8049980 <gnu::classpath::tools::gjdoc::Main::class$>, argc=1, argv=0x401fe34) at ../../../src/libjava/prims.cc:1821 #8 0x0804856c in ?? () #9 0x03a60a9c in __libc_start_main (main=0x8048540, argc=1, argv=0x401fe34, init=0x8048670, fini=0x80486e0, rtld_fini=0xfcc0 <_dl_fini>, stack_end=0x401fe2c) at libc-start.c:318 #10 0x08048598 in ?? () (gdb) quit
signature.asc
Description: OpenPGP digital signature