[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

`mkastosc' core dumps in build of OPENBSD_2_8 (stable) with debugging flags; internal compiler/assembler errors



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

The error described below, since (from the gdb session below) it does
not appear to occur at an execution point, may be due to a compiler
error that is realised when '-O3 -g3' is used.  Also, build of
`uthread_autoinit.o' below results in an internal error only when `-O3
- -g3' is defined, again supporting the possibility of a compiler error.
Architecture is i386.

I hope that this information helps.

$ cd /usr/src
$ make cleandir && make obj # ok

$ make build DEBUGLIBS=YES BINMODE=511 DEBUG="-O3 -g3" INSTALL_STRIP="" COPTS="-O3 -g3" STRIP="" # fails; tail below

===> usr.bin/tn3270/tools/mkdctype
mkdep -a -I/usr/src/usr.bin/tn3270/tools/mkdctype/.. -I. -nostdinc -idirafter //usr/include /usr/src/usr.bin/tn3270/tools/mkdctype/mkdctype.c /usr/src/usr.bin/tn3270/tools/mkdctype/../../api/ebc_disp.c /usr/src/usr.bin/tn3270/tools/mkdctype/ectype.c
===> usr.bin/tn3270/tn3270
cd /usr/src/usr.bin/tn3270/tn3270/../tools/mkastosc; make
cc -O2  -O3 -g3 -I/usr/src/usr.bin/tn3270/tools/mkastosc/../mkhits -I/usr/src/usr.bin/tn3270/tools/mkastosc/.. -I. -O3 -g3 -nostdinc -idirafter //usr/include -c /usr/src/usr.bin/tn3270/tools/mkastosc/mkastosc.c
cc -O2  -O3 -g3 -I/usr/src/usr.bin/tn3270/tools/mkastosc/../mkhits -I/usr/src/usr.bin/tn3270/tools/mkastosc/.. -I. -O3 -g3 -nostdinc -idirafter //usr/include -c /usr/src/usr.bin/tn3270/tools/mkastosc/../mkhits/dohits.c
cc -O2  -O3 -g3 -I/usr/src/usr.bin/tn3270/tools/mkastosc/../mkhits -I/usr/src/usr.bin/tn3270/tools/mkastosc/.. -I. -O3 -g3 -nostdinc -idirafter //usr/include -c /usr/src/usr.bin/tn3270/tools/mkastosc/../../api/asc_ebc.c
cc -O2  -O3 -g3 -I/usr/src/usr.bin/tn3270/tools/mkastosc/../mkhits -I/usr/src/usr.bin/tn3270/tools/mkastosc/.. -I. -O3 -g3 -nostdinc -idirafter //usr/include -c /usr/src/usr.bin/tn3270/tools/mkastosc/../../api/ebc_disp.c
cc -O3 -g3 -o mkastosc -nostdlib -L//usr/lib //usr/lib/crt0.o  mkastosc.o dohits.o asc_ebc.o ebc_disp.o  -lgcc -lc -lgcc /usr/src/usr.bin/tn3270/tools/mkastosc/obj/mkastosc /usr/src/usr.bin/tn3270/tn3270/../ctlr/hostctlr.h  /usr/src/usr.bin/tn3270/tn3270/../ctlr/function.h < /usr/src/usr.bin/tn3270/tn3270/../ctlr/unix.kbd  > astosc.OUT
Memory fault
*** Error code 139

Stop in /usr/src/usr.bin/tn3270/tn3270 (line 55 of /usr/src/usr.bin/tn3270/tn3270/Makefile).
*** Error code 1

Stop in /usr/src/usr.bin/tn3270.
*** Error code 1

Stop in /usr/src/usr.bin.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src (line 79 of Makefile).
zsh: 26316 exit 1

$ gdb /usr/src/usr.bin/tn3270/tools/mkastosc/obj/mkastosc
GNU gdb 4.16.1
Copyright 1996 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd2.8"...
(gdb) run
Starting program: /usr/src/usr.bin/tn3270/tools/mkastosc/obj/mkastosc

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
You can't do that without a process to debug
(gdb) bt
No stack.
(gdb) quit

$ /usr/src/usr.bin/tn3270/tools/mkastosc/obj/mkastosc
zsh: 27721 segmentation fault (core dumped)  /usr/src/usr.bin/tn3270/tools/mkastosc/obj/mkastosc
$ gdb -c mkastosc.core /usr/src/usr.bin/tn3270/tools/mkastosc/obj/mkastosc
GNU gdb 4.16.1
Copyright 1996 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd2.8"...
Core was generated by `mkastosc'.
Program terminated with signal 11, Segmentation fault.
#0  0x1025 in ?? () at /usr/src/lib/csu/i386/../common.c:41
41              struct _dynamic *dp;
(gdb) bt
#0  0x1025 in ?? () at /usr/src/lib/csu/i386/../common.c:41
(gdb) l
36      typedef int (*rtld_entry_fn) __P((int, struct crt_ldso *));
37      static struct ld_entry  *ld_entry;
38
39      static void
40      __load_rtld(dp)
41              struct _dynamic *dp;
42      {
43              static struct crt_ldso  crt;
44              struct exec     hdr;
45              rtld_entry_fn   entry;
(gdb) q

$ CFLAGS='-O2 -g3 -I ../arch/i386 -I. -I.. -I../../libc/include' make uthread_autoinit.o # ok
cc -O2 -g3 -I ../arch/i386 -I. -I.. -I../../libc/include  -c uthread_autoinit.c
$ rm uthread_autoinit.o
$ CFLAGS='-O3 -g3 -I ../arch/i386 -I. -I.. -I../../libc/include' make uthread_autoinit.o # not ok
cc -O3 -g3 -I ../arch/i386 -I. -I.. -I../../libc/include  -c uthread_autoinit.c
/tmp/ccK31858.s: Assembler messages:
/tmp/ccK31858.s:297: Error: Local symbol LBB3 never defined.
/tmp/ccK31858.s:297: Error: Local symbol LBE3 never defined.
/tmp/ccK31858.s:297: Fatal error:2 errors, 0 warnings, no object file generated.

*** Error code 1

Stop in /usr/src/lib/libc_r/uthread.
zsh: 17184 exit 1

Michael Lee Crogan -- <mcrogan@purdue.edu> -- Purdue University

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)

iD8DBQE6WKZ5Iw2dkfh5sRQRAggIAJ9lmUJsVnWNfJjXf1YZiVqiY1UaigCgwsCi
U1WRIcVT2p1Lf1EN3rnu/rg=
=1hdm
-----END PGP SIGNATURE-----