From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A0FD03858D33; Tue, 14 Feb 2023 07:54:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0FD03858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676361240; bh=YX3GUc4Oqr8b4+53EagH3Xe4AVsStSQWxQYl1zl3sYM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=e2Qn0FmCPIwMdb4YnwD1QE5KU6tNqDNCpiwbHua05kDZcbtSNz5/sRbe1NoqRu7WR RtCG3OUj3KMUJXNnqZ4NM2GRwyxS5RNGUSelPcTg/yCHCkDy5GqBYUip+9KgslCr7/ 7b5GIQyNlXBueMsbDcBfIj3K86SURIRY6hUQh3Zo= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug go/30038] When using CGO and C code is calling GO function, not getting call stack of C from core dump. Only getting call stack of GO. Date: Tue, 14 Feb 2023 07:54:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: go X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30038 --- Comment #7 from Tom Tromey --- This also works for me: [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `./test'. Program terminated with signal SIGABRT, Aborted. #0 0x00007fcf8468ec0c in __pthread_kill_implementation () from /lib64/libc.so.6 [Current thread is 1 (Thread 0x7fcf8667a1c0 (LWP 1993139))] (gdb) bt #0 0x00007fcf8468ec0c in __pthread_kill_implementation () from /lib64/libc.so.6 #1 0x00007fcf8463e986 in raise () from /lib64/libc.so.6 #2 0x00007fcf85b2ae84 in runtime[dieFromSignal] () from /lib64/libgo.so.21 #3 0x00007fcf85b54f00 in runtime[sigtrampgo] () from /lib64/libgo.so.21 #4 0x00007fcf855f1bf8 in runtime[sigtramp] () from /lib64/libgo.so.21 #5 #6 0x00007fcf8468ec0c in __pthread_kill_implementation () from /lib64/libc.so.6 #7 0x00007fcf8463e986 in raise () from /lib64/libc.so.6 #8 0x00007fcf85b2ae84 in runtime[dieFromSignal] () from /lib64/libgo.so.21 #9 0x00007fcf85b2aeee in runtime[crash] () from /lib64/libgo.so.21 #10 0x00007fcf85b5e405 in runtime[gopanic] () from /lib64/libgo.so.21 #11 0x000000000040475e in main.Test4 () at /home/tromey/gdb/PRS/pr-30038-go-bug/export.go:7 #12 0x00000000004047ac in main.Cgoexp__Test4 () at /tmp/go-build/b001/_cgo_gotypes.go:34 #13 0x0000000000405040 in test1 () at /home/tromey/gdb/PRS/pr-30038-go-bug/test.go:9 #14 0x0000000000405060 in test2 () at /home/tromey/gdb/PRS/pr-30038-go-bug/test.go:14 #15 0x0000000000405080 in test3 () at /home/tromey/gdb/PRS/pr-30038-go-bug/test.go:19 #16 0x00000000004050a0 in _cgo_5bc4e3e20e89_Cfunc_test3 () at /tmp/go-build/cgo-gcc-prolog:46 #17 0x0000000000404ed8 in main.__Cfunc__test3 () at /tmp/go-build/b001/_cgo_gotypes.go:25 #18 0x0000000000404f54 in main.main () at /home/tromey/gdb/PRS/pr-30038-go-bug/test.go:25 I'm using the system 'go' on Fedora 36. Perhaps it's some other issue in your environment. It doesn't seem to be a gdb bug. --=20 You are receiving this mail because: You are on the CC list for the bug.=