Hi, I ran the javac process completely in gdb instead of attaching to the pid:
demo@zamhurd64:/part4/git/icedtea$ gdb --args bootstrap/jdk1.6.0/bin/javac ~/test.java GNU gdb (Debian 17.2-1+b1) 17.2 Copyright (C) 2025 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later [<http://gnu.org/licenses/gpl.html>](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 "x86_64-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: [<https://www.gnu.org/software/gdb/bugs/>](https://www.gnu.org/software/gdb/bugs/) . Find the GDB manual and other documentation resources online at: [<http://www.gnu.org/software/gdb/documentation/>](http://www.gnu.org/software/gdb/documentation/) . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from bootstrap/jdk1.6.0/bin/javac... (gdb) r Starting program: /part4/git/icedtea/openjdk.build-boot/j2sdk-image/bin/javac /home/demo/test.java [bogus thread id 1 exited] [bogus thread id 2 exited] [bogus thread id 3 exited] [New Thread 6443.5] [New Thread 6443.6] Thread 4 received signal SIGTRAP, Trace/breakpoint trap. 0x000000000108732c in __GI___mach_msg_trap () at /part4/debian/glibc-2.43/build-tree/hurd-amd64-libc/mach/mach_msg_trap.S:2 ⚠️ warning: Source file is more recent than executable. 2 kernel_trap (__mach_msg_trap,-25,7) (gdb) thread apply all bt Thread 6 (Thread 6443.6): #0 0x0000000000007b21 in ?? () from /lib/ld-x86-64.so.1 #1 0x000000000000a9be in _dl_notify_new_object (mode=mode@entry=-1879048191, nsid=nsid@entry=0, l=l@entry=0x4000930) at ./elf/dl-load.c:924 #2 0x000000000000d427 in _dl_map_object_from_fd (name=name@entry=0x25745cd "librt.so.1", origname=origname@entry=0x0, fd=-1, fbp=<optimized out>, realname=<optimized out>, realname@entry=0x4000900 "/usr/lib/x86_64-gnu/librt.so.1", loader=loader@entry=0x0, l_type=<optimized out>, mode=<optimized out>, stack_endp=<optimized out>, nsid=<optimized out>) at ./elf/dl-load.c:1455 #3 0x000000000000ddd5 in _dl_map_new_object (loader=<optimized out>, name=<optimized out>, name@entry=0x25745cd "librt.so.1", type=type@entry=2, trace_mode=trace_mode@entry=0, mode=mode@entry=-1879048191, nsid=<optimized out>) at ./elf/dl-load.c:2206 #4 0x0000000000012942 in dl_open_worker_begin (a=0x2c8d880) at ./elf/dl-open.c:535 #5 0x000000000000648e in __GI__dl_catch_exception (exception=exception@entry=0x2c8d760, operate=operate@entry=0x12170 <dl_open_worker_begin>, args=args@entry=0x2c8d880) at ./elf/dl-catch.c:241 #6 0x00000000000116fe in dl_open_worker (a=a@entry=0x2c8d880) at ./elf/dl-open.c:762 #7 0x000000000000648e in __GI__dl_catch_exception (exception=exception@entry=0x2c8d8d0, operate=operate@entry=0x11680 <dl_open_worker>, args=args@entry=0x2c8d880) at ./elf/dl-catch.c:241 #8 0x0000000000011c5a in _dl_open (file=0x25745cd "librt.so.1", mode=<optimized out>, caller_dlopen=<optimized out>, nsid=-2, argc=2, argv=<optimized out>, env=<optimized out>) at ./elf/dl-open.c:900 #9 0x0000000001142950 in dlopen_doit (a=a@entry=0x2c8db10) at ./dlfcn/dlopen.c:56 #10 0x000000000000648e in __GI__dl_catch_exception (exception=exception@entry=0x2c8da50, operate=<optimized out>, args=<optimized out>) at ./elf/dl-catch.c:241 #11 0x00000000000065c5 in _dl_catch_error (objname=0x2c8dab8, errstring=0x2c8dac0, mallocedp=0x2c8dab7, operate=<optimized out>, args=<optimized out>) at ./elf/dl-catch.c:260 #12 0x0000000001142453 in _dlerror_run (operate=operate@entry=0x11428f0 <dlopen_doit>, args=args@entry=0x2c8db10) at ./dlfcn/dlerror.c:138 #13 0x0000000001142a0b in dlopen_implementation (file=<optimized out>, mode=<optimized out>, dl_caller=<optimized out>) at ./dlfcn/dlopen.c:71 #14 ___dlopen (file=<optimized out>, mode=<optimized out>) at ./dlfcn/dlopen.c:81 #15 0x00000000023ace8e in os::Linux::clock_init () at /part4/git/icedtea/openjdk-boot/hotspot/src/os/linux/vm/os_linux.cpp:1487 #16 0x00000000023b57a5 in os::init () at /part4/git/icedtea/openjdk-boot/hotspot/src/os/linux/vm/os_linux.cpp:4981 #17 0x00000000024f74eb in Threads::create_vm (args=0x2c8df70, canTryAgain=canTryAgain@entry=0x2c8debf) at /part4/git/icedtea/openjdk-boot/hotspot/src/share/vm/runtime/thread.cpp:3285 #18 0x00000000021ee275 in JNI_CreateJavaVM (vm=0x2c8df60, penv=0x2c8df68, args=<optimized out>) at /part4/git/icedtea/openjdk-boot/hotspot/src/share/vm/prims/jni.cpp:5200 #19 0x000000000104b87c in InitializeJVM (pvm=0x2c8df60, penv=0x2c8df68, ifn=<synthetic pointer>) at ../../../src/share/bin/java.c:1124 #20 JavaMain (_args=<optimized out>) at ../../../src/share/bin/java.c:362 #21 0x0000000001145a88 in entry_point (self=0x200000019010, start_routine=0x104b800 <JavaMain>, arg=0x103dac0) at ./htl/pt-create.c:74 #22 0x0000000000000000 in ?? () Thread 5 (Thread 6443.5): #0 0x00000000010a9d9b in __GI__hurd_intr_rpc_mach_msg (msg=0x1b7c890, option=3, send_size=<optimized out>, rcv_size=<optimized out>, rcv_name=9, timeout=0, notify=<optimized out>) at ./hurd/intr-msg.c:110 #1 0x0000000001364299 in __proc_mark_stop (process=process@entry=8, signo=<optimized out>, sigcode=<optimized out>) at ./build-tree/hurd-amd64-libc/hurd/RPC_proc_mark_stop.c:140 #2 0x00000000010a6b14 in suspend () at ./hurd/hurdsig.c:661 #3 0x00000000010a8eca in post_signal (ss=<optimized out>, signo=signo@entry=5, detail=<optimized out>, untraced=untraced@entry=0, reply=reply@entry=0x1b7cdf0) at ./hurd/hurdsig.c:823 #4 0x00000000010a9738 in _hurd_internal_post_signal (ss=<optimized out>, signo=5, detail=<optimized out>, reply_port=reply_port@entry=0, reply_port_type=reply_port_type@entry=17, untraced=untraced@entry=0) at ./hurd/hurdsig.c:1275 #5 0x000000000109ffe9 in _S_catch_exception_raise (port=<optimized out>, thread=16, task=40, exception=<optimized out>, code=<optimized out>, subcode=<optimized out>) at ./hurd/catch-exc.c:83 #6 0x000000000134037a in _Xexception_raise (InHeadP=<optimized out>, OutHeadP=0x1b7cf30) at ./build-tree/hurd-amd64-libc/mach/m--Type <RET> for more, q to quit, c to continue without paging--c ach/exc_server.c:158 #7 _Xexception_raise (InHeadP=<optimized out>, OutHeadP=0x1b7cf30) at ./build-tree/hurd-amd64-libc/mach/mach/exc_server.c:46 #8 0x00000000013403f5 in _S_exc_server (InHeadP=InHeadP@entry=0x1b7df40, OutHeadP=OutHeadP@entry=0x1b7cf30) at ./build-tree/hurd-amd64-libc/mach/mach/exc_server.c:212 #9 0x00000000010cc562 in msgport_server (inp=0x1b7df40, outp=0x1b7cf30) at ./hurd/msgportdemux.c:32 #10 0x0000000001087f02 in __mach_msg_server_timeout (demux=demux@entry=0x10cc550 <msgport_server>, max_size=4096, rcv_name=21, option=option@entry=0, timeout=timeout@entry=0) at ./mach/msgserver.c:104 #11 0x000000000108802a in __mach_msg_server (demux=demux@entry=0x10cc550 <msgport_server>, max_size=<optimized out>, rcv_name=<optimized out>) at ./mach/msgserver.c:191 #12 0x00000000010cc5d2 in _hurd_msgport_receive (arg=<optimized out>) at ./hurd/msgportdemux.c:50 #13 0x0000000001145a88 in entry_point (self=0x200000000f10, start_routine=0x10cc590 <_hurd_msgport_receive>, arg=0x0) at ./htl/pt-create.c:74 #14 0x0000000000000000 in ?? () Thread 4 (Thread 6443.4): #0 0x000000000108732c in __GI___mach_msg_trap () at /part4/debian/glibc-2.43/build-tree/hurd-amd64-libc/mach/mach_msg_trap.S:2 #1 0x0000000001087a0d in __GI___mach_msg (msg=msg@entry=0x103d8e0, option=option@entry=2, send_size=send_size@entry=0, rcv_size=rcv_size@entry=32, rcv_name=29, timeout=timeout@entry=0, notify=0) at ./mach/msg.c:111 #2 0x0000000001144106 in __GI___pthread_block (thread=thread@entry=0x200000000010) at ../sysdeps/mach/htl/pt-block.c:46 #3 0x00000000011454ab in __pthread_cond_timedwait_internal (cond=cond@entry=0x2000000190b0, mutex=mutex@entry=0x200000019090, clockid=clockid@entry=0, abstime=abstime@entry=0x0) at ../sysdeps/htl/pt-cond-timedwait.c:168 #4 0x00000000011458d5 in __GI___pthread_cond_clockwait (cond=cond@entry=0x2000000190b0, mutex=mutex@entry=0x200000019090, clockid=clockid@entry=0, abstime=abstime@entry=0x0) at ../sysdeps/htl/pt-cond-timedwait.c:51 #5 0x0000000001147b49 in __pthread_join_common (thread=<optimized out>, status=status@entry=0x103da28, try=try@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0) at ./htl/pt-join.c:55 #6 0x0000000001147c7c in __GI___pthread_join (thread=<optimized out>, status=status@entry=0x103da28) at ./htl/pt-join.c:99 #7 0x000000000105258d in ContinueInNewThread0 (continuation=continuation@entry=0x104b800 <JavaMain>, stack_size=1048576, args=0x103dac0) at ../../../src/solaris/bin/java_md_solinux.c:1060 #8 0x000000000104d149 in ContinueInNewThread (ifn=ifn@entry=0x0, threadStackSize=<optimized out>, threadStackSize@entry=0, argc=1, argc@entry=0, argv=argv@entry=0x0, mode=mode@entry=0, what=what@entry=0x0, ret=0) at ../../../src/share/bin/java.c:1870 #9 0x000000000105263c in JVMInit (ifn=0x0, ifn@entry=0x103dba0, threadStackSize=0, argc=0, argv=0x0, mode=0, mode@entry=1, what=0x0, what@entry=0x200000005070 "com.sun.tools.javac.Main", ret=<optimized out>) at ../../../src/solaris/bin/java_md_solinux.c:1096 #10 0x000000000104df03 in JLI_Launch (argc=<optimized out>, argv=<optimized out>, jargc=jargc@entry=2, jargv=jargv@entry=0x3030 <const_jargs>, appclassc=appclassc@entry=2, appclassv=appclassv@entry=0x3020 <const_appclasspath>, fullversion=0x18f1 "1.7.0_321-b01", dotversion=0x18ed "1.7", pname=0x18e8 "java", lname=0x18e8 "java", javaargs=1 '\001', cpwildcard=1 '\001', javaw=0 '\000', ergo=1) at ../../../src/share/bin/java.c:299 #11 0x00000000000017e3 in main (argc=<optimized out>, argv=<optimized out>) at ../../src/share/bin/main.c:125 (gdb) (gdb) c Continuing. Thread 4 received signal SIGSEGV, Segmentation fault. 0x000000000108732c in __GI___mach_msg_trap () at /part4/debian/glibc-2.43/build-tree/hurd-amd64-libc/mach/mach_msg_trap.S:2 2 kernel_trap (__mach_msg_trap,-25,7) (gdb) q A debugging session is active. Inferior 1 [bogus thread id 0] will be killed. Quit anyway? (y or n) y demo@zamhurd64:/part4/git/icedtea$ Damien
