Your message dated Sat, 13 May 2023 12:31:54 +0000 with message-id <[email protected]> and subject line Bug#1034611: fixed in gdb 13.1-3 has caused the Debian Bug report #1034611, regarding arm64: thread.c:85: Assertion `current_thread_ != nullptr' to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 1034611: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034611 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: gdb Version: 13.1-2 Severity: important Dear Maintainer, On my bookworm install (in a Parallels VM), any attempt to debug a program results in the error: thread.c:85: internal-error: inferior_thread: Assertion `current_thread_ != nullptr' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. I downloaded v13.1 source, and built it with "-g -O0", and here is the backtrace I get when running a simple hello world: ----- Backtrace ----- 0xaaaacee2ff5b gdb_internal_backtrace_1 /home/asahasra/code/gdb-13.1/gdb/bt-utils.c:122 0xaaaacee2ff5b _Z22gdb_internal_backtracev /home/asahasra/code/gdb-13.1/gdb/bt-utils.c:168 0xaaaacf1802ef internal_vproblem /home/asahasra/code/gdb-13.1/gdb/utils.c:396 0xaaaacf180553 _Z15internal_verrorPKciS0_St9__va_list /home/asahasra/code/gdb-13.1/gdb/utils.c:476 0xaaaacf3f33e3 _Z18internal_error_locPKciS0_z /home/asahasra/code/gdb-13.1/gdbsupport/errors.cc:58 0xaaaacf13a527 _Z15inferior_threadv /home/asahasra/code/gdb-13.1/gdb/thread.c:85 0xaaaacf13b0ff _Z15inferior_threadv /home/asahasra/code/gdb-13.1/gdb/thread.c:84 0xaaaacf085ddb _Z20get_current_regcachev /home/asahasra/code/gdb-13.1/gdb/regcache.c:428 0xaaaaced7e8f3 aarch64_remove_non_address_bits /home/asahasra/code/gdb-13.1/gdb/aarch64-linux-tdep.c:2002 0xaaaacf135767 memory_xfer_partial /home/asahasra/code/gdb-13.1/gdb/target.c:1620 0xaaaacf135767 _Z19target_xfer_partialP10target_ops13target_objectPKcPhPKhmmPm /home/asahasra/code/gdb-13.1/gdb/target.c:1684 0xaaaacf135c77 target_read_partial /home/asahasra/code/gdb-13.1/gdb/target.c:1937 0xaaaacf135c77 _Z11target_readP10target_ops13target_objectPKcPhml /home/asahasra/code/gdb-13.1/gdb/target.c:1977 0xaaaacf135d27 _Z18target_read_memorymPhl /home/asahasra/code/gdb-13.1/gdb/target.c:1773 0xaaaacf02fb77 ps_xfer_memory /home/asahasra/code/gdb-13.1/gdb/proc-service.c:90 0xffffa8085387 _td_fetch_value ./nptl_db/fetch-value.c:115 0xffffa808230f td_ta_map_lwp2thr ./nptl_db/td_ta_map_lwp2thr.c:194 0xaaaacefbfb53 thread_from_lwp /home/asahasra/code/gdb-13.1/gdb/linux-thread-db.c:413 0xaaaacefc1107 _ZN16thread_db_target4waitE6ptid_tP17target_waitstatus10enum_flagsI16target_wait_flagE /home/asahasra/code/gdb-13.1/gdb/linux-thread-db.c:1420 0xaaaacf137d5f _Z11target_wait6ptid_tP17target_waitstatus10enum_flagsI16target_wait_flagE /home/asahasra/code/gdb-13.1/gdb/target.c:2579 0xaaaacef830d3 do_target_wait_1 /home/asahasra/code/gdb-13.1/gdb/infrun.c:3736 0xaaaacef93197 operator() /home/asahasra/code/gdb-13.1/gdb/infrun.c:3795 0xaaaacef93197 do_target_wait /home/asahasra/code/gdb-13.1/gdb/infrun.c:3814 0xaaaacef93197 _Z20fetch_inferior_eventv /home/asahasra/code/gdb-13.1/gdb/infrun.c:4172 0xaaaacf3f3863 gdb_wait_for_event /home/asahasra/code/gdb-13.1/gdbsupport/event-loop.cc:716 0xaaaacf3f4357 _Z16gdb_do_one_eventi /home/asahasra/code/gdb-13.1/gdbsupport/event-loop.cc:217 0xaaaacefd1e8f start_event_loop /home/asahasra/code/gdb-13.1/gdb/main.c:411 0xaaaacefd1e8f captured_command_loop /home/asahasra/code/gdb-13.1/gdb/main.c:471 0xaaaacefd3893 captured_main /home/asahasra/code/gdb-13.1/gdb/main.c:1330 0xaaaacefd3893 _Z8gdb_mainP18captured_main_args /home/asahasra/code/gdb-13.1/gdb/main.c:1345 0xaaaaced758f3 main /home/asahasra/code/gdb-13.1/gdb/gdb.c:32 --------------------- I enabled thread debugging in thread.c and before the assertion, this is what I see: Starting program: /home/asahasra/code/hello/hello [threads] add_thread_silent: add thread to inferior 1, ptid 1023755.0.0, target native [threads] new_thread: creating a new thread object, inferior 1, ptid 1023755.0.0 [threads] switch_to_thread_no_regs: thread = 1023755.0.0 [threads] set_running_thread: thread: 1023755.1023755.0, running? 1 (started) [threads] switch_to_thread_no_regs: thread = 1023755.1023755.0 [threads] switch_to_thread_no_regs: thread = 1023755.1023755.0 [threads] switch_to_no_thread: thread = NONE [threads] switch_to_thread_no_regs: thread = 1023755.1023755.0 [threads] switch_to_no_thread: thread = NONE [threads] switch_to_thread_no_regs: thread = 1023755.1023755.0 [threads] switch_to_no_thread: thread = NONE The above two statements repeat many times before the assert hits. Lastly, I tried two other tags: gdb-12.1-release - this seems to work fine gdb-13-branchpoint - this fails That hopefully helps narrow down which commit broke this. -- System Information: Debian Release: 12.0 APT prefers testing-security APT policy: (500, 'testing-security'), (500, 'testing') Architecture: arm64 (aarch64) Foreign Architectures: amd64 Kernel: Linux 6.1.0-7-arm64 (SMP w/6 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages gdb depends on: ii libbabeltrace1 1.5.11-1+b2 ii libc6 2.36-9 ii libdebuginfod1 0.188-2.1 ii libexpat1 2.5.0-1 ii libgcc-s1 12.2.0-14 ii libgmp10 2:6.2.1+dfsg1-1.1 ii liblzma5 5.4.1-0.2 ii libmpfr6 4.2.0-1 ii libncursesw6 6.4-2 ii libpython3.11 3.11.2-6 ii libreadline8 8.2-1.3 ii libsource-highlight4v5 3.1.9-4.2+b3 ii libstdc++6 12.2.0-14 ii libtinfo6 6.4-2 ii libxxhash0 0.8.1-1 ii libzstd1 1.5.4+dfsg2-5 ii zlib1g 1:1.2.13.dfsg-1 Versions of packages gdb recommends: ii libc6-dbg [libc-dbg] 2.36-9 Versions of packages gdb suggests: pn gdb-doc <none> pn gdbserver <none> -- no debconf information
--- End Message ---
--- Begin Message ---Source: gdb Source-Version: 13.1-3 Done: Héctor Orón Martínez <[email protected]> We believe that the bug you reported is fixed in the latest version of gdb, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Héctor Orón Martínez <[email protected]> (supplier of updated gdb package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Sat, 13 May 2023 13:33:12 +0200 Source: gdb Architecture: source Version: 13.1-3 Distribution: unstable Urgency: medium Maintainer: Héctor Orón Martínez <[email protected]> Changed-By: Héctor Orón Martínez <[email protected]> Closes: 1034611 Changes: gdb (13.1-3) unstable; urgency=medium . [ Emanuele Rocca ] * aarch64: add aarch64-pauth-registers.patch to check for valid inferior thread/regcache before reading pauth registers. (Closes: #1034611) Checksums-Sha1: be23c39d5a94e1b00d2c61aead1947d19c830b4f 2864 gdb_13.1-3.dsc c07a2e73996a59665a9a136030439061265aad77 53132 gdb_13.1-3.debian.tar.xz 470d34ba6444b4a80004eb4a290f33805c025ac8 10608 gdb_13.1-3_source.buildinfo Checksums-Sha256: b5438d2eec4cdc660777d64d9d04cdf799fa82f1bf802ac80272f1004f6bbe30 2864 gdb_13.1-3.dsc a677ebb1971b6b9b0e2f45aef2c7cdcd016cb7adaf4eca7ef5c12b22c3e2cf17 53132 gdb_13.1-3.debian.tar.xz 9acb87c2d0530bf95bb3674779c8ac25c40fc153ea600299a56d9278acbd9eea 10608 gdb_13.1-3_source.buildinfo Files: a6e6f88b65c01d31d662e6e6d53dabd8 2864 devel optional gdb_13.1-3.dsc 773b312466c9981fe670843136f7ef2b 53132 devel optional gdb_13.1-3.debian.tar.xz 819db1df5f47881905d20a6ffb7bc9b7 10608 devel optional gdb_13.1-3_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE6Q8IiVReeMgqnedOryKDqnbirHsFAmRfecMACgkQryKDqnbi rHunvQ//VETWwT1XHfuqGlAnwJeKHpE5THpeJYQZf/bqdS0C2UhbMGYnoh4XV/1u ND/SucUx1ozmwHbx4KuEdoFadyBPpNOxWeWi/dY1Y4EJljEPLpkl/chv0niKNzyB CxFCf3ntUzbLXRUhc498wp7yyyH1f57juJSq3BmS+utKhabS6hctKqdhr2N39rMN 4UT/2Vt3JWeGA+mFdGW+LtjJmv9RumzoF+nQgCECL22GQzYghCmSosIs2ffLk+ol Z9FQCUXws6TXb9PqFPQQMakbsLRErWPyPL58t6l1MTDG+NpubBKED8nijKL5ihJr tiZXEngXeJDx4AE8NrE6+GKFVrjwi0ca72o2A+fXBkP6WyeUwgsWoQ2uT7BykWmE bvPV0Iq/0aDLb/HqGRpeCSZFjc0j1uQYRS4bdh2hzXCDeFBVMCiPtAZPoJwjCY1X VRKxqp9uI4nTtt3IPDciZTrCI0BxfRu24FSSkh2Ghb/Q/w4OsE6pz72lH5nRrziS ap2xIzgcnZ3NNrO4w7cCPLI45c1o3h/YVQJ08pRJGb2j+FVFi+bn9Rj83uMCEXx/ a3UpUjmsSpudDVKcEg0qeXV8UbS4p2DgrSeTvhHbRUOA7BpILCIPB3RsaNCjdrsr p8jibhNdKB5lCmbK0bJ/Y4jlFrh1jKi8jSpa/B3/IRcg0pSRMZ8= =HeBT -----END PGP SIGNATURE-----
--- End Message ---

