Activity log for bug #2016739

Date Who What changed Old value New value Message
2023-04-17 20:47:16 Vladimir Petko bug added bug
2023-04-17 21:08:50 Vladimir Petko bug task added openjdk-17 (Ubuntu)
2023-04-17 21:08:59 Vladimir Petko bug task added openjdk-lts (Ubuntu)
2023-04-28 08:19:03 Vladimir Petko merge proposal linked https://code.launchpad.net/~vpa1977/ubuntu/+source/openjdk-17/+git/openjdk-17/+merge/442069
2023-04-28 09:07:52 Vladimir Petko description When trying to debug openjdk-20 following error occurs: -------------------------cut------------------------------------ gdb /usr/lib/jvm/java-20-openjdk-amd64/bin/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 /usr/lib/jvm/java-20-openjdk-amd64/bin/java... Reading symbols from /usr/lib/debug/.build-id/d1/6b7825e5ce53f77f4e4010b488bd3cd430ab41.debug... (No debugging symbols found in /usr/lib/debug/.build-id/d1/6b7825e5ce53f77f4e4010b488bd3cd430ab41.debug) --------------------------------------------------------------------- trying to use .debuginfo symbols: ----------------------------cut---------------------------------------------- bsp@lunar:~$ gdb /usr/lib/jvm/java-20-openjdk-amd64/bin/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 /usr/lib/jvm/java-20-openjdk-amd64/bin/java... warning: the debug information found in "/usr/lib/debug//usr/lib/jvm/java-20-openjdk-amd64/bin/java.debuginfo" does not match "/usr/lib/jvm/java-20-openjdk-amd64/bin/java" (CRC mismatch). ---------------------------------------------------------------------- [Impact] It is impossible to find openjdk-17 debug symbols - they are other empty or corrupted. This is a regression over previous package version 17.0.6+10-1ubuntu2 making impossible to debug openjdk-17 issues. The reason of the regression: missed testing. - d/rules patches build-id using too broad wildcard and corrupts the debuginfo checksum - dh_strip copies out debug symbol sections (which are empty due to native debug symbols = external). dh_strip also strips public symbols, which are necessary for native memory tracking LP: #2012326. The action implemented in dh_strip are unnecessary at this stage. Proposed change: - repack symbols in build-id format in d/rules script - disable dh_strip (this prevents copying of debug sections and also symbol stripping) [Test Plan] - validate that openjdk-17 can be debugged with gdb after installing openjdk-17-jdk and openjdk-17-dbg - validate that native memory tracking works - validate that the installed size of openjdk-17 does not exceed that of the temurin distribution. [ Where problems could occur ] This covers the edge cases not in the main test plan: - empty directories left in the debug symbols due to repack - debuginfo files left bloating the debug package Original bug report: When trying to debug openjdk-20 following error occurs: -------------------------cut------------------------------------  gdb /usr/lib/jvm/java-20-openjdk-amd64/bin/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 /usr/lib/jvm/java-20-openjdk-amd64/bin/java... Reading symbols from /usr/lib/debug/.build-id/d1/6b7825e5ce53f77f4e4010b488bd3cd430ab41.debug... (No debugging symbols found in /usr/lib/debug/.build-id/d1/6b7825e5ce53f77f4e4010b488bd3cd430ab41.debug) --------------------------------------------------------------------- trying to use .debuginfo symbols: ----------------------------cut---------------------------------------------- bsp@lunar:~$ gdb /usr/lib/jvm/java-20-openjdk-amd64/bin/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 /usr/lib/jvm/java-20-openjdk-amd64/bin/java... warning: the debug information found in "/usr/lib/debug//usr/lib/jvm/java-20-openjdk-amd64/bin/java.debuginfo" does not match "/usr/lib/jvm/java-20-openjdk-amd64/bin/java" (CRC mismatch). ----------------------------------------------------------------------
2023-04-28 09:08:46 Vladimir Petko description [Impact] It is impossible to find openjdk-17 debug symbols - they are other empty or corrupted. This is a regression over previous package version 17.0.6+10-1ubuntu2 making impossible to debug openjdk-17 issues. The reason of the regression: missed testing. - d/rules patches build-id using too broad wildcard and corrupts the debuginfo checksum - dh_strip copies out debug symbol sections (which are empty due to native debug symbols = external). dh_strip also strips public symbols, which are necessary for native memory tracking LP: #2012326. The action implemented in dh_strip are unnecessary at this stage. Proposed change: - repack symbols in build-id format in d/rules script - disable dh_strip (this prevents copying of debug sections and also symbol stripping) [Test Plan] - validate that openjdk-17 can be debugged with gdb after installing openjdk-17-jdk and openjdk-17-dbg - validate that native memory tracking works - validate that the installed size of openjdk-17 does not exceed that of the temurin distribution. [ Where problems could occur ] This covers the edge cases not in the main test plan: - empty directories left in the debug symbols due to repack - debuginfo files left bloating the debug package Original bug report: When trying to debug openjdk-20 following error occurs: -------------------------cut------------------------------------  gdb /usr/lib/jvm/java-20-openjdk-amd64/bin/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 /usr/lib/jvm/java-20-openjdk-amd64/bin/java... Reading symbols from /usr/lib/debug/.build-id/d1/6b7825e5ce53f77f4e4010b488bd3cd430ab41.debug... (No debugging symbols found in /usr/lib/debug/.build-id/d1/6b7825e5ce53f77f4e4010b488bd3cd430ab41.debug) --------------------------------------------------------------------- trying to use .debuginfo symbols: ----------------------------cut---------------------------------------------- bsp@lunar:~$ gdb /usr/lib/jvm/java-20-openjdk-amd64/bin/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 /usr/lib/jvm/java-20-openjdk-amd64/bin/java... warning: the debug information found in "/usr/lib/debug//usr/lib/jvm/java-20-openjdk-amd64/bin/java.debuginfo" does not match "/usr/lib/jvm/java-20-openjdk-amd64/bin/java" (CRC mismatch). ---------------------------------------------------------------------- [Impact] It is impossible to find openjdk-17 debug symbols - they are other empty or corrupted. This is a regression over previous package version 17.0.6+10-1ubuntu2 making impossible to debug openjdk-17 issues. The reason of the regression: missed testing. - d/rules patches build-id using too broad wildcard and corrupts the debuginfo checksum - dh_strip copies out debug symbol sections (which are empty due to native debug symbols = external). dh_strip also strips public symbols, which are necessary for native memory tracking LP: #2012326. The action implemented in dh_strip are unnecessary at this stage. Proposed change:  - repack symbols in build-id format in d/rules script  - disable dh_strip (this prevents copying of debug sections and also symbol stripping) [Test Plan] - validate that openjdk-17 can be debugged with gdb after installing openjdk-17-jdk and openjdk-17-dbg - validate that native memory tracking works - validate that the installed size of openjdk-17 does not exceed that of the temurin distribution. [ Where problems could occur ] This covers the edge cases not in the main test plan:  - empty directories left in the debug symbols due to repack  - debuginfo files left bloating the debug package [ Other Info ] Disabling dh_strip also addresses LP: #2012326 Original bug report: When trying to debug openjdk-20 following error occurs: -------------------------cut------------------------------------  gdb /usr/lib/jvm/java-20-openjdk-amd64/bin/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 /usr/lib/jvm/java-20-openjdk-amd64/bin/java... Reading symbols from /usr/lib/debug/.build-id/d1/6b7825e5ce53f77f4e4010b488bd3cd430ab41.debug... (No debugging symbols found in /usr/lib/debug/.build-id/d1/6b7825e5ce53f77f4e4010b488bd3cd430ab41.debug) --------------------------------------------------------------------- trying to use .debuginfo symbols: ----------------------------cut---------------------------------------------- bsp@lunar:~$ gdb /usr/lib/jvm/java-20-openjdk-amd64/bin/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 /usr/lib/jvm/java-20-openjdk-amd64/bin/java... warning: the debug information found in "/usr/lib/debug//usr/lib/jvm/java-20-openjdk-amd64/bin/java.debuginfo" does not match "/usr/lib/jvm/java-20-openjdk-amd64/bin/java" (CRC mismatch). ----------------------------------------------------------------------
2023-04-28 09:08:56 Vladimir Petko tags regression-proposed
2023-04-28 10:28:22 Vladimir Petko merge proposal linked https://code.launchpad.net/~vpa1977/ubuntu/+source/openjdk-lts/+git/openjdk-lts/+merge/442081
2023-05-02 14:07:03 Vladimir Petko merge proposal linked https://code.launchpad.net/~vpa1977/ubuntu/+source/openjdk-20/+git/openjdk-20/+merge/442098
2023-05-16 13:22:18 Launchpad Janitor openjdk-lts (Ubuntu): status New Fix Released
2023-05-16 13:22:18 Launchpad Janitor cve linked 2023-21930
2023-05-16 13:22:18 Launchpad Janitor cve linked 2023-21937
2023-05-16 13:22:18 Launchpad Janitor cve linked 2023-21938
2023-05-16 13:22:18 Launchpad Janitor cve linked 2023-21939
2023-05-16 13:22:18 Launchpad Janitor cve linked 2023-21954
2023-05-16 13:22:18 Launchpad Janitor cve linked 2023-21967
2023-05-16 13:22:18 Launchpad Janitor cve linked 2023-21968
2023-05-16 13:22:27 Launchpad Janitor openjdk-17 (Ubuntu): status New Fix Released
2023-05-16 13:22:34 Launchpad Janitor openjdk-20 (Ubuntu): status New Fix Released