NetBSD Problem Report #58092

From www@netbsd.org  Sat Mar 30 16:22:40 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_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 B64621A923B
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 30 Mar 2024 16:22:40 +0000 (UTC)
Message-Id: <20240330162238.B678C1A923C@mollari.NetBSD.org>
Date: Sat, 30 Mar 2024 16:22:38 +0000 (UTC)
From: rwhitlock22@gmail.com
Reply-To: rwhitlock22@gmail.com
To: gnats-bugs@NetBSD.org
Subject: nbsed dumped core during buildworld
X-Send-Pr-Version: www-1.0

>Number:         58092
>Category:       bin
>Synopsis:       nbsed dumped core during buildworld
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 30 16:25:00 +0000 2024
>Last-Modified:  Sat Mar 30 16:45:01 +0000 2024
>Originator:     Robert Whitlock
>Release:        NetBSD 10.0 RC6
>Organization:
>Environment:
NetBSD thinkpad 10.0_RC6 NetBSD 10.0_RC6 (THINKPAD) #0: Tue Mar 26 18:20:30 EDT 2024  rob@thinkpad:/usr/src_netbsd-10/arch/amd64/compile/THINKPAD amd64

>Description:
I was doing a "make buildworld" and nbsed dumped core. Here is the last of the output from make:

dependall ===> external/mit/xorg/share/nls/am_ET.UTF-8
#    create  am_ET.UTF-8/Compose.ct
rm -f Compose.ct
/usr/src_netbsd-10/tooldir/bin/x86_64--netbsd-cpp -undef -traditional  < /usr/src_netbsd-10/xsrc/external/mit/libX11/dist/nls/am_ET.UTF-8/Compose.pre | /usr/src_netbsd-10/tooldir/bin/nbsed    -e '/^#  *[0-9][0-9]*  *.*$/d'  -e '/^#line  *[0-9][0-9]*  *.*$/d'  -e '/^[     ]*XCOMM$/s/XCOMM/#/'  -e '/^[   ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/'  -e '/^[       ]*XHASH/s/XHASH/#/'  -e '/\@\@$/s/\@\@$/\\/' > Compose.ct
[1]   Done                    /usr/src_netbsd-10/tooldir/bin/x86_64--netbsd-... |
      Segmentation fault (core dumped) /usr/src_netbsd-10/tooldir/bin/nbsed -e "/^#  ...
*** Error code 139

Stop.
make[10]: stopped in /usr/src_netbsd-10/src/external/mit/xorg/share/nls/am_ET.UTF-8
*** Error code 1

Stop.
make[9]: stopped in /usr/src_netbsd-10/src/external/mit/xorg/share/nls/am_ET.UTF-8
*** Error code 1

Stop.
make[8]: stopped in /usr/src_netbsd-10/src/external/mit/xorg/share/nls
*** Error code 1

Stop.
make[7]: stopped in /usr/src_netbsd-10/src/external/mit/xorg/share
*** Error code 1

Stop.
make[6]: stopped in /usr/src_netbsd-10/src/external/mit/xorg
*** Error code 1

Stop.
make[5]: stopped in /usr/src_netbsd-10/src/external/mit
*** Error code 1

Stop.
make[4]: stopped in /usr/src_netbsd-10/src/external
*** Error code 1

Stop.
make[3]: stopped in /usr/src_netbsd-10/src
*** Error code 1

Stop.
make[2]: stopped in /usr/src_netbsd-10/src
*** Error code 1

Stop.
make[1]: stopped in /usr/src_netbsd-10/src
*** Error code 1

Stop.
make: stopped in /usr/src_netbsd-10/src
1 thinkpad$ 


Here is the backtrace from the core file:

0 thinkpad$ gdb /usr/src_netbsd-10/tooldir/bin/nbsed nbsed.core                
GNU gdb (GDB) 11.0.50.20200914-git
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/src_netbsd-10/tooldir/bin/nbsed...
[New process 4736]
Core was generated by `nbsed'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000000000040d501 in CHIN ()
(gdb) bt
#0  0x000000000040d501 in CHIN ()
#1  0x000000000041600c in mstep ()
#2  0x0000000000415a02 in mwalk ()
#3  0x00000000004139a5 in mmatcher ()
#4  0x0000000000416598 in regexec ()
#5  0x0000000000407bb8 in regexec_e ()
#6  0x0000000000406b15 in applies ()
#7  0x0000000000405ebd in process ()
#8  0x0000000000405043 in main ()
(gdb) 
0 thinkpad$

When I ran find(1) to locate the core file for this crash, I noticed that there was another core file for nbsed in external/bsd/nvi/catalog/ with a slightly different backtrace:

0 thinkpad$ gdb /usr/src_netbsd-10/tooldir/bin/nbsed nbsed.core                
GNU gdb (GDB) 11.0.50.20200914-git
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/src_netbsd-10/tooldir/bin/nbsed...
[New process 7824]
Core was generated by `nbsed'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000000000040d501 in CHIN ()
(gdb) bt
#0  0x000000000040d501 in CHIN ()
#1  0x000000000041600c in mstep ()
#2  0x0000000000415a02 in mwalk ()
#3  0x00000000004139ff in mmatcher ()
#4  0x0000000000416598 in regexec ()
#5  0x0000000000407bb8 in regexec_e ()
#6  0x0000000000406ca9 in substitute ()
#7  0x000000000040654c in process ()
#8  0x0000000000405043 in main ()
(gdb) 
0 thinkpad$ 

