Subject: pkg/32484: scotty coredumps
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <wulf@netbsd.org>
List: pkgsrc-bugs
Date: 01/09/2006 06:00:00
>Number:         32484
>Category:       pkg
>Synopsis:       scotty coredumps
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 09 06:00:00 +0000 2006
>Originator:     Berndt Josef Wulf
>Release:        NetBSD-i386-current
>Organization:
NTC-Electronics
>Environment:
NetBSD barossa 3.99.15 NetBSD 3.99.15 (HOTDOG) #0: Thu Jan  5 16:12:59 CST 2006  wulf@barossa:/sys/arch/i386/compile/HOTDOG i386
>Description:
Execution of scotty or tkined will result in a coredump with following message:

_res is not supported for multi-threaded programs.

gdboutputs the following:

#0  0xbba9cccb in kill () from /usr/lib/libc.so.12
#1  0xbbb2651b in abort () from /usr/lib/libc.so.12
#2  0xbba62770 in __res_state () from /usr/lib/libpthread.so.0
#3  0xb8fbec56 in DnsInit () from /usr/pkg/lib/libtnm.so
#4  0xb8fbfa9d in Tnm_DnsCmd () from /usr/pkg/lib/libtnm.so
#5  0xbbb69fc7 in TclInvokeStringCommand () from /usr/pkg/lib/libtcl84.so.1
#6  0xbbb6ae55 in TclEvalObjvInternal () from /usr/pkg/lib/libtcl84.so.1
#7  0xbbb8e1c4 in TclExecuteByteCode () from /usr/pkg/lib/libtcl84.so.1
#8  0xbbb8d671 in TclCompEvalObj () from /usr/pkg/lib/libtcl84.so.1
#9  0xbbbbb1ec in TclObjInterpProc () from /usr/pkg/lib/libtcl84.so.1
#10 0xbbb6ae55 in TclEvalObjvInternal () from /usr/pkg/lib/libtcl84.so.1
#11 0xbbb8e1c4 in TclExecuteByteCode () from /usr/pkg/lib/libtcl84.so.1
#12 0xbbb8d282 in Tcl_ExprObj () from /usr/pkg/lib/libtcl84.so.1
#13 0xbbb6c6d9 in Tcl_ExprBooleanObj () from /usr/pkg/lib/libtcl84.so.1
#14 0xbbb72862 in Tcl_IfObjCmd () from /usr/pkg/lib/libtcl84.so.1
#15 0xbbb6ae55 in TclEvalObjvInternal () from /usr/pkg/lib/libtcl84.so.1
#16 0xbbb6b8d2 in Tcl_EvalEx () from /usr/pkg/lib/libtcl84.so.1
#17 0xbbba7515 in Tcl_FSEvalFile () from /usr/pkg/lib/libtcl84.so.1
#18 0xbbba6436 in Tcl_EvalFile () from /usr/pkg/lib/libtcl84.so.1
#19 0x080491d6 in _init ()
#20 0x08048d76 in _init ()


>How-To-Repeat:
Build and install net/tcl-scotty and net/tkined
Run tkined

>Fix: