Code review comment for ~vpa1977/ubuntu/+source/openjdk-20:03_security_release_debug

Revision history for this message
Vladimir Petko (vpa1977) wrote :

Debug without symbols:
--------------------cut-----------------------
gdb java
GNU gdb (Ubuntu 13.1-2ubuntu2) 13.1
Copyright (C) 2023 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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from java...

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n])
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
(No debugging symbols found in java)
(gdb) break JNI_CreateJavaVM
Function "JNI_CreateJavaVM" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (JNI_CreateJavaVM) pending.
(gdb) run -cp . infinite
Starting program: /usr/bin/java -cp . infinite
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7bff6c0 (LWP 7644)]
[Switching to Thread 0x7ffff7bff6c0 (LWP 7644)]

Thread 2 "java" hit Breakpoint 1, 0x00007ffff6f8cdd0 in JNI_CreateJavaVM ()
   from /usr/lib/jvm/java-20-openjdk-amd64/lib/server/libjvm.so
(gdb) where
#0 0x00007ffff6f8cdd0 in JNI_CreateJavaVM ()
   from /usr/lib/jvm/java-20-openjdk-amd64/lib/server/libjvm.so
#1 0x00007ffff7fb2d93 in JavaMain ()
   from /usr/lib/jvm/java-20-openjdk-amd64/bin/../lib/libjli.so
#2 0x00007ffff7fb709d in ThreadJavaMain ()
   from /usr/lib/jvm/java-20-openjdk-amd64/bin/../lib/libjli.so
#3 0x00007ffff7c8f18a in start_thread (arg=<optimized out>)
    at ./nptl/pthread_create.c:444
#4 0x00007ffff7d1dbd0 in clone3 ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
(gdb) info local
No symbol table info available.
(gdb)
------------------cut-------------------------------------

« Back to merge proposal