The environment has LC_CTYPE=en_US.UTF-8 which as far as I can tell is the default.
>How-To-Repeat:
0 thinkpad$ cat set_env.sh                                  
export HOST_SH='/bin/sh'
export HOST_CC='/usr/bin/cc'
export HOST_CFLAGS=''
export HOST_CXX='c++'
export HOST_CXXFLAGS=''
export MACHINE='amd64'
export MACHINE_ARCH='x86_64'
export MAKE='/usr/bin/make'
export MAKEFLAGS=''
#export MAKEOBJDIR ?
export MAKEOBJDIRPREFIX='/usr/src_netbsd-10/makeobjdirprefix'
export MAKECONF='/usr/src_netbsd-10/mk.conf'
#INSTALLBOOT_BOARDS=''
#INSTALLBOOT_UBOOT_PATHS=''

0 thinkpad$ cat mk.conf                                               
DESTDIR=/usr/src_netbsd-10/destdir
MKDEBUG=yes
MKDEBUGLIB=yes
#MKKDEBUG=yes
MKSTRIPSYM=no
MKUNPRIVED=yes
MKUPDATE=yes
MKX11=yes
TOOLDIR=/usr/src_netbsd-10/tooldir
USETOOLS=yes
X11SRCDIR=/usr/src_netbsd-10/xsrc
RELEASEDIR=/usr/src_netbsd-10/release

# not documented in /usr/src/BUILDING
# also doesn't work; LLVM is built anyway
MKLLVM=no

0 thinkpad$ 

then run /bin/sh, source set_env.sh, cd to src, make obj, make buildworld and wait several days.

I'm not sure what the equivalent of this would be when just building xorg/share/nls by itself, or even xorg by itself.
>Fix:

