Subject: port-vax/21748: ld.elf_so crashes when running tcl-expect on vax
To: None <gnats-bugs@gnats.netbsd.org>
From: None <thorpej@shagadelic.org>
List: netbsd-bugs
Date: 06/01/2003 07:49:54
>Number:         21748
>Category:       port-vax
>Synopsis:       ld.elf_so crashes when running tcl-expect on vax
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-vax-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 01 14:50:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jason R Thorpe
>Release:        NetBSD 1.6P
>Organization:
Wasabi Systems, Inc.
>Environment:
	
	
System: NetBSD simh.fast-100.shagadelic.org 1.6T NetBSD 1.6T (GENERIC) #0: Fri May 30 00:20:10 UTC 2003  autobuild@tgm.daemon.org:/autobuild/HEAD/vax/OBJ/autobuild/HEAD/src/sys/arch/vax/compile/GENERIC vax
Architecture: vax
Machine: vax
>Description:
	When installing tcl-expect from pkgsrc, the installation runs
	the expect binary to process some example scripts.  Doing so
	causes the expect binary to get a SIGSEGV and dump core.

simh:thorpej 39$ gdb ./expect ./expect.core 
GNU gdb 5.0nb1
Copyright 2000 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 "vax--netbsdelf"...(no debugging symbols found)...
Core was generated by `expect'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...
done.
Loaded symbols for /usr/libexec/ld.elf_so
Reading symbols from /usr/pkg/lib/libtcl83.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/pkg/lib/libtcl83.so.1
Reading symbols from /usr/lib/libm.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libm.so.0
Reading symbols from /usr/lib/libutil.so.7...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libutil.so.7
Reading symbols from /usr/lib/libc.so.12...Deprecated bfd_read called at /autobuild/HEAD/src/gnu/dist/toolchain/gdb/dbxread.c line 2638 in elfstab_build_psymtabs
Deprecated bfd_read called at /autobuild/HEAD/src/gnu/dist/toolchain/gdb/dbxread.c line 976 in fill_symbuf
(no debugging symbols found)...doneLoaded symbols for /usr/lib/libc.so.12
#0  0x7f7e34f3 in _rtld_find_symdef (54, 2139078656, 2143289468, 1)
   from /usr/libexec/ld.elf_so
(gdb) where 
#0  0x7f7e34f3 in _rtld_find_symdef (54, 2139078656, 2143289468, 1)
   from /usr/libexec/ld.elf_so
#1  0x7f7e2600 in _rtld_bind (2139078656, 516) from /usr/libexec/ld.elf_so
#2  0x7f7e2444 in _rtld_bind_start (3) from /usr/libexec/ld.elf_so
#3  0x7f7b3d19 in Tcl_DeleteFileHandler (3) from /usr/pkg/lib/libtcl83.so.1
#4  0x7f7e245e in _rtld_bind_start (3) from /usr/libexec/ld.elf_so
#5  0x7f7b3d19 in Tcl_DeleteFileHandler (3) from /usr/pkg/lib/libtcl83.so.1
#6  0x7f7e245e in _rtld_bind_start (3) from /usr/libexec/ld.elf_so
#7  0x7f7b3d19 in Tcl_DeleteFileHandler (3) from /usr/pkg/lib/libtcl83.so.1
#8  0x7f7e245e in _rtld_bind_start (3) from /usr/libexec/ld.elf_so
#9  0x7f7b3d19 in Tcl_DeleteFileHandler (3) from /usr/pkg/lib/libtcl83.so.1
#10 0x7f7e245e in _rtld_bind_start (3) from /usr/libexec/ld.elf_so
#11 0x7f7b3d19 in Tcl_DeleteFileHandler (3) from /usr/pkg/lib/libtcl83.so.1
#12 0x7f7e245e in _rtld_bind_start (3) from /usr/libexec/ld.elf_so
#13 0x7f7b3d19 in Tcl_DeleteFileHandler (3) from /usr/pkg/lib/libtcl83.so.1
#14 0x7f7e245e in _rtld_bind_start (3) from /usr/libexec/ld.elf_so
#15 0x7f7b3d19 in Tcl_DeleteFileHandler (3) from /usr/pkg/lib/libtcl83.so.1
#16 0x7f7e245e in _rtld_bind_start (3) from /usr/libexec/ld.elf_so
#17 0x7f7b3d19 in Tcl_DeleteFileHandler (3) from /usr/pkg/lib/libtcl83.so.1
#18 0x7f7e245e in _rtld_bind_start (3) from /usr/libexec/ld.elf_so
#19 0x7f7b3d19 in Tcl_DeleteFileHandler (3) from /usr/pkg/lib/libtcl83.so.1
#20 0x7f7e245e in _rtld_bind_start (3) from /usr/libexec/ld.elf_so
#21 0x7f7b3d19 in Tcl_DeleteFileHandler (3) from /usr/pkg/lib/libtcl83.so.1
---Type <return> to continue, or q <return> to quit---

	I don't believe that the repeating _rtld_bind_start and
	Tcl_DeleteFileHandler are actually present on the call stack;
	I suspect gdb is simply getting the traceback wrong in this
	case.

>How-To-Repeat:
	cd pkgsrc/lang/tcl-expect; make install

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: