NetBSD Problem Report #49378
From www@NetBSD.org Mon Nov 10 04:26:38 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id A94F2A65EB
for <gnats-bugs@gnats.NetBSD.org>; Mon, 10 Nov 2014 04:26:38 +0000 (UTC)
Message-Id: <20141110042637.7258EA667F@mollari.NetBSD.org>
Date: Mon, 10 Nov 2014 04:26:37 +0000 (UTC)
From: arjun1296@gmail.com
Reply-To: arjun1296@gmail.com
To: gnats-bugs@NetBSD.org
Subject: emacs 24.3 gives segmentation fault under virtualbox
X-Send-Pr-Version: www-1.0
>Number: 49378
>Category: pkg
>Synopsis: emacs 24.3 gives segmentation fault under virtualbox
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 10 04:30:00 +0000 2014
>Last-Modified: Sun Apr 02 12:00:00 +0000 2017
>Originator: Arjun Suresh Raji
>Release: 6.1.5
>Organization:
>Environment:
NetBSD eden 6.1.5 NetBSD 6.1.5 (GENERIC) i386
>Description:
Hi,
I installed emacs using pkgsrc as well as the pkgin tool. Both crashed with giving a segmentation fault.
Host OS: Windows 7
Target : Installation was done on Virtual Box
VboxCMD: virtualbox --norawr0 --recompile-supervisor --startvm <netbsd_instance>
#gdb emacs emacs-24.3.core
[New process 1]
Core was generated by `emacs-24.3` .
Program was terminated with signal 11, Segmentation fault/
#0 0xbbac2b3c in _libc_init () from /usr/lib/libc.so.12
(gdb)bt
#0 0xbbac2b3c in _libc_init () from /usr/lib/libc.so.12
#1 0xbbaa9828 in ?? () from /usr/lib/libc.so.12
#2 0xbbbf310b in _rtld_call_init_functions () from /usr/libexec/ld.elf_so
#3 0xbfbfedc8 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
>How-To-Repeat:
pkgin update
pkgin install emacs
emacs / emacs -nw
>Fix:
>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/49378: emacs 24.3 gives segmentation fault under virtualbox
Date: Wed, 3 Dec 2014 16:34:41 +0000
On Mon, Nov 10, 2014 at 04:30:01AM +0000, arjun1296@gmail.com wrote:
> NetBSD eden 6.1.5 NetBSD 6.1.5 (GENERIC) i386
> [...]
> Hi,
> I installed emacs using pkgsrc as well as the pkgin tool. Both
> crashed with giving a segmentation fault.
I suspect this is the same problem as PR 46632. In that case,
compiling emacs yourself should make it go away. Although that's
a fairly expensive nuisance in a slow VM.
(Does virtualbox have a 64-bit mode?)
--
David A. Holland
dholland@netbsd.org
From: Arjun Suresh Raji <arjun1296@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/49378: emacs 24.3 gives segmentation fault under virtualbox
Date: Fri, 5 Dec 2014 11:39:16 +0530
--089e0158c40e10fdc2050971edf1
Content-Type: text/plain; charset=UTF-8
Well, I forgot to update the PR. I solved this issue by resizing the stack.
By default it was showing 2048(ulimit -s was 2048)
ulimit -s 8192 #I set stack size as 8192 . 4096 -> failed
This was suggested from this link
https://mail-index.netbsd.org/netbsd-users/2013/03/25/msg012668.html
--
Arjun S R
http://about.me/arjunsr
On Wed, Dec 3, 2014 at 10:05 PM, David Holland <dholland-pbugs@netbsd.org>
wrote:
> The following reply was made to PR pkg/49378; it has been noted by GNATS.
>
> From: David Holland <dholland-pbugs@netbsd.org>
> To: gnats-bugs@NetBSD.org
> Cc:
> Subject: Re: pkg/49378: emacs 24.3 gives segmentation fault under
> virtualbox
> Date: Wed, 3 Dec 2014 16:34:41 +0000
>
> On Mon, Nov 10, 2014 at 04:30:01AM +0000, arjun1296@gmail.com wrote:
> > NetBSD eden 6.1.5 NetBSD 6.1.5 (GENERIC) i386
> > [...]
> > Hi,
> > I installed emacs using pkgsrc as well as the pkgin tool. Both
> > crashed with giving a segmentation fault.
>
> I suspect this is the same problem as PR 46632. In that case,
> compiling emacs yourself should make it go away. Although that's
> a fairly expensive nuisance in a slow VM.
>
> (Does virtualbox have a 64-bit mode?)
>
> --
> David A. Holland
> dholland@netbsd.org
>
>
--089e0158c40e10fdc2050971edf1
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Well, I forgot to update the PR. I solved this issue by re=
sizing the stack.<div><br><div>By default it was showing 2048(ulimit -s was=
2048)</div><div>ulimit -s 8192 #I set stack size as 8192 . 4096 -> fail=
ed<br></div></div><div><br></div><div>This was suggested from this link</di=
v><div><a href=3D"https://mail-index.netbsd.org/netbsd-users/2013/03/25/msg=
012668.html">https://mail-index.netbsd.org/netbsd-users/2013/03/25/msg01266=
8.html</a><br></div><div><br></div></div><div class=3D"gmail_extra"><br cle=
ar=3D"all"><div><div class=3D"gmail_signature">--<br>Arjun S R<br><a href=
=3D"http://about.me/arjunsr" target=3D"_blank">http://about.me/arjunsr</a><=
/div></div>
<br><div class=3D"gmail_quote">On Wed, Dec 3, 2014 at 10:05 PM, David Holla=
nd <span dir=3D"ltr"><<a href=3D"mailto:dholland-pbugs@netbsd.org" targe=
t=3D"_blank">dholland-pbugs@netbsd.org</a>></span> wrote:<br><blockquote=
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc soli=
d;padding-left:1ex">The following reply was made to PR pkg/49378; it has be=
en noted by GNATS.<br>
<br>
From: David Holland <<a href=3D"mailto:dholland-pbugs@netbsd.org">dholla=
nd-pbugs@netbsd.org</a>><br>
To: gnats-bugs@NetBSD.org<br>
Cc:<br>
Subject: Re: pkg/49378: emacs 24.3 gives segmentation fault under virtualbo=
x<br>
Date: Wed, 3 Dec 2014 16:34:41 +0000<br>
<br>
=C2=A0On Mon, Nov 10, 2014 at 04:30:01AM +0000, <a href=3D"mailto:arjun1296=
@gmail.com">arjun1296@gmail.com</a> wrote:<br>
=C2=A0 > NetBSD eden 6.1.5 NetBSD 6.1.5 (GENERIC) i386<br>
=C2=A0 > [...]<br>
=C2=A0 > Hi,<br>
=C2=A0 > I installed emacs using pkgsrc as well as the pkgin tool. Both<=
br>
=C2=A0 > crashed with giving a segmentation fault.<br>
<br>
=C2=A0I suspect this is the same problem as PR 46632. In that case,<br>
=C2=A0compiling emacs yourself should make it go away. Although that's<=
br>
=C2=A0a fairly expensive nuisance in a slow VM.<br>
<br>
=C2=A0(Does virtualbox have a 64-bit mode?)<br>
<br>
=C2=A0--<br>
=C2=A0David A. Holland<br>
=C2=A0<a href=3D"mailto:dholland@netbsd.org">dholland@netbsd.org</a><br>
<br>
</blockquote></div><br></div>
--089e0158c40e10fdc2050971edf1--
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/49378: emacs 24.3 gives segmentation fault under virtualbox
Date: Sat, 6 Dec 2014 18:43:02 +0000
On Fri, Dec 05, 2014 at 06:15:00AM +0000, Arjun Suresh Raji wrote:
> Well, I forgot to update the PR. I solved this issue by resizing the stack.
>
> By default it was showing 2048(ulimit -s was 2048)
> ulimit -s 8192 #I set stack size as 8192 . 4096 -> failed
>
> This was suggested from this link
> https://mail-index.netbsd.org/netbsd-users/2013/03/25/msg012668.html
Hmm... ideally this wouldn't be necessary. So i'll leave the report
open if you don't mind. Glad you've got it working, though.
--
David A. Holland
dholland@netbsd.org
From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/49378: emacs 24.3 gives segmentation fault under virtualbox
Date: Sun, 02 Apr 2017 13:57:37 +0200
Arjun Suresh Raji writes:
> [...]
> Well, I forgot to update the PR. I solved this issue by resizing the stack.
>
> By default it was showing 2048(ulimit -s was 2048)
> ulimit -s 8192 #I set stack size as 8192 . 4096 -> failed
>
> This was suggested from this link
> https://mail-index.netbsd.org/netbsd-users/2013/03/25/msg012668.html
> [...]
I can confirm that this is issue is also present on
NetBSD/i386 7.1 and emacs25 (emacs25-25.1nb5) and
`ulimit -s 8192' (for sh shells) or `limit stacksize 8192' (for csh
shells) did the trick.
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.