CVS commit: src/sys/kern

"Taylor R Campbell" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	riastradh
Date:		Fri Aug 28 06:33:50 UTC 2026

Modified Files:
	src/sys/kern: exec_script.c kern_exec.c

Log Message:
exec: Free struct exec_package::ep_emul_arg in more error paths.

We should really formalize the destruction path for these temporary
exec data structures; these error branches are all tangled messes of
spaghetti.

PR kern/60657: panic: kernel diagnostic assertion "epp->ep_emul_arg
== NULL" failed: file
"/home/riastradh/netbsd/current/src/sys/kern/kern_exec.c", line 535

Test case forthcoming (it would panic the testbed) as part of

PR kern/60653: posix_spawn(3) causes incorrect stack base information

which is how I stumbled upon this.


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/kern/exec_script.c
cvs rdiff -u -r1.533 -r1.534 src/sys/kern/kern_exec.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.