>Audit-Trail:
From: Justin Parrott <renegade6969666@gmail.com>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: bin/58092: nbsed dumped core during buildworld
Date: Sat, 30 Mar 2024 12:32:28 -0400

 --0000000000000204fd0614e34e09
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable

 i dont think they are going to support this...
 i believe the recomend we use the build script

 On Sat, Mar 30, 2024 at 12:25=E2=80=AFPM <rwhitlock22@gmail.com> wrote:

 > >Number:         58092
 > >Category:       bin
 > >Synopsis:       nbsed dumped core during buildworld
 > >Confidential:   no
 > >Severity:       critical
 > >Priority:       medium
 > >Responsible:    bin-bug-people
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Sat Mar 30 16:25:00 +0000 2024
 > >Originator:     Robert Whitlock
 > >Release:        NetBSD 10.0 RC6
 > >Organization:
 > >Environment:
 > NetBSD thinkpad 10.0_RC6 NetBSD 10.0_RC6 (THINKPAD) #0: Tue Mar 26
 > 18:20:30 EDT 2024  rob@thinkpad:/usr/src_netbsd-10/arch/amd64/compile/THI=
 NKPAD
 > amd64
 >
 > >Description:
 > I was doing a "make buildworld" and nbsed dumped core. Here is the last o=
 f
 > the output from make:
 >
 > dependall =3D=3D=3D> external/mit/xorg/share/nls/am_ET.UTF-8
 > #    create  am_ET.UTF-8/Compose.ct
 > rm -f Compose.ct
 > /usr/src_netbsd-10/tooldir/bin/x86_64--netbsd-cpp -undef -traditional  <
 > /usr/src_netbsd-10/xsrc/external/mit/libX11/dist/nls/am_ET.UTF-8/Compose.=
 pre
 > | /usr/src_netbsd-10/tooldir/bin/nbsed    -e '/^#  *[0-9][0-9]*  *.*$/d'
 > -e '/^#line  *[0-9][0-9]*  *.*$/d'  -e '/^[     ]*XCOMM$/s/XCOMM/#/'  -e
 > '/^[   ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/'  -e '/^[       ]*XHASH/s/XHASH/#/=
 '
 > -e '/\@\@$/s/\@\@$/\\/' > Compose.ct
 > [1]   Done
 > /usr/src_netbsd-10/tooldir/bin/x86_64--netbsd-... |
 >       Segmentation fault (core dumped)
 > /usr/src_netbsd-10/tooldir/bin/nbsed -e "/^#  ...
 > *** Error code 139
 >
 > Stop.
 > make[10]: stopped in
 > /usr/src_netbsd-10/src/external/mit/xorg/share/nls/am_ET.UTF-8
 > *** Error code 1
 >
 > Stop.
 > make[9]: stopped in
 > /usr/src_netbsd-10/src/external/mit/xorg/share/nls/am_ET.UTF-8
 > *** Error code 1
 >
 > Stop.
 > make[8]: stopped in /usr/src_netbsd-10/src/external/mit/xorg/share/nls
 > *** Error code 1
 >
 > Stop.
 > make[7]: stopped in /usr/src_netbsd-10/src/external/mit/xorg/share
 > *** Error code 1
 >
 > Stop.
 > make[6]: stopped in /usr/src_netbsd-10/src/external/mit/xorg
 > *** Error code 1
 >
 > Stop.
 > make[5]: stopped in /usr/src_netbsd-10/src/external/mit
 > *** Error code 1
 >
 > Stop.
 > make[4]: stopped in /usr/src_netbsd-10/src/external
 > *** Error code 1
 >
 > Stop.
 > make[3]: stopped in /usr/src_netbsd-10/src
 > *** Error code 1
 >
 > Stop.
 > make[2]: stopped in /usr/src_netbsd-10/src
 > *** Error code 1
 >
 > Stop.
 > make[1]: stopped in /usr/src_netbsd-10/src
 > *** Error code 1
 >
 > Stop.
 > make: stopped in /usr/src_netbsd-10/src
 > 1 thinkpad$
 >
 >
 > Here is the backtrace from the core file:
 >
 > 0 thinkpad$ gdb /usr/src_netbsd-10/tooldir/bin/nbsed nbsed.core
 >
 > GNU gdb (GDB) 11.0.50.20200914-git
 > Copyright (C) 2020 Free Software Foundation, Inc.
 > License GPLv3+: GNU GPL version 3 or later <
 > http://gnu.org/licenses/gpl.html>
 > This is free software: you are free to change and redistribute it.
 > There is NO WARRANTY, to the extent permitted by law.
 > Type "show copying" and "show warranty" for details.
 > This GDB was configured as "x86_64--netbsd".
 > Type "show configuration" for configuration details.
 > For bug reporting instructions, please see:
 > <https://www.gnu.org/software/gdb/bugs/>.
 > Find the GDB manual and other documentation resources online at:
 >     <http://www.gnu.org/software/gdb/documentation/>.
 >
 > For help, type "help".
 > Type "apropos word" to search for commands related to "word"...
 > Reading symbols from /usr/src_netbsd-10/tooldir/bin/nbsed...
 > [New process 4736]
 > Core was generated by `nbsed'.
 > Program terminated with signal SIGSEGV, Segmentation fault.
 > #0  0x000000000040d501 in CHIN ()
 > (gdb) bt
 > #0  0x000000000040d501 in CHIN ()
 > #1  0x000000000041600c in mstep ()
 > #2  0x0000000000415a02 in mwalk ()
 > #3  0x00000000004139a5 in mmatcher ()
 > #4  0x0000000000416598 in regexec ()
 > #5  0x0000000000407bb8 in regexec_e ()
 > #6  0x0000000000406b15 in applies ()
 > #7  0x0000000000405ebd in process ()
 > #8  0x0000000000405043 in main ()
 > (gdb)
 > 0 thinkpad$
 >
 > When I ran find(1) to locate the core file for this crash, I noticed that
 > there was another core file for nbsed in external/bsd/nvi/catalog/ with a
 > slightly different backtrace:
 >
 > 0 thinkpad$ gdb /usr/src_netbsd-10/tooldir/bin/nbsed nbsed.core
 >
 > GNU gdb (GDB) 11.0.50.20200914-git
 > Copyright (C) 2020 Free Software Foundation, Inc.
 > License GPLv3+: GNU GPL version 3 or later <
 > http://gnu.org/licenses/gpl.html>
 > This is free software: you are free to change and redistribute it.
 > There is NO WARRANTY, to the extent permitted by law.
 > Type "show copying" and "show warranty" for details.
 > This GDB was configured as "x86_64--netbsd".
 > Type "show configuration" for configuration details.
 > For bug reporting instructions, please see:
 > <https://www.gnu.org/software/gdb/bugs/>.
 > Find the GDB manual and other documentation resources online at:
 >     <http://www.gnu.org/software/gdb/documentation/>.
 >
 > For help, type "help".
 > Type "apropos word" to search for commands related to "word"...
 > Reading symbols from /usr/src_netbsd-10/tooldir/bin/nbsed...
 > [New process 7824]
 > Core was generated by `nbsed'.
 > Program terminated with signal SIGSEGV, Segmentation fault.
 > #0  0x000000000040d501 in CHIN ()
 > (gdb) bt
 > #0  0x000000000040d501 in CHIN ()
 > #1  0x000000000041600c in mstep ()
 > #2  0x0000000000415a02 in mwalk ()
 > #3  0x00000000004139ff in mmatcher ()
 > #4  0x0000000000416598 in regexec ()
 > #5  0x0000000000407bb8 in regexec_e ()
 > #6  0x0000000000406ca9 in substitute ()
 > #7  0x000000000040654c in process ()
 > #8  0x0000000000405043 in main ()
 > (gdb)
 > 0 thinkpad$
 >
 > The environment has LC_CTYPE=3Den_US.UTF-8 which as far as I can tell is =
 the
 > default.
 > >How-To-Repeat:
 > 0 thinkpad$ cat set_env.sh
 > export HOST_SH=3D'/bin/sh'
 > export HOST_CC=3D'/usr/bin/cc'
 > export HOST_CFLAGS=3D''
 > export HOST_CXX=3D'c++'
 > export HOST_CXXFLAGS=3D''
 > export MACHINE=3D'amd64'
 > export MACHINE_ARCH=3D'x86_64'
 > export MAKE=3D'/usr/bin/make'
 > export MAKEFLAGS=3D''
 > #export MAKEOBJDIR ?
 > export MAKEOBJDIRPREFIX=3D'/usr/src_netbsd-10/makeobjdirprefix'
 > export MAKECONF=3D'/usr/src_netbsd-10/mk.conf'
 > #INSTALLBOOT_BOARDS=3D''
 > #INSTALLBOOT_UBOOT_PATHS=3D''
 >
 > 0 thinkpad$ cat mk.conf
 > DESTDIR=3D/usr/src_netbsd-10/destdir
 > MKDEBUG=3Dyes
 > MKDEBUGLIB=3Dyes
 > #MKKDEBUG=3Dyes
 > MKSTRIPSYM=3Dno
 > MKUNPRIVED=3Dyes
 > MKUPDATE=3Dyes
 > MKX11=3Dyes
 > TOOLDIR=3D/usr/src_netbsd-10/tooldir
 > USETOOLS=3Dyes
 > X11SRCDIR=3D/usr/src_netbsd-10/xsrc
 > RELEASEDIR=3D/usr/src_netbsd-10/release
 >
 > # not documented in /usr/src/BUILDING
 > # also doesn't work; LLVM is built anyway
 > MKLLVM=3Dno
 >
 > 0 thinkpad$
 >
 > then run /bin/sh, source set_env.sh, cd to src, make obj, make buildworld
 > and wait several days.
 >
 > I'm not sure what the equivalent of this would be when just building
 > xorg/share/nls by itself, or even xorg by itself.
 > >Fix:
 >
 >

 --=20
 renegade6969666@gmail.com
 https://www.facebook.com/profile.php?id=3D61556020800880
 https://twitter.com/Rose29283220654

 --0000000000000204fd0614e34e09
 Content-Type: text/html; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable

 <div dir=3D"ltr">i dont think they are going to support this...<div>i belie=
 ve the recomend we use the build script</div></div><br><div class=3D"gmail_=
 quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Mar 30, 2024 at 12:25=
 =E2=80=AFPM &lt;<a href=3D"mailto:rwhitlock22@gmail.com">rwhitlock22@gmail.=
 com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"marg=
 in:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1e=
 x">&gt;Number:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A058092<br>
 &gt;Category:=C2=A0 =C2=A0 =C2=A0 =C2=A0bin<br>
 &gt;Synopsis:=C2=A0 =C2=A0 =C2=A0 =C2=A0nbsed dumped core during buildworld=
 <br>
 &gt;Confidential:=C2=A0 =C2=A0no<br>
 &gt;Severity:=C2=A0 =C2=A0 =C2=A0 =C2=A0critical<br>
 &gt;Priority:=C2=A0 =C2=A0 =C2=A0 =C2=A0medium<br>
 &gt;Responsible:=C2=A0 =C2=A0 bin-bug-people<br>
 &gt;State:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 open<br>
 &gt;Class:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sw-bug<br>
 &gt;Submitter-Id:=C2=A0 =C2=A0net<br>
 &gt;Arrival-Date:=C2=A0 =C2=A0Sat Mar 30 16:25:00 +0000 2024<br>
 &gt;Originator:=C2=A0 =C2=A0 =C2=A0Robert Whitlock<br>
 &gt;Release:=C2=A0 =C2=A0 =C2=A0 =C2=A0 NetBSD 10.0 RC6<br>
 &gt;Organization:<br>
 &gt;Environment:<br>
 NetBSD thinkpad 10.0_RC6 NetBSD 10.0_RC6 (THINKPAD) #0: Tue Mar 26 18:20:30=
  EDT 2024=C2=A0 rob@thinkpad:/usr/src_netbsd-10/arch/amd64/compile/THINKPAD=
  amd64<br>
 <br>
 &gt;Description:<br>
 I was doing a &quot;make buildworld&quot; and nbsed dumped core. Here is th=
 e last of the output from make:<br>
 <br>
 dependall =3D=3D=3D&gt; external/mit/xorg/share/nls/am_ET.UTF-8<br>
 #=C2=A0 =C2=A0 create=C2=A0 am_ET.UTF-8/Compose.ct<br>
 rm -f Compose.ct<br>
 /usr/src_netbsd-10/tooldir/bin/x86_64--netbsd-cpp -undef -traditional=C2=A0=
  &lt; /usr/src_netbsd-10/xsrc/external/mit/libX11/dist/nls/am_ET.UTF-8/Comp=
 ose.pre | /usr/src_netbsd-10/tooldir/bin/nbsed=C2=A0 =C2=A0 -e &#39;/^#=C2=
 =A0 *[0-9][0-9]*=C2=A0 *.*$/d&#39;=C2=A0 -e &#39;/^#line=C2=A0 *[0-9][0-9]*=
 =C2=A0 *.*$/d&#39;=C2=A0 -e &#39;/^[=C2=A0 =C2=A0 =C2=A0]*XCOMM$/s/XCOMM/#/=
 &#39;=C2=A0 -e &#39;/^[=C2=A0 =C2=A0]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/&#39;=C2=
 =A0 -e &#39;/^[=C2=A0 =C2=A0 =C2=A0 =C2=A0]*XHASH/s/XHASH/#/&#39;=C2=A0 -e =
 &#39;/\@\@$/s/\@\@$/\\/&#39; &gt; Compose.ct<br>
 [1]=C2=A0 =C2=A0Done=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
  =C2=A0 =C2=A0 /usr/src_netbsd-10/tooldir/bin/x86_64--netbsd-... |<br>
 =C2=A0 =C2=A0 =C2=A0 Segmentation fault (core dumped) /usr/src_netbsd-10/to=
 oldir/bin/nbsed -e &quot;/^#=C2=A0 ...<br>
 *** Error code 139<br>
 <br>
 Stop.<br>
 make[10]: stopped in /usr/src_netbsd-10/src/external/mit/xorg/share/nls/am_=
 ET.UTF-8<br>
 *** Error code 1<br>
 <br>
 Stop.<br>
 make[9]: stopped in /usr/src_netbsd-10/src/external/mit/xorg/share/nls/am_E=
 T.UTF-8<br>
 *** Error code 1<br>
 <br>
 Stop.<br>
 make[8]: stopped in /usr/src_netbsd-10/src/external/mit/xorg/share/nls<br>
 *** Error code 1<br>
 <br>
 Stop.<br>
 make[7]: stopped in /usr/src_netbsd-10/src/external/mit/xorg/share<br>
 *** Error code 1<br>
 <br>
 Stop.<br>
 make[6]: stopped in /usr/src_netbsd-10/src/external/mit/xorg<br>
 *** Error code 1<br>
 <br>
 Stop.<br>
 make[5]: stopped in /usr/src_netbsd-10/src/external/mit<br>
 *** Error code 1<br>
 <br>
 Stop.<br>
 make[4]: stopped in /usr/src_netbsd-10/src/external<br>
 *** Error code 1<br>
 <br>
 Stop.<br>
 make[3]: stopped in /usr/src_netbsd-10/src<br>
 *** Error code 1<br>
 <br>
 Stop.<br>
 make[2]: stopped in /usr/src_netbsd-10/src<br>
 *** Error code 1<br>
 <br>
 Stop.<br>
 make[1]: stopped in /usr/src_netbsd-10/src<br>
 *** Error code 1<br>
 <br>
 Stop.<br>
 make: stopped in /usr/src_netbsd-10/src<br>
 1 thinkpad$ <br>
 <br>
 <br>
 Here is the backtrace from the core file:<br>
 <br>
 0 thinkpad$ gdb /usr/src_netbsd-10/tooldir/bin/nbsed nbsed.core=C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <br>
 GNU gdb (GDB) 11.0.50.20200914-git<br>
 Copyright (C) 2020 Free Software Foundation, Inc.<br>
 License GPLv3+: GNU GPL version 3 or later &lt;<a href=3D"http://gnu.org/li=
 censes/gpl.html" rel=3D"noreferrer" target=3D"_blank">http://gnu.org/licens=
 es/gpl.html</a>&gt;<br>
 This is free software: you are free to change and redistribute it.<br>
 There is NO WARRANTY, to the extent permitted by law.<br>
 Type &quot;show copying&quot; and &quot;show warranty&quot; for details.<br=
 >
 This GDB was configured as &quot;x86_64--netbsd&quot;.<br>
 Type &quot;show configuration&quot; for configuration details.<br>
 For bug reporting instructions, please see:<br>
 &lt;<a href=3D"https://www.gnu.org/software/gdb/bugs/" rel=3D"noreferrer" t=
 arget=3D"_blank">https://www.gnu.org/software/gdb/bugs/</a>&gt;.<br>
 Find the GDB manual and other documentation resources online at:<br>
 =C2=A0 =C2=A0 &lt;<a href=3D"http://www.gnu.org/software/gdb/documentation/=
 " rel=3D"noreferrer" target=3D"_blank">http://www.gnu.org/software/gdb/docu=
 mentation/</a>&gt;.<br>
 <br>
 For help, type &quot;help&quot;.<br>
 Type &quot;apropos word&quot; to search for commands related to &quot;word&=
 quot;...<br>
 Reading symbols from /usr/src_netbsd-10/tooldir/bin/nbsed...<br>
 [New process 4736]<br>
 Core was generated by `nbsed&#39;.<br>
 Program terminated with signal SIGSEGV, Segmentation fault.<br>
 #0=C2=A0 0x000000000040d501 in CHIN ()<br>
 (gdb) bt<br>
 #0=C2=A0 0x000000000040d501 in CHIN ()<br>
 #1=C2=A0 0x000000000041600c in mstep ()<br>
 #2=C2=A0 0x0000000000415a02 in mwalk ()<br>
 #3=C2=A0 0x00000000004139a5 in mmatcher ()<br>
 #4=C2=A0 0x0000000000416598 in regexec ()<br>
 #5=C2=A0 0x0000000000407bb8 in regexec_e ()<br>
 #6=C2=A0 0x0000000000406b15 in applies ()<br>
 #7=C2=A0 0x0000000000405ebd in process ()<br>
 #8=C2=A0 0x0000000000405043 in main ()<br>
 (gdb) <br>
 0 thinkpad$<br>
 <br>
 When I ran find(1) to locate the core file for this crash, I noticed that t=
 here was another core file for nbsed in external/bsd/nvi/catalog/ with a sl=
 ightly different backtrace:<br>
 <br>
 0 thinkpad$ gdb /usr/src_netbsd-10/tooldir/bin/nbsed nbsed.core=C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <br>
 GNU gdb (GDB) 11.0.50.20200914-git<br>
 Copyright (C) 2020 Free Software Foundation, Inc.<br>
 License GPLv3+: GNU GPL version 3 or later &lt;<a href=3D"http://gnu.org/li=
 censes/gpl.html" rel=3D"noreferrer" target=3D"_blank">http://gnu.org/licens=
 es/gpl.html</a>&gt;<br>
 This is free software: you are free to change and redistribute it.<br>
 There is NO WARRANTY, to the extent permitted by law.<br>
 Type &quot;show copying&quot; and &quot;show warranty&quot; for details.<br=
 >
 This GDB was configured as &quot;x86_64--netbsd&quot;.<br>
 Type &quot;show configuration&quot; for configuration details.<br>
 For bug reporting instructions, please see:<br>
 &lt;<a href=3D"https://www.gnu.org/software/gdb/bugs/" rel=3D"noreferrer" t=
 arget=3D"_blank">https://www.gnu.org/software/gdb/bugs/</a>&gt;.<br>
 Find the GDB manual and other documentation resources online at:<br>
 =C2=A0 =C2=A0 &lt;<a href=3D"http://www.gnu.org/software/gdb/documentation/=
 " rel=3D"noreferrer" target=3D"_blank">http://www.gnu.org/software/gdb/docu=
 mentation/</a>&gt;.<br>
 <br>
 For help, type &quot;help&quot;.<br>
 Type &quot;apropos word&quot; to search for commands related to &quot;word&=
 quot;...<br>
 Reading symbols from /usr/src_netbsd-10/tooldir/bin/nbsed...<br>
 [New process 7824]<br>
 Core was generated by `nbsed&#39;.<br>
 Program terminated with signal SIGSEGV, Segmentation fault.<br>
 #0=C2=A0 0x000000000040d501 in CHIN ()<br>
 (gdb) bt<br>
 #0=C2=A0 0x000000000040d501 in CHIN ()<br>
 #1=C2=A0 0x000000000041600c in mstep ()<br>
 #2=C2=A0 0x0000000000415a02 in mwalk ()<br>
 #3=C2=A0 0x00000000004139ff in mmatcher ()<br>
 #4=C2=A0 0x0000000000416598 in regexec ()<br>
 #5=C2=A0 0x0000000000407bb8 in regexec_e ()<br>
 #6=C2=A0 0x0000000000406ca9 in substitute ()<br>
 #7=C2=A0 0x000000000040654c in process ()<br>
 #8=C2=A0 0x0000000000405043 in main ()<br>
 (gdb) <br>
 0 thinkpad$ <br>
 <br>
 The environment has LC_CTYPE=3Den_US.UTF-8 which as far as I can tell is th=
 e default.<br>
 &gt;How-To-Repeat:<br>
 0 thinkpad$ cat set_env.sh=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <br>
 export HOST_SH=3D&#39;/bin/sh&#39;<br>
 export HOST_CC=3D&#39;/usr/bin/cc&#39;<br>
 export HOST_CFLAGS=3D&#39;&#39;<br>
 export HOST_CXX=3D&#39;c++&#39;<br>
 export HOST_CXXFLAGS=3D&#39;&#39;<br>
 export MACHINE=3D&#39;amd64&#39;<br>
 export MACHINE_ARCH=3D&#39;x86_64&#39;<br>
 export MAKE=3D&#39;/usr/bin/make&#39;<br>
 export MAKEFLAGS=3D&#39;&#39;<br>
 #export MAKEOBJDIR ?<br>
 export MAKEOBJDIRPREFIX=3D&#39;/usr/src_netbsd-10/makeobjdirprefix&#39;<br>
 export MAKECONF=3D&#39;/usr/src_netbsd-10/mk.conf&#39;<br>
 #INSTALLBOOT_BOARDS=3D&#39;&#39;<br>
 #INSTALLBOOT_UBOOT_PATHS=3D&#39;&#39;<br>
 <br>
 0 thinkpad$ cat mk.conf=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<br>
 DESTDIR=3D/usr/src_netbsd-10/destdir<br>
 MKDEBUG=3Dyes<br>
 MKDEBUGLIB=3Dyes<br>
 #MKKDEBUG=3Dyes<br>
 MKSTRIPSYM=3Dno<br>
 MKUNPRIVED=3Dyes<br>
 MKUPDATE=3Dyes<br>
 MKX11=3Dyes<br>
 TOOLDIR=3D/usr/src_netbsd-10/tooldir<br>
 USETOOLS=3Dyes<br>
 X11SRCDIR=3D/usr/src_netbsd-10/xsrc<br>
 RELEASEDIR=3D/usr/src_netbsd-10/release<br>
 <br>
 # not documented in /usr/src/BUILDING<br>
 # also doesn&#39;t work; LLVM is built anyway<br>
 MKLLVM=3Dno<br>
 <br>
 0 thinkpad$ <br>
 <br>
 then run /bin/sh, source set_env.sh, cd to src, make obj, make buildworld a=
 nd wait several days.<br>
 <br>
 I&#39;m not sure what the equivalent of this would be when just building xo=
 rg/share/nls by itself, or even xorg by itself.<br>
 &gt;Fix:<br>
 <br>
 </blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si=
 gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
 iv dir=3D"ltr"><font color=3D"#222222"><a href=3D"mailto:renegade6969666@gm=
 ail.com" target=3D"_blank">renegade6969666@gmail.com</a></font><div><font c=
 olor=3D"#222222"><a href=3D"https://www.facebook.com/profile.php?id=3D61556=
 020800880" target=3D"_blank">https://www.facebook.com/profile.php?id=3D6155=
 6020800880</a><br></font></div><div><font color=3D"#222222"><a href=3D"http=
 s://twitter.com/Rose29283220654" target=3D"_blank">https://twitter.com/Rose=
 29283220654</a><br></font></div></div></div>

 --0000000000000204fd0614e34e09--

