From owner-freebsd-bugs@freebsd.org Tue Sep 12 06:07:56 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CCE70E1AF05 for ; Tue, 12 Sep 2017 06:07:56 +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 mx1.freebsd.org (Postfix) with ESMTPS id B14373ED6 for ; Tue, 12 Sep 2017 06:07:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8C67uuS062582 for ; Tue, 12 Sep 2017 06:07:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 222248] lldb is missing ObjectFile plugin to write cores Date: Tue, 12 Sep 2017 06:07:56 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: gergely.czuczy@harmless.hu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Sep 2017 06:07:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222248 Bug ID: 222248 Summary: lldb is missing ObjectFile plugin to write cores Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: gergely.czuczy@harmless.hu Hello, Apparently it seems that the ObjectFile plugins got left out during importi= ng llvm, and because of this, it's not possible to save the core of the process currently being debugged: On aarch64, r322723: root@build-pine64:/usr/ports/editors/emacs-devel/work/emacs-f44184f# cd lisp l' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)'= -f batch-byte-compile emacs-lisp/macroexp.el (lldb) target create "../src/bootstrap-emacs" Current executable set to '../src/bootstrap-emacs' (aarch64). (lldb) settings set -- target.run-args "-batch" "--no-site-file" "--no-site-lisp" "--eval" "(setq load-prefer-newer t)" "-f" "batch-byte-compile" "emacs-lisp/macroexp.el" (lldb) r Process 1016 launching Process 1016 launched: '../src/bootstrap-emacs' (aarch64) Process 1016 stopped * thread #1, name =3D 'bootstrap-emacs', stop reason =3D signal SIGSEGV: in= valid address (fault address: 0x41b17978) frame #0: 0x0000000000228460 bootstrap-emacs`xnrealloc(pa=3D0x0000000000000000, nitems=3D0, item_size=3D1102150015) at alloc.c:939 936 { 937 eassert (0 <=3D nitems && 0 < item_size); 938 ptrdiff_t nbytes; -> 939 if (INT_MULTIPLY_WRAPV (nitems, item_size, &nbytes) || SIZE_MAX < nbytes) 940 memory_full (SIZE_MAX); 941 return xrealloc (pa, nbytes); 942 } (lldb) process save-core /root/foo.core error: Failed to save core file for process: no ObjectFile plugins were abl= e to save a core for this process (lldb) On amd64 11-STABLE r311927: $ lldb (lldb) process attach --pid 54625 Process 54625 stopped Executable module set to "/usr/bin/systat". Architecture set to: x86_64--freebsd11.0. (lldb) process save-core foobar.core error: Failed to save core file for process: no ObjectFile plugins were abl= e to save a core for this process Sharing cores of currently being debugged processes can be very helpful, wh= en repoting issues with various software. For an example, currently I'm trying= to figure out while emacs-devel segfaults during build on aarch64, and the autogenerated core is different, due to the process' internal sigsegv handl= er. --=20 You are receiving this mail because: You are the assignee for the bug.=