From patchwork Mon Jan 16 16:10:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kratochvil X-Patchwork-Id: 63249 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0626A3858C74 for ; Mon, 16 Jan 2023 16:11:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0626A3858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673885473; bh=b3zhxPDix6vVZzLqHhOHf/GCm1DfVKKn3J1NWgFhens=; h=Date:To:Cc:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=DIImLbOsZKA5QKLUoswnj8wyxfZ/rxH10rzGAj2DoHxe0XTvBbKr2Wgnt/3vzGE6c uxeNFm85svyLDol3WMl2+6u+5ck+LQy4VM5ZR3dSsa0d25OnBkJ88a3e2T36GO/gNY 3TWfFHkyYp5uM91opAGE1xuw81WwiURs4rOvVOSc= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2077.outbound.protection.outlook.com [40.107.212.77]) by sourceware.org (Postfix) with ESMTPS id 1B1B338582BC for ; Mon, 16 Jan 2023 16:10:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1B1B338582BC ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SC5Y30X2BP8x1fk+qbzNihipsOqGbh+nfXFi4iCWQuildkhO0VIrUnKiY1LBBTqdpD0k02RAVJa0W0nggmxWeO+4uDMa77OlTdjd/rPhL6AIbLrfbsIQUsl3ai06XlXS1Nkij2Vj9P5hr5g0QbL7NO9w2rbueXiyKGHK8QJcx6BBydRNXwvm2hi1BniqirarPyPhgMp9glj/alL8z4aV9wu5lhN0NAnBnGbMJzTEIuQs2vlM02pweoTtqqvnGZ38kRCVlBFPuYNPjiMkOm2K0W5nf2Hwrl8jDg+wSP0wfc/HkIcGL5SOlmCi7sz6yholk0NQI9wUXGmII1UU6Qlkgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=b3zhxPDix6vVZzLqHhOHf/GCm1DfVKKn3J1NWgFhens=; b=i+45V/rYbn+zckuL+bmIFXVq4IWFLe60z+dbagaUfIacSukxzKDus8MTorVrDVDf0u2nhDxDJegb4OwXEPhpP/ItpMpHw75+/6WE4/N79gAujJDcxfbQqmoNEDLEe966NTkRKAoTYRJ0JocostUW2emxIIYuwywN63GubV0kDJu1d1pYtiVGPgzWQTq5tSUH6AqT/5awbtEXT3vG/1ITkRvIQ3hV6MAdqAVbzfXA5iP9/UL7dL77JWtKp7ewrM0UMhAzC0I/EtLPvkS3Im9GYCGCDu6qXVQIPc19HhuVrmo1gWOVTMF6vB7EfhykTSlme11cKdgmoLVdZLFO04xGLw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=azul.com; dmarc=pass action=none header.from=azul.com; dkim=pass header.d=azul.com; arc=none Received: from DM6PR11MB4073.namprd11.prod.outlook.com (2603:10b6:5:19f::22) by CH3PR11MB8212.namprd11.prod.outlook.com (2603:10b6:610:164::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Mon, 16 Jan 2023 16:10:44 +0000 Received: from DM6PR11MB4073.namprd11.prod.outlook.com ([fe80::edae:b2eb:9aa6:dca7]) by DM6PR11MB4073.namprd11.prod.outlook.com ([fe80::edae:b2eb:9aa6:dca7%4]) with mapi id 15.20.5986.023; Mon, 16 Jan 2023 16:10:44 +0000 Date: Tue, 17 Jan 2023 00:10:36 +0800 To: gdb-patches@sourceware.org Cc: Alan Hayward , Luis Machado Subject: [PING] [PATCH] gdb/arm: Fix backtrace for pthread_cond_timedwait Message-ID: References: Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.7 (2022-08-07) X-ClientProxiedBy: VI1PR07CA0227.eurprd07.prod.outlook.com (2603:10a6:802:58::30) To DM6PR11MB4073.namprd11.prod.outlook.com (2603:10b6:5:19f::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR11MB4073:EE_|CH3PR11MB8212:EE_ X-MS-Office365-Filtering-Correlation-Id: 458268a3-4411-442d-b906-08daf7dc3865 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p3fl96Ucrp2oS9GEPjHwl9Oc9AB/jr3nMP8jMNmOQjRXKdkIeSTYDycB63vdbC1lTjf4ETJeRLFB2bxMKk8PGe2ceZ73f+BSQgRRnwvESg8JbYyBb1sJHJZfR4UWUdIn9CIYAFnkHeWYr93ZTKnY+2V3MqzGP2RSe4zNMxogwY1zGDDFClPoN9m+p+HTiSzzmu7lKgLeLNtes9pZg87IR6xDGI5OiIAAyE6CPSUf648CHx4lMNIEV9JrYHrf1JpDTWSwNaIAymbfcqbpF9he4KwnfxRAS8ynmDrbWusSi/J38196cKvy/vEG9ajJDlDABihSk32nVFvpr4TdykLNwVNi3aiShrWXuRuZsUKc4SMcP0RTamX2hRDIqvwAh1BXQWoIw+29bB1uw0U+1h1lEm/axCVY8JINvYTM30QQDO2HOoKK8CXadMwihNCnm+MUnpn0OGF14I3xASen+IIWN0PnujUBg09RD/Z0UWrH1cTNcZS4RtoSWUQQzcvRyC6nM1IrtdGYNsY1ZUUCOhxTznS9DK+lG/wbohtVyQtKXvggw/tQRAVTzu23U4LQ/WdfqFTlc50sANqCEO36p0mU0wAlXwKwMRCjllQyhgIiK6rQG2h0iY4MVzmKhamZix8vR/x59zDFnY30fuSd822pkIa3X0EQ+DzO/aLxFtnyBCCnlY/zDZfbltNTS2/Q/UJN4+CvZDGv3r05hrcw7s0VVA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB4073.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(346002)(136003)(366004)(39850400004)(376002)(396003)(451199015)(4326008)(41300700001)(83380400001)(54906003)(6916009)(66556008)(316002)(66476007)(5660300002)(8936002)(38100700002)(66946007)(8676002)(86362001)(2906002)(6506007)(6486002)(478600001)(6666004)(6512007)(9686003)(186003)(2004002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: x4iKqQJ4jS/VeW4E+BCkjlIqMTnKKv4L6OxTcDWAwlYgvBJUl9wC+lCR/8PuCR2zINqrI6pAd0PgkG8KuZ5CLh49UadVIriq+26gtXshJBw+ydIunri7YOsI/ilw/h8H4ndN2NnFMzkdpJ5G5DaSm46YJrh7aFoEad8X5fV0J7MJCdldyJvHQDREIua+t8j10tGSfmubqMaU3nFsK+w19wYx8Aayx3ACsfavHDjbK4k4XKpb5n37KOBvyQQnb80qIyjsuuwVL9c1UzeVAGMUm365k781qFShslBOu+OqrlkmTo5F0pGhua8n+/210FUaIKYB8aYxSK9Zb8L8Nl3grDrP37HAsvb1jTMCrcTUCRsOYYKEorG3ZTHV4oI0PhjlbcKtoLs6dEfzW+kzPKPjJUDiUiZYFTkOIAyVpQEBubWsPyTj2VdVz1Yb0NC1s208FWFTaUPY1eNoCzUn9zMntMNfXHZDc++jBZoNTsowliLBm1t7rMyRmY1gmWinMiLO8qhL//jtPNPns9p/pchxE7w2gP/hwTPkUrGTxRNX4N7dSQIo9mR2jqpYAr6CPlPnP5kLaMIG5vn36AkFWu4TpPS7VSXtcxIswuaBGn3BKuw5hkLedx9DXH7xNBFUd7sl4GxM/J8GgQPPRBQgqRjsGzdRhn+FEBH0x7ub4/fOWU3GbTMrugPpTggy9A8mlbkXxGB9bPT/F87W2zZmo2RWuSwZ45grqUfovfGPaOj5za8riH1bHayKRBAZ0qC3A8YWR+mYO+cEb87w6axQ6jq4MufeUZac8T0qIthHoszTGX/uDmJ4LdcBO5XHnHEWzRlh77i82GQ5bAGuEpbGLOXGUJY0iGtidjVznm4EKBkiIGjmBMFogMB+wSyyhJT6narIr0vRl8Wz7QWoK1Yiq+wPTs7u/oW1vC8JtJ8uhY9ODvASIZkHTzN1RdLBctvs2W5RInqmI85ECy/3s4P/EkG3pgA8ltXNZUDLzCU84KvsVyxvMOuGFDXYj0YQWyLgOEf3hXV3f3IDkbLUvj0JI5DC8sRcpyja79TAGF25DoPXDGib6IwpRgueKwjGonSG8tGZ5kgDaTGMmQ5YFVctHhq33wgKRdVILX7Ymf13dI6usyLjPXEmOBXP+kTV7Kza4up4rJ8GFVLs8gS/d8ckrYnlyNl8qJKrVbfx1G58Lu3mUYegwdDOBBnJa7HRov0DFW+mrASIgb83F8zJYfk30DfmhPnqWgauv/3wp7DYmMzhB2F2h/AQBbH2Lx/smb7FxwEjhArGALY4ybmdzcZjX0aI9wuWwpibji2nIcG300CKhI+4ylgEiXLTvcgWgS1tBuU9GaQzVhIPLx3u5DmJiIBMTLhnugzoE8wzXIgJJU3v0sCx8QHwh3rSQK80CSBkx4y4VmevW5sYJAQ2WNTe+Z1FbG5q6w18/TrIgflfudzXUhMTQ+BdIvQC5zO7VRWDWXsnVfGSs24gNOaalCN8oWGtpzUEzTOfjGNb4KFgghzeX8+9YOySmAymthJkj+cI+Hrh3jSDc5vY81f5PzNk8V2HfhthCbK9zRWQ2uytQB8USXGHauJjTqRSeQr+jrR+gmC5Qx06JBjK7k88g8y/6kLzkw== X-OriginatorOrg: azul.com X-MS-Exchange-CrossTenant-Network-Message-Id: 458268a3-4411-442d-b906-08daf7dc3865 X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4073.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 16:10:44.0215 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: c480eb31-2b17-43d7-b4c7-9bcb20cc4bf2 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kPXdSL5xYrdKB9i9d8FGWOC/FVaGUNIgOI37CDysdyEFQbafv9Z6M7cypv3NIudY6mt3DcgQFkr6VYI9FyNrKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB8212 X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jan Kratochvil via Gdb-patches From: Jan Kratochvil Reply-To: Jan Kratochvil Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" GDB expected PC should point right after the SVC instruction when the syscall is active. But some active syscalls keep PC pointing to the SVC instruction itself. This leads to a broken backtrace like: Backtrace stopped: previous frame identical to this frame (corrupt stack?) #0 0xb6f8681c in pthread_cond_timedwait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0 #1 0xb6e21f80 in ?? () The reason is that .ARM.exidx unwinder gives up if PC does not point right after the SVC (syscall) instruction. I did not investigate why but some syscalls will point PC to the SVC instruction itself. This happens for the "futex" syscall used by pthread_cond_timedwait. That normally does not matter as ARM prologue unwinder gets called instead of the .ARM.exidx one. Unfortunately some glibc calls have more complicated prologue where the GDB unwinder fails to properly determine the return address (that is in fact an orthogonal GDB bug). I expect it is due to the "vpush" there in this case but I did not investigate it more: Dump of assembler code for function pthread_cond_timedwait@@GLIBC_2.4: 0xb6f8757c <+0>: push {r4, r5, r6, r7, r8, r9, r10, r11, lr} 0xb6f87580 <+4>: mov r10, r2 0xb6f87584 <+8>: vpush {d8} Regression tested on armv7l kernel 5.15.32-v7l+ (Raspbian 11). --- gdb/arm-tdep.c | 42 ++++--- .../gdb.arch/arm-pthread_cond_timedwait-bt.c | 62 +++++++++++ .../arm-pthread_cond_timedwait-bt.exp | 105 ++++++++++++++++++ 3 files changed, 192 insertions(+), 17 deletions(-) create mode 100644 gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.c create mode 100644 gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 78a2fe2ade5..328eb17f419 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -3116,26 +3116,34 @@ arm_exidx_unwind_sniffer (const struct frame_unwind *self, && get_frame_type (get_next_frame (this_frame)) == NORMAL_FRAME) exc_valid = 1; - /* We also assume exception information is valid if we're currently - blocked in a system call. The system library is supposed to - ensure this, so that e.g. pthread cancellation works. */ - if (arm_frame_is_thumb (this_frame)) + /* Some syscalls keep PC pointing to the SVC instruction itself. */ + for (int shift = 0; shift <= 1 && !exc_valid; ++shift) { - ULONGEST insn; + /* We also assume exception information is valid if we're currently + blocked in a system call. The system library is supposed to + ensure this, so that e.g. pthread cancellation works. */ + if (arm_frame_is_thumb (this_frame)) + { + ULONGEST insn; - if (safe_read_memory_unsigned_integer (get_frame_pc (this_frame) - 2, - 2, byte_order_for_code, &insn) - && (insn & 0xff00) == 0xdf00 /* svc */) - exc_valid = 1; - } - else - { - ULONGEST insn; + if (safe_read_memory_unsigned_integer ((get_frame_pc (this_frame) + - (shift ? 2 : 0)), + 2, byte_order_for_code, + &insn) + && (insn & 0xff00) == 0xdf00 /* svc */) + exc_valid = 1; + } + else + { + ULONGEST insn; - if (safe_read_memory_unsigned_integer (get_frame_pc (this_frame) - 4, - 4, byte_order_for_code, &insn) - && (insn & 0x0f000000) == 0x0f000000 /* svc */) - exc_valid = 1; + if (safe_read_memory_unsigned_integer ((get_frame_pc (this_frame) + - (shift ? 4 : 0)), + 4, byte_order_for_code, + &insn) + && (insn & 0x0f000000) == 0x0f000000 /* svc */) + exc_valid = 1; + } } /* Bail out if we don't know that exception information is valid. */ diff --git a/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.c b/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.c new file mode 100644 index 00000000000..c382a100afd --- /dev/null +++ b/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.c @@ -0,0 +1,62 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2022 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include +#include +#include +#include + +static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; +static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; + +static void *fun(void *arg) +{ + struct timeval now; + struct timespec until; + int err; + + err = gettimeofday(&now, NULL); + assert(!err); + + until.tv_sec = now.tv_sec + 60; + until.tv_nsec = now.tv_usec * 1000UL; + + pthread_cond_timedwait(&cond, &mutex, &until); + assert(0); + err = pthread_mutex_unlock(&mutex); + assert(!err); + + return arg; +} + +int main() +{ + pthread_t thread; + void *ret; + int err; + + err = pthread_mutex_lock(&mutex); + assert(!err); + err = pthread_create(&thread, NULL, fun, NULL); + assert(!err); + err = pthread_mutex_lock(&mutex); + assert(!err); + err = pthread_join(thread, &ret); // break-line + assert(0); + + return 0; +} diff --git a/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp b/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp new file mode 100644 index 00000000000..d5e594c73d5 --- /dev/null +++ b/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp @@ -0,0 +1,105 @@ +# Copyright 2022 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# This serves as a template for writing new test cases. Replace this with +# a description of what this test case tests. + +standard_testfile + +if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ + {debug pthreads}] } { + return +} + +if { ![runto_main] } { + return +} + +gdb_test "advance [gdb_get_line_number "break-line"]" "break-line.*" \ + "advance to break-line" + +gdb_test "thread 2" "Switching to thread 2 .*" "thread 2 for svc check" + +# GDB expected PC should point right after the SVC instruction when the syscall is active. +# But some active syscalls keep PC pointing to the SVC instruction itself. +set test "pc points to svc" +gdb_test_multiple {x/i $pc} $test { + -re ":\tsvc\t0x00000000\r\n$gdb_prompt $" { + pass $test + } + -re "\r\n$gdb_prompt $" { + untested $test + return + } +} + +gdb_test "thread 1" "Switching to thread 1 .*" +gdb_test_no_output "set debug frame 1" + +# PASS: +# [frame] frame_unwind_try_unwinder: trying unwinder "arm exidx" +# [frame] frame_unwind_register_value: enter +#... +# [frame] frame_unwind_register_value: exit +# [frame] frame_unwind_try_unwinder: yes +#... +# [frame] get_prev_frame_always_1: -> {level=0,type=NORMAL_FRAME,unwinder="arm exidx",pc=0xb6f8681c,id=,func=} // cached + +# FAIL: +# [frame] frame_unwind_try_unwinder: trying unwinder "arm exidx" +# [frame] frame_unwind_register_value: enter +#... +# [frame] frame_unwind_register_value: exit +# [frame] frame_unwind_try_unwinder: no +# [frame] frame_unwind_try_unwinder: trying unwinder "arm epilogue" +# [frame] frame_unwind_register_value: enter +#... +# [frame] frame_unwind_register_value: exit +# [frame] frame_unwind_try_unwinder: no +# [frame] frame_unwind_try_unwinder: trying unwinder "arm prologue" +# [frame] frame_unwind_try_unwinder: yes +#... +# [frame] get_prev_frame_always_1: -> {level=0,type=NORMAL_FRAME,unwinder="arm prologue",pc=0xb6f8681c,id=,func=} // cached + +set test "unwinder is arm exidx" +# Switch the threads to reset frame cache. +gdb_test_multiple {thread 2} $test { + -re "\{level=0,type=NORMAL_FRAME,unwinder=\"arm exidx\",pc=.*\r\n$gdb_prompt $" { + pass $test + } + -re "\{level=0,type=NORMAL_FRAME,unwinder=\"arm prologue\",pc=.*\r\n$gdb_prompt $" { + fail $test + } + -re "\r\n$gdb_prompt $" { + untested $test + return + } +} + +gdb_test "thread 2" "Switching to thread 2 .*" "thread 2 for debug frame check" + +gdb_test_no_output "set debug frame 0" + +# PASS: +# #0 0xb6f8681c in pthread_cond_timedwait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0 +# #1 0x00010648 in fun (arg=0x0) at .../gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.c:38 +# ... + +# FAIL: +# #0 0xb6f8681c in pthread_cond_timedwait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0 +# #1 0xb6e21f80 in ?? () +# Backtrace stopped: previous frame identical to this frame (corrupt stack?) + +gdb_test "bt" { in fun \(arg=.*} "unwind of pthread_cond_timedwait"