From: Rob Whitlock <rwhitlock22@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: bin/58092: nbsed dumped core during buildworld
Date: Sat, 30 Mar 2024 12:37:00 -0400

 > On Mar 30, 2024, at 12:35 PM, Justin Parrott =
 <renegade6969666@gmail.com> wrote:
 >=20
 > The following reply was made to PR bin/58092; it has been noted by =
 GNATS.
 >=20
 > From: Justin Parrott <renegade6969666@gmail.com>
 > To: gnats-bugs@netbsd.org
 > Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
 > Subject: Re: bin/58092: nbsed dumped core during buildworld
 > Date: Sat, 30 Mar 2024 12:32:28 -0400
 >=20
 > --0000000000000204fd0614e34e09
 > Content-Type: text/plain; charset=3D"UTF-8"
 > Content-Transfer-Encoding: quoted-printable
 >=20
 > i dont think they are going to support this...
 > i believe the recomend we use the build script

 build.sh or not, it should never dump core.

From: Justin Parrott <renegade6969666@gmail.com>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, rwhitlock22@gmail.com
Subject: Re: bin/58092: nbsed dumped core during buildworld
Date: Sat, 30 Mar 2024 12:42:08 -0400

 --0000000000009aa80b0614e37051
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable

 isnt 10 a release candidate?

 On Sat, Mar 30, 2024 at 12:40=E2=80=AFPM Rob Whitlock <rwhitlock22@gmail.co=
 m> wrote:

 > The following reply was made to PR bin/58092; it has been noted by GNATS.
 >
 > From: Rob Whitlock <rwhitlock22@gmail.com>
 > To: gnats-bugs@netbsd.org
 > Cc:
 > Subject: Re: bin/58092: nbsed dumped core during buildworld
 > Date: Sat, 30 Mar 2024 12:37:00 -0400
 >
 >  > On Mar 30, 2024, at 12:35 PM, Justin Parrott =3D
 >  <renegade6969666@gmail.com> wrote:
 >  >=3D20
 >  > The following reply was made to PR bin/58092; it has been noted by =3D
 >  GNATS.
 >  >=3D20
 >  > From: Justin Parrott <renegade6969666@gmail.com>
 >  > To: gnats-bugs@netbsd.org
 >  > Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
 >  > Subject: Re: bin/58092: nbsed dumped core during buildworld
 >  > Date: Sat, 30 Mar 2024 12:32:28 -0400
 >  >=3D20
 >  > --0000000000000204fd0614e34e09
 >  > Content-Type: text/plain; charset=3D3D"UTF-8"
 >  > Content-Transfer-Encoding: quoted-printable
 >  >=3D20
 >  > i dont think they are going to support this...
 >  > i believe the recomend we use the build script
 >
 >  build.sh or not, it should never dump core.
 >
 >

 --=20
 renegade6969666@gmail.com
 https://www.facebook.com/profile.php?id=3D61556020800880
 https://twitter.com/Rose29283220654

 --0000000000009aa80b0614e37051
 Content-Type: text/html; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable

 <div dir=3D"ltr">isnt 10 a release candidate?</div><br><div class=3D"gmail_=
 quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Mar 30, 2024 at 12:40=
 =E2=80=AFPM Rob Whitlock &lt;<a href=3D"mailto:rwhitlock22@gmail.com">rwhit=
 lock22@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" =
 style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pa=
 dding-left:1ex">The following reply was made to PR bin/58092; it has been n=
 oted by GNATS.<br>
 <br>
 From: Rob Whitlock &lt;<a href=3D"mailto:rwhitlock22@gmail.com" target=3D"_=
 blank">rwhitlock22@gmail.com</a>&gt;<br>
 To: <a href=3D"mailto:gnats-bugs@netbsd.org" target=3D"_blank">gnats-bugs@n=
 etbsd.org</a><br>
 Cc: <br>
 Subject: Re: bin/58092: nbsed dumped core during buildworld<br>
 Date: Sat, 30 Mar 2024 12:37:00 -0400<br>
 <br>
 =C2=A0&gt; On Mar 30, 2024, at 12:35 PM, Justin Parrott =3D<br>
 =C2=A0&lt;<a href=3D"mailto:renegade6969666@gmail.com" target=3D"_blank">re=
 negade6969666@gmail.com</a>&gt; wrote:<br>
 =C2=A0&gt;=3D20<br>
 =C2=A0&gt; The following reply was made to PR bin/58092; it has been noted =
 by =3D<br>
 =C2=A0GNATS.<br>
 =C2=A0&gt;=3D20<br>
 =C2=A0&gt; From: Justin Parrott &lt;<a href=3D"mailto:renegade6969666@gmail=
 .com" target=3D"_blank">renegade6969666@gmail.com</a>&gt;<br>
 =C2=A0&gt; To: <a href=3D"mailto:gnats-bugs@netbsd.org" target=3D"_blank">g=
 nats-bugs@netbsd.org</a><br>
 =C2=A0&gt; Cc: <a href=3D"mailto:gnats-admin@netbsd.org" target=3D"_blank">=
 gnats-admin@netbsd.org</a>, <a href=3D"mailto:netbsd-bugs@netbsd.org" targe=
 t=3D"_blank">netbsd-bugs@netbsd.org</a><br>
 =C2=A0&gt; Subject: Re: bin/58092: nbsed dumped core during buildworld<br>
 =C2=A0&gt; Date: Sat, 30 Mar 2024 12:32:28 -0400<br>
 =C2=A0&gt;=3D20<br>
 =C2=A0&gt; --0000000000000204fd0614e34e09<br>
 =C2=A0&gt; Content-Type: text/plain; charset=3D3D&quot;UTF-8&quot;<br>
 =C2=A0&gt; Content-Transfer-Encoding: quoted-printable<br>
 =C2=A0&gt;=3D20<br>
 =C2=A0&gt; i dont think they are going to support this...<br>
 =C2=A0&gt; i believe the recomend we use the build script<br>
 <br>
 =C2=A0build.sh or not, it should never dump core.<br>
 <br>
 </blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si=
 gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
 iv dir=3D"ltr"><font color=3D"#222222"><a href=3D"mailto:renegade6969666@gm=
 ail.com" target=3D"_blank">renegade6969666@gmail.com</a></font><div><font c=
 olor=3D"#222222"><a href=3D"https://www.facebook.com/profile.php?id=3D61556=
 020800880" target=3D"_blank">https://www.facebook.com/profile.php?id=3D6155=
 6020800880</a><br></font></div><div><font color=3D"#222222"><a href=3D"http=
 s://twitter.com/Rose29283220654" target=3D"_blank">https://twitter.com/Rose=
 29283220654</a><br></font></div></div></div>

 --0000000000009aa80b0614e37051--

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.