Subject: pkg/25048: new p5-Tk always core dumps
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <rquinn@sec.sprint.net>
List: pkgsrc-bugs
Date: 04/04/2004 06:59:15
>Number:         25048
>Category:       pkg
>Synopsis:       new p5-Tk always core dumps
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 04 07:00:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Rob Quinn
>Release:        NetBSD-current pkgsrc-current
>Organization:
>Environment:
NetBSD spiral.example.com 2.0B NetBSD 2.0B (SPIRAL) #42: Sat Apr  3 05:46:06 EST 2004  root@spiral.example.com:/usr/obj/SPIRAL i386

>Description:
 Since the upgrade to p5-Tk (around Mar 23?) my p5-Tk programs cause perl
to dump core.  "widget", which is part of p5-Tk, also causes perl to core.

 I'm using perl5.8 from pkgsrc.  I'm not very familiar with the perl
debugger.  If I try to run "perl -d" on widget the program hangs,
consuming 100% of the CPU.  ktruss says it's looping between "setcontext"
and "SIGSEGV".

>How-To-Repeat:
spiral:~ %widget
Segmentation fault (core dumped)
spiral:~ %ls -l *.core
-rw-------  1 rquinn  rquinn  5345280 Apr  4 01:47 perl.core


(gdb) set args /usr/pkg/bin/widget
(gdb) run
Starting program: /usr/pkg/bin/perl /usr/pkg/bin/widget
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x4831f3e2 in Tcl_UtfToExternalDString ()
   from /usr/pkg/lib/perl5/site_perl/5.8.3/i386-netbsd/auto/Tk/Tk.so

>Fix:

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