From nobody Wed Nov 13 12:29:47 2024 X-Original-To: ports-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 4XpMzv5mCdz5dYK0 for ; Wed, 13 Nov 2024 12:29:47 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XpMzv3c3bz4cVk for ; Wed, 13 Nov 2024 12:29:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731500987; 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=7/hEkQwBV6sA7VAdPTn8sXsFzsTu9Feyzoe017Ehr6s=; b=INzEjbXnUN2qmweRRLj8ZgvfItSGQzxWi4BqtyLt9i/eRz3Fs73QX87Y0KaRNCzihBaDzK MIuUHPgb7+fA5R1E24q7IglxV8OwYlTQMr6N0Crfbkxihm12/1oDhslIHoJFHOuJJfNrW6 PESp5atxwCZWEGuhIU/3Hl2MAJlxtuo8i+lIV1Mmu31mpzpJAgXu7RPH5QaPVSlwEvvrhc GoYDHNW9cY8QmyAj/S+KrPCrEkjD2dbb/H2yAwOF3zoOC4pltuYLmDYkHaBH8L4SSKmhmC 3JISLfFDMUU5R3UpvkPDrnK0rSs91q3YMfHHM32Q8+g3GtB+BD9WAKeIiBNu8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731500987; a=rsa-sha256; cv=none; b=n2M0OeBXWm37EugSsC2UD1Gko/gsnC4g3FNa0j+BJAaRh10DwBZwFVm9vQKDTar2WN2jCX aWXAM1ZQECaGYDkLJS2rCvgHY77RW0i7BRMA8I5jYB+EF9eNKES8/O4pGbXw93Lyz6XcPG 8aT9mgPBGu6Zb7CTzNyy3IBHlVzaCozKbLA69LbSJVt1nni78Hf6NvQ+YegbxNAwJAzFQZ FCwxWV+dWy5R4cuJ7rraTAwFQnFY+rT8dmQYWVNhEnDtud3mgWJIoNn/Gwj2Fr1rth9QSF POhkXt1UzJECY/Sj31zWQ3ZQ6SC5vyVhXbJsxKig9E37CAZJnQr+X+qac2htFw== 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 4XpMzv3Cnpzv39 for ; Wed, 13 Nov 2024 12:29:47 +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 4ADCTlk4095704 for ; Wed, 13 Nov 2024 12:29:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4ADCTlqN095703 for ports-bugs@FreeBSD.org; Wed, 13 Nov 2024 12:29:47 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: ports-bugs@FreeBSD.org Subject: [Bug 282727] science/pulseview: crash on startup Date: Wed, 13 Nov 2024 12:29:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: avg@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-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 attachments.created 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282727 Bug ID: 282727 Summary: science/pulseview: crash on startup Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: avg@FreeBSD.org Created attachment 255136 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D255136&action= =3Dedit science/pulseview/files/patch-pv_data_decodesignal.cpp pulseview crashes for me "SIGILL, Illegal instruction" which caused by ud2 machine code instruction which is apparently inserted as an assertion. The crash is in std::__1::mutex::unlock: #0 std::__1::mutex::unlock (this=3D) at /usr/home/avg/devel/freebsd-src-new/machines/trant/contrib/llvm-project/lib= cxx/src/mutex.cpp:39 #1 0x0000000000368741 in ??? () ... (gdb) disassemble=20 Dump of assembler code for function _ZNSt3__15mutex6unlockEv: 0x0000000829ea35a0 <+0>: push %rbp 0x0000000829ea35a1 <+1>: mov %rsp,%rbp 0x0000000829ea35a4 <+4>: call 0x829eb22b0 0x0000000829ea35a9 <+9>: test %eax,%eax 0x0000000829ea35ab <+11>: jne 0x829ea35af <_ZNSt3__15mutex6unlockEv+15> 0x0000000829ea35ad <+13>: pop %rbp 0x0000000829ea35ae <+14>: ret =3D> 0x0000000829ea35af <+15>: ud2 0x0000000829ea35b1 <+17>: mov %rax,%rdi 0x0000000829ea35b4 <+20>: call 0x829e52930 <__clang_call_terminate> End of assembler dump. Looks like ud2 is executed when pthread_mutex_unlock fails. The rest of the stack is not really useful because the program is built wit= hout debug symbols. But with some manual disassembling I was able to determine that the crash happens in DecodeSignal::resume_decode() method. And, indeed, looking at the code we can see that the function unlocks decode_pause_mutex_ which is never locked. Probably, I see this problem because I have a custom build of FreeBSD stabl= e/14 with asserts enabled, otherwise pthread_mutex_unlock status would be ignore= d. The attached patch fixes the problem for me. --=20 You are receiving this mail because: You are the assignee for the bug.=