NetBSD Problem Report #54043

From www@NetBSD.org  Wed Mar  6 05:48:34 2019
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 88DE77A1CB
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  6 Mar 2019 05:48:34 +0000 (UTC)
Message-Id: <20190306054833.8C1FC7A1EE@mollari.NetBSD.org>
Date: Wed,  6 Mar 2019 05:48:33 +0000 (UTC)
From: thorpej@me.com
Reply-To: thorpej@me.com
To: gnats-bugs@NetBSD.org
Subject: aft-run throws assertion / dumps core on VAX
X-Send-Pr-Version: www-1.0

>Number:         54043
>Category:       port-vax
>Synopsis:       aft-run throws assertion / dumps core on VAX
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-vax-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 06 05:50:00 +0000 2019
>Closed-Date:    Sat Apr 11 13:38:35 +0000 2020
>Last-Modified:  Sat Apr 11 13:38:35 +0000 2020
>Originator:     Jason Thorpe
>Release:        8.99.34
>Organization:
The NetBSD Foundation
>Environment:
NetBSD 8.99.34 (GENERIC) #0: Thu Feb 28 17:41:27 UTC 2019 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/vax/compile/GENERIC
>Description:
Environment is a simulated MicroVAX 3900 (SIMH).  Stock NetBSD kernel built by the NetBSD releng.

Running an ATF test plan causes atf-run to dump core.  I haven't looked deeper into under what circumstances it crashes (I don't know specifically if it's because a test case fails, for example).  Upon further inspection, it crashes with standard tests in /usr/tests, as well.

vax-vm:thorpej !$ atf-run ./t_ufetchstore
Content-Type: application/X-atf-tps; version="3"

info: atf.version, Automated Testing Framework 0.20 (atf-0.20)
info: tests.root, /home/thorpej
info: time.start, Tue Mar 5 13:38:30 PST 2019
info: uname.sysname, NetBSD
info: uname.nodename, vax-vm
info: uname.release, 8.99.34
info: uname.version, NetBSD 8.99.34 (GENERIC) #0: Thu Feb 28 17:41:27 UTC 2019 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/vax/compile/GENERIC
info: uname.machine, vax
info: env, PS1=vax-vm:thorpej !$ 
info: env, ARCH=vax
info: env, BLOCKSIZE=1024
info: env, PWD=/home/thorpej
info: env, HOME=/root
info: env, _=/usr/bin/su
info: env, LESS=LXR
info: env, PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/pkg/bin:/usr/pkg/sbin:/usr/local/bin:/nbsd/tools/bin
info: env, TERM=vt100
info: env, USER=thorpej
info: env, PAGER=less
info: env, OS=NetBSD
info: env, HOSTNAME=vax-vm
info: env, EDITOR=vi
info: env, LOGNAME=thorpej
info: env, SU_FROM=thorpej
info: env, SHELL=/bin/sh
info: env, CVS_RSH=ssh
info: env, GITHUB=git@github.com:
tps-count: 1
tp-start: 1551821913.82419, ./t_ufetchstore, 12
tc-start: 1551821913.82419, ufetch_16
terminate called after throwing an instance of 'tools::system_error'
terminate called recursively
[1]   Abort trap (core dumped) atf-run ./t_ufetchstore
vax-vm:thorpej !$

This same test program runs fine on x86(32,64), sparc, and arm(32,64).
>How-To-Repeat:
Run a test plan with atf-run.
>Fix:
unknown.

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-vax/54043: aft-run throws assertion / dumps core on VAX
Date: Wed, 6 Mar 2019 08:48:04 +0100

 Stack unwinding is broken, see port-vax/44155

 Martin

From: Christos Zoulas <christos@zoulas.com>
To: "gnats-bugs@netbsd.org" <gnats-bugs@NetBSD.org>
Cc: port-vax-maintainer@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: port-vax/54043: aft-run throws assertion / dumps core on VAX
Date: Wed, 6 Mar 2019 06:50:57 -0500

 I think this is a g++ general bug on the vax. Does any c++ program work?

 christos

From: Martin Husemann <martin@duskware.de>
To: Christos Zoulas <christos@zoulas.com>
Cc: "gnats-bugs@netbsd.org" <gnats-bugs@NetBSD.org>,
	port-vax-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: port-vax/54043: aft-run throws assertion / dumps core on VAX
Date: Wed, 6 Mar 2019 13:04:13 +0100

 On Wed, Mar 06, 2019 at 06:50:57AM -0500, Christos Zoulas wrote:
 > I think this is a g++ general bug on the vax. Does any c++ program work?

 Last I looked only exception unwinding failed.

 Martin

From: Martin Husemann <martin@duskware.de>
To: Christos Zoulas <christos@zoulas.com>
Cc: "gnats-bugs@netbsd.org" <gnats-bugs@NetBSD.org>,
	port-vax-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: port-vax/54043: aft-run throws assertion / dumps core on VAX
Date: Wed, 6 Mar 2019 13:49:05 +0100

 On Wed, Mar 06, 2019 at 07:47:19AM -0500, Christos Zoulas wrote:
 > Yes, and atf uses that I think.

 Indeed, and unwinding failure leads to abort().

 Martin

From: christos@zoulas.com (Christos Zoulas)
To: Martin Husemann <martin@duskware.de>
Cc: "gnats-bugs@netbsd.org" <gnats-bugs@NetBSD.org>, 
	port-vax-maintainer@netbsd.org, gnats-admin@netbsd.org, 
	netbsd-bugs@netbsd.org
Subject: Re: port-vax/54043: aft-run throws assertion / dumps core on VAX
Date: Wed, 6 Mar 2019 07:47:19 -0500

 On Mar 6,  1:04pm, martin@duskware.de (Martin Husemann) wrote:
 -- Subject: Re: port-vax/54043: aft-run throws assertion / dumps core on VAX

 | On Wed, Mar 06, 2019 at 06:50:57AM -0500, Christos Zoulas wrote:
 | > I think this is a g++ general bug on the vax. Does any c++ program work?
 | 
 | Last I looked only exception unwinding failed.

 Yes, and atf uses that I think.

 christos

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 11 Apr 2020 13:38:35 +0000
State-Changed-Why:
duplicate 44155 which contains a lot of useful information.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.