NetBSD Problem Report #52744

From martin@duskware.de  Tue Nov 21 07:04:48 2017
Return-Path: <martin@duskware.de>
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 BA2DA7A1F2
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 21 Nov 2017 07:04:48 +0000 (UTC)
Message-Id: <20171121070438.85AB55CC761@emmas.aprisoft.de>
Date: Tue, 21 Nov 2017 08:04:38 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: shell scripts w/o shebang cause kernel diagnostics
X-Send-Pr-Version: 3.95

>Number:         52744
>Category:       kern
>Synopsis:       shell scripts w/o shebang cause kernel diagnostics
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 21 07:05:00 +0000 2017
>Last-Modified:  Thu Jun 25 16:20:01 +0000 2020
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.7
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-owl.duskware.de 8.99.7 NetBSD 8.99.7 (NIGHT-OWL) #556: Mon Nov 20 15:29:42 CET 2017 martin@night-owl.duskware.de:/usr/src/sys/arch/amd64/compile/NIGHT-OWL amd64
Architecture: x86_64
Machine: amd64
>Description:

Noticed during pkg builds: executing shell scripts w/o a #! interpreter
line as first line triggers a (harmless) kernel diagnostic. This is
only a cosmetic problem.

>How-To-Repeat:

echo "echo yay" > demo.sh
chmod u+x demo.sh
./demo.sh
dmesg | tail

(or look at console output)

execve_loadvm: check exec failed for ./demo.sh, error 8


>Fix:
n/a

>Audit-Trail:
From: "Jukka Ruohonen" <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52744 CVS commit: src
Date: Thu, 25 Jun 2020 16:16:49 +0000

 Module Name:	src
 Committed By:	jruoho
 Date:		Thu Jun 25 16:16:49 UTC 2020

 Modified Files:
 	src/distrib/sets/lists/tests: mi
 	src/tests/kernel: Makefile
 Added Files:
 	src/tests/kernel: t_nointerpreter.sh

 Log Message:
 Add a test case for PR kern/52744, which no longer appears to be present.


 To generate a diff of this commit:
 cvs rdiff -u -r1.851 -r1.852 src/distrib/sets/lists/tests/mi
 cvs rdiff -u -r1.66 -r1.67 src/tests/kernel/Makefile
 cvs rdiff -u -r0 -r1.1 src/tests/kernel/t_nointerpreter.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

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.