{"id":19438817,"url":"https://github.com/spacejam/gdb-bug","last_synced_at":"2025-07-03T07:34:25.852Z","repository":{"id":149786365,"uuid":"104859970","full_name":"spacejam/gdb-bug","owner":"spacejam","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-26T08:57:01.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T07:24:40.835Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spacejam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-09-26T08:47:08.000Z","updated_at":"2017-09-26T08:51:25.000Z","dependencies_parsed_at":"2023-06-02T14:45:13.687Z","dependency_job_id":null,"html_url":"https://github.com/spacejam/gdb-bug","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"9968b174cca5ef273a6770dc272de841e31c55a4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fgdb-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fgdb-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fgdb-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fgdb-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spacejam","download_url":"https://codeload.github.com/spacejam/gdb-bug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239710013,"owners_count":19684347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T15:19:52.733Z","updated_at":"2025-02-25T07:17:47.331Z","avatar_url":"https://github.com/spacejam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gdb-bug\n\n`thread.c:1123: internal-error: void finish_thread_state(ptid_t): Assertion ``tp' failed.`\n\n## reproduce:\n\n1. cargo build\n2. ./debug.py\n\n\n## full output\n\n```\nλ ./debug.py\nGNU gdb (GDB) 8.0.1\nCopyright (C) 2017 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later \u003chttp://gnu.org/licenses/gpl.html\u003e\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\nThis GDB was configured as \"x86_64-pc-linux-gnu\".\nType \"show configuration\" for configuration details.\nFor bug reporting instructions, please see:\n\u003chttp://www.gnu.org/software/gdb/bugs/\u003e.\nFind the GDB manual and other documentation resources online at:\n\u003chttp://www.gnu.org/software/gdb/documentation/\u003e.\nFor help, type \"help\".\nType \"apropos word\" to search for commands related to \"word\".\nseeding with 752097355547\n+file target/debug/race\nwarning: Missing auto-load script at offset 0 in section .debug_gdb_scripts\nof file /home/t/src/gdb-bug/target/debug/race.\nUse `info auto-load python-scripts [REGEXP]' to list them.\n+set non-stop on\n+set confirm off\n+b src/main.rs:8\nBreakpoint 1 at 0xf0f2: file src/main.rs, line 8.\n+r\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library \"/usr/lib/libthread_db.so.1\".\n[New Thread 0x7ffff6bff700 (LWP 11825)]\n[New Thread 0x7ffff69fe700 (LWP 11826)]\n\nThread 2 \"race\" hit Breakpoint 1, race::bad_txn () at src/main.rs:8\n8           if A.load(SeqCst) == 0 {\n(gdb) running schedule\n+d\nBreakpoint 2 at 0x5555555630f2: file src/main.rs, line 8.\nBreakpoint 3 at 0x55555556312a: file src/main.rs, line 9.\nBreakpoint 4 at 0x555555596e71: file /checkout/src/liballoc/boxed.rs, line 241.\nBreakpoint 5 at 0x55555556330a: file src/main.rs, line 12.\n+t 2\n[Switching to thread 2 (Thread 0x7ffff6bff700 (LWP 11825))]\n#0  race::bad_txn () at src/main.rs:8\n8           if A.load(SeqCst) == 0 {\n+c\nSelected thread is running.\n(gdb) thread 2 hit breakpoint at src/main.rs:9\n+t 2\n[Switching to thread 2 (Thread 0x7ffff6bff700 (LWP 11825))]\n#0  race::bad_txn () at src/main.rs:9\n9               A.fetch_add(10, SeqCst);\n+c\nSelected thread is running.\n(gdb) success!\n+t 3\n[Switching to thread 3 (Thread 0x7ffff69fe700 (LWP 11826))]\n#0  race::bad_txn () at src/main.rs:8\n8           if A.load(SeqCst) == 0 {\n+c\nSelected thread is running.\n(gdb) restarting execution after running out of valid threads\n+k\n+file target/debug/race\nwarning: Missing auto-load script at offset 0 in section .debug_gdb_scripts\nof file /home/t/src/gdb-bug/target/debug/race.\nUse `info auto-load python-scripts [REGEXP]' to list them.\nreseeding with 40033280878\n+b src/main.rs:8\nBreakpoint 6 at 0xf0f2: file src/main.rs, line 8.\n+r\nthread.c:1123: internal-error: void finish_thread_state(ptid_t): Assertion `tp' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\n\nThis is a bug, please report it.  For instructions, see:\n\u003chttp://www.gnu.org/software/gdb/bugs/\u003e.\n\n[1]    11808 abort (core dumped)  ./debug.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacejam%2Fgdb-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacejam%2Fgdb-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacejam%2Fgdb-bug/lists"}