NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/58092: nbsed dumped core during buildworld
>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/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:
Home |
Main Index |
Thread Index |
Old Index