Subject: Re: ptl2-990622 netbsd installation breakage
To: None <>
From: Bill Studenmund <>
List: tech-pkg
Date: 01/11/2000 10:45:58
I've been helping Jeff with this, and we've now hit a new problem.

The system is an i386 ELF with a Septemberish userland and a December

The problem we're running into now is that there is some sort of problem
initializing. Something goes wrong in init(), and a call gets made to
ioctl() in the ptl2 package. That in turn calls IOCTL in libaltsys, which
tries to call the libc ioctl() by looking in a table. But it's done at a
time when the table still points to the plt2 ioctl().

So ptl2:ioctl() calls IOCTL() which calls ptl2:ioctl() which calls ...

We filled 2 MB worth of stack rather quickly and went deeper than we cared
to step through with gdb's bt command. :-)

Here's a stack trace with just one round of iteration:

(gdb) bt
#0  ioctl (fd=0, cmd=1076655123, arg=0xefbfd8b4)
#1  0x4810f8b8 in IOCTL ()
#2  0x480fc752 in ioctl (fd=0, cmd=1076655123, arg=0xefbfd8b4)
#3  0x481978cc in tcgetattr ()
#4  0x4819787b in isatty ()
#5  0x480fa3ca in _pthread_io_fdinit (fd=0)
    at /usr/pkgsrc/devel/ptl2/work.i386/PTL2-current-990622/src/io.c:356
#6  0x480fa209 in _pthread_io_init ()
    at /usr/pkgsrc/devel/ptl2/work.i386/PTL2-current-990622/src/io.c:281
#7  0x480f9656 in _pthread_init ()
    at /usr/pkgsrc/devel/ptl2/work.i386/PTL2-current-990622/src/init.c:239
#8  0x804aa98 in _pthread_inithook ()
    at /usr/pkg/PTL/include/sys/pthread-init.h:31
#9  0x804aa83 in _dlerror ()
#10 0x8049db7 in _init ()
#11 0x804a870 in _start ()


Take care,