NetBSD Problem Report #21748

Received: (qmail 14483 invoked by uid 605); 1 Jun 2003 14:49:56 -0000
Message-Id: <20030601144954.970EE7BA1@yeah-baby.shagadelic.org>
Date: Sun,  1 Jun 2003 07:49:54 -0700 (PDT)
From: thorpej@shagadelic.org
Sender: gnats-bugs-owner@netbsd.org
Reply-To: thorpej@shagadelic.org
To: gnats-bugs@gnats.netbsd.org
Subject: ld.elf_so crashes when running tcl-expect on vax
X-Send-Pr-Version: 3.95

>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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 01 14:50:00 +0000 2003
>Closed-Date:    Tue Mar 27 16:35:47 +0000 2018
>Last-Modified:  Tue Mar 27 16:35:47 +0000 2018
>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:
State-Changed-From-To: open->suspended
State-Changed-By: ragge@netbsd.org
State-Changed-When: Sun, 31 Dec 2006 13:12:03 +0000
State-Changed-Why:
We currently do not have shared libraries on VAX, so suspend this PR until
the day shared libraries has resurrected.


State-Changed-From-To: suspended->open
State-Changed-By: maya@NetBSD.org
State-Changed-When: Fri, 09 Mar 2018 14:18:15 +0000
State-Changed-Why:
Re-opening because we do have shared libraries now.


State-Changed-From-To: open->closed
State-Changed-By: ragge@NetBSD.org
State-Changed-When: Tue, 27 Mar 2018 16:35:47 +0000
State-Changed-Why:
Testing on NetBSD 6 gave no errors, so time has fixed this problem.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.