From nobody Mon Jan 03 16:39:20 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ECCE192EB29 for ; Mon, 3 Jan 2022 16:39:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JSM080CGyz4g17 for ; Mon, 3 Jan 2022 16:39:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CD8C9A5D for ; Mon, 3 Jan 2022 16:39:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 203GdJob095413 for ; Mon, 3 Jan 2022 16:39:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 203GdJnh095412 for bugs@FreeBSD.org; Mon, 3 Jan 2022 16:39:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260910] lldb crash on amd64 with "bt all" in threaded program that generates SIGBUS. Date: Mon, 03 Jan 2022 16:39:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@monkeyspunk.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641227960; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=srJEfGVGbiZZr1KULsGQbThmrZWSAWePbmCLRNgr5hg=; b=PptsHFCwmfAb/tioxjrJIB7LhbqjILLvbsd/8pGSyiBeSZRhxJ4h322AcLPlnpQ4FZrXI3 7KygxCRfANBhDCN3zyAo2bp81d1jp9H5McXx/FDSdWQ+SoXI9Jdk4au5AEyGvlxp/QVK1b RvMsv2ZZgHxtYJUn4B5beA5VN54NzXEczYS7AfzEUiuGveGRj25J4hd1R0Y2/b9DnvRffy 1HaXBfQtfdMUyIAwuXiyH02ZkxDGaHKfGfY9j3p/JgVzznFzFMpMAoImXvGDFqqxBiHhUX 2x+JdnTTXDcCIsj5mr8+CJNsUTv0vnuBN4+QUXgeux7LQarBAulMW6MW8s8iRQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641227960; a=rsa-sha256; cv=none; b=lxXM2A4DX6oYKG0B588ICKQmnpR09VADcGt5Tmf+5KViC1bJGMvjxeivvO/vFBepOEkPF4 MAK1wm9dTGUqCZ6xlQJD8FRgwKwS18VQuhZCB5j9OlpKVUpaei7YYthXxXaI7BVM9WDlJh nm65Em0GrlaagOTODf2U/A+WGGBz2e9/h+dwxtpGdvZ4I6QG3I33V5tczTv65LE2XN6tJh 1eGOirxxMXr+O1pGfk2p2+ket3xsDMVAxxR/ZtyqlE8bGgHbHbuB9UNIAFnECFOlhYdqpl ISpwba8JyB3CNR1YqsjLK9KtcIlW7qIMSaYp1n3/6NneuEcF0bzNXORcIih2Gg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260910 Bug ID: 260910 Summary: lldb crash on amd64 with "bt all" in threaded program that generates SIGBUS. Product: Base System Version: 13.0-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsd@monkeyspunk.net lldb asked me to submit this bug report so I am. I am debugging some modifications I'm making to fluent-bit. fluent-bit is a threaded C program. The FreeBSD box is running under KVM (up to date Ubuntu 20.04 host) on workstation hardware with ECC RAM. I've had lldb crash on me a few times now. Below is the latest output from= the full run minus the program output. # lldb --arch x86_64 -- /usr/local/bin/fluent-bit -c /usr/local/etc/fluent-bit/fluent-bit.conf -s 4096 (lldb) target create --arch=3Dx86_64 "/usr/local/bin/fluent-bit" Current executable set to '/usr/local/bin/fluent-bit' (x86_64). (lldb) settings set -- target.run-args "-c" "/usr/local/etc/fluent-bit/fluent-bit.conf" "-s" "4096" (lldb) run Process 16204 launching Process 16204 launched: '/usr/local/bin/fluent-bit' (x86_64) .... fluent-bit output ..... Process 16204 stopped * thread #2, name =3D 'fluent-bit', stop reason =3D signal SIGBUS: hardware= error frame #0: 0x0000000800c28945 libc.so.7`files_servent(retval=3D0x0000000801a6e400, mdata=3D0x0000000800f9= 2210, ap=3D0x0000000801a6e400) at getservent.c:281:26 (lldb) bt all Program aborted due to an unhandled Error: Error value was Success. (Note: Success values must still be checked prior = to being destroyed). PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include = the crash backtrace. Stack dump: 0. Program arguments: lldb --arch x86_64 -- /usr/local/bin/fluent-bit = -c /usr/local/etc/fluent-bit/fluent-bit.conf -s 4096=20 1. HandleCommand(command =3D "bt all") 2. HandleCommand(command =3D "thread backtrace all") #0 0x0000000003ae7aee PrintStackTrace /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:564:13 #1 0x0000000003ae5fa5 RunSignalHandlers /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:69:18 #2 0x0000000003ae8060 SignalHandler /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3 #3 0x0000000804c35e00 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3 Abort trap --=20 You are receiving this mail because: You are the assignee for the bug.=