From owner-freebsd-pkg@freebsd.org Fri Feb 8 16:33:42 2019 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25DBC14B17EB for ; Fri, 8 Feb 2019 16:33:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A9CD089F53 for ; Fri, 8 Feb 2019 16:33:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6DDDA14B17E6; Fri, 8 Feb 2019 16:33:41 +0000 (UTC) Delivered-To: pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 49B9714B17E5 for ; Fri, 8 Feb 2019 16:33:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D944A89F50 for ; Fri, 8 Feb 2019 16:33:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 38D5D191D6 for ; Fri, 8 Feb 2019 16:33:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x18GXeMs087763 for ; Fri, 8 Feb 2019 16:33:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x18GXedL087762 for pkg@FreeBSD.org; Fri, 8 Feb 2019 16:33:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: maintainer-feedback requested: [Bug 235604] ports-mgmt/pkg: bus error / segmentation fault (core dumped) Date: Fri, 08 Feb 2019 16:33:39 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 16:33:42 -0000 Bugzilla Automation has asked freebsd-pkg mailing li= st for maintainer-feedback: Bug 235604: ports-mgmt/pkg: bus error / segmentation fault (core dumped) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235604 --- Description --- There is one of my machines on which ports-mgmt/pkg randomly dumps core. Simple commands like "pkg info" or "pkg which" seem to work without problem= s, but when installing ports it often crashes (but not always) with either SIG= BUS or SIGSEGV. This seems to happen after actual installation of the package, = but before recording the dependencies in the database (if there are no dependencies, it does not appear to crash). This has led to the situation t= hat the dependency tree of the pkg database on that machine is now broken (there doesn't seem to be an easy way to fix that, short of removing all ports and start from scratch, which I will do, once the coredump problem is fixed). I am pretty certain that it is not a hardware problem. The pkg binary is the *only* program that exhibits the problem. I can run buildworld, buildkernel= or other CPU / IO hogs for weeks without any issue. There's one special thing about the machine, however: It is a 64bit VM hosted on KVM. I'm not sure if that matters, though. I do have complete access to the VM, but not to the h= ost system. The problem existed when the machine had FreeBSD 10. I hoped it would be fi= xed when upgrading, so I first went to stable/11, then to stable/12 (also updat= ing pkg along the way, of course), but it did not change. I'm now at stable/12 r342861 (2019-01-08) with the latest pkg-1.10.5_5. I can reliably reproduce a SIGBUS with "pkg audit": $ /usr/local/sbin/pkg audit 0 problem(s) in the installed packages found. Child process pid=3D45723 terminated abnormally: Bus error $ lldb -f /usr/local/sbin/pkg -c pkg.core -bobt (lldb) target create "/usr/local/sbin/pkg" --core "pkg.core" Core file '/home/olli/pkg.core' (x86_64) was loaded. (lldb) bt * thread #1, name =3D 'pkg', stop reason =3D signal SIGBUS * frame #0: 0x0000000800334fe0 libpkg.so.4`___lldb_unnamed_symbol608$$libpkg.so.4 + 112 frame #1: 0x0000000800340200 libpkg.so.4`___lldb_unnamed_symbol660$$libpkg.so.4 + 320 frame #2: 0x00000008002f06b4 libpkg.so.4`pkg_shutdown + 36 frame #3: 0x0000000800b524e5 libc.so.7`__cxa_finalize(dso=3D0x0000000000000000) at atexit.c:239 frame #4: 0x0000000800ae20e1 libc.so.7`exit(status=3D0) at exit.c:74 frame #5: 0x0000000000214122 pkg`___lldb_unnamed_symbol1$$pkg + 290 So it appears that this bus error occurs in the exit code, after the actual work of pkg was done. I am currently not in a position to debug it any fur= ther myself. I have uploaded the core file, binary and libraries here: http://inof.de/FreeBSD/pr/20190208/ Let me know if you need more information. I could probably also give login access to that machine to a FreeBSD developer if needed. From owner-freebsd-pkg@freebsd.org Fri Feb 8 16:33:42 2019 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5D7F14B17EE for ; Fri, 8 Feb 2019 16:33:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 607AD89F55 for ; Fri, 8 Feb 2019 16:33:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2181214B17EA; Fri, 8 Feb 2019 16:33:42 +0000 (UTC) Delivered-To: pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F31CA14B17E9 for ; Fri, 8 Feb 2019 16:33:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 69FF589F52 for ; Fri, 8 Feb 2019 16:33:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id A40B5191D8 for ; Fri, 8 Feb 2019 16:33:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x18GXeIU087788 for ; Fri, 8 Feb 2019 16:33:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x18GXela087787 for pkg@FreeBSD.org; Fri, 8 Feb 2019 16:33:40 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: pkg@FreeBSD.org Subject: [Bug 235604] ports-mgmt/pkg: bus error / segmentation fault (core dumped) Date: Fri, 08 Feb 2019 16:33:39 +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: olli@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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 MIME-Version: 1.0 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 16:33:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235604 Bug ID: 235604 Summary: ports-mgmt/pkg: bus error / segmentation fault (core dumped) Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pkg@FreeBSD.org Reporter: olli@FreeBSD.org Assignee: pkg@FreeBSD.org Flags: maintainer-feedback?(pkg@FreeBSD.org) There is one of my machines on which ports-mgmt/pkg randomly dumps core. Simple commands like "pkg info" or "pkg which" seem to work without problem= s, but when installing ports it often crashes (but not always) with either SIG= BUS or SIGSEGV. This seems to happen after actual installation of the package, = but before recording the dependencies in the database (if there are no dependencies, it does not appear to crash). This has led to the situation t= hat the dependency tree of the pkg database on that machine is now broken (there doesn't seem to be an easy way to fix that, short of removing all ports and start from scratch, which I will do, once the coredump problem is fixed). I am pretty certain that it is not a hardware problem. The pkg binary is the *only* program that exhibits the problem. I can run buildworld, buildkernel= or other CPU / IO hogs for weeks without any issue. There's one special thing about the machine, however: It is a 64bit VM hosted on KVM. I'm not sure if that matters, though. I do have complete access to the VM, but not to the h= ost system. The problem existed when the machine had FreeBSD 10. I hoped it would be fi= xed when upgrading, so I first went to stable/11, then to stable/12 (also updat= ing pkg along the way, of course), but it did not change. I'm now at stable/12 r342861 (2019-01-08) with the latest pkg-1.10.5_5. I can reliably reproduce a SIGBUS with "pkg audit": $ /usr/local/sbin/pkg audit 0 problem(s) in the installed packages found. Child process pid=3D45723 terminated abnormally: Bus error $ lldb -f /usr/local/sbin/pkg -c pkg.core -bobt (lldb) target create "/usr/local/sbin/pkg" --core "pkg.core" Core file '/home/olli/pkg.core' (x86_64) was loaded. (lldb) bt * thread #1, name =3D 'pkg', stop reason =3D signal SIGBUS * frame #0: 0x0000000800334fe0 libpkg.so.4`___lldb_unnamed_symbol608$$libpkg.so.4 + 112 frame #1: 0x0000000800340200 libpkg.so.4`___lldb_unnamed_symbol660$$libpkg.so.4 + 320 frame #2: 0x00000008002f06b4 libpkg.so.4`pkg_shutdown + 36 frame #3: 0x0000000800b524e5 libc.so.7`__cxa_finalize(dso=3D0x0000000000000000) at atexit.c:239 frame #4: 0x0000000800ae20e1 libc.so.7`exit(status=3D0) at exit.c:74 frame #5: 0x0000000000214122 pkg`___lldb_unnamed_symbol1$$pkg + 290 So it appears that this bus error occurs in the exit code, after the actual work of pkg was done. I am currently not in a position to debug it any fur= ther myself. I have uploaded the core file, binary and libraries here: http://inof.de/FreeBSD/pr/20190208/ Let me know if you need more information. I could probably also give login access to that machine to a FreeBSD developer if needed. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-pkg@freebsd.org Fri Feb 8 16:50:29 2019 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8438B14B1EA1 for ; Fri, 8 Feb 2019 16:50:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1325F8A68D for ; Fri, 8 Feb 2019 16:50:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id C66C314B1E9F; Fri, 8 Feb 2019 16:50:28 +0000 (UTC) Delivered-To: pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4E7814B1E9E for ; Fri, 8 Feb 2019 16:50:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 50D2D8A68C for ; Fri, 8 Feb 2019 16:50:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 9F72D1935F for ; Fri, 8 Feb 2019 16:50:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x18GoRpN014114 for ; Fri, 8 Feb 2019 16:50:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x18GoRqK014113 for pkg@FreeBSD.org; Fri, 8 Feb 2019 16:50:27 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: pkg@FreeBSD.org Subject: [Bug 235604] ports-mgmt/pkg: bus error / segmentation fault (core dumped) Date: Fri, 08 Feb 2019 16:50:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: olli@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 16:50:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235604 --- Comment #1 from Oliver Fromme --- Created attachment 201846 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D201846&action= =3Dedit dmesg of the machine --=20 You are receiving this mail because: You are the assignee for the bug.=