Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

on NetBSD/amd64 (4.99.62), programs built with -pthread die



After upgrading today, even the simplest programs
die if linked with libpthread, e.g. perl's
stdio test program:

#include <stdio.h>
int main() { printf("Ok\n"); return(0); }

I had built new sources and installed them within a couple of days
ago, and this did not happen.

A ktruss of the program above is attached.

Could this possibly be fallout of the change in our gcc configuration
to link to libc by default?  The  intricacies of this scenario are
beyond me, but I'm wondering if perhaps if the elf loader is upset for
some reason.

Of course, this problem could be specific to me; however, I wiped my
MAKEOBJDIRPREFIX and built the tree again to no avail, so I don't see
how ...

Running in-tree applications such as 'dig' which are linked against
libpthread exhibit the same problem.

Thanks for the help.

Regards,

--Blair
 13831      1 ktruss   emul(netbsd)
 13831      1 ktruss   fktrace                     = 0
 13831      1 ktruss   fcntl(0x4, 0x3, 0)          = 1
 13831      1 ktruss   fcntl(0x4, 0x4, 0x1)        = 0
 13831      1 try      emul(netbsd)
 13831      1 try      execve("./try", 0x7f7fffffdcb8, 0x7f7fffffdcc8) 
JUSTRETURN
 13831      1 try      mmap(0, 0x8000, 0x3, 0x1002, 0xffffffff, 0, 0) = 
0x7f7ffdff8000
 13831      1 try      open("/usr/libexec/ld.elf_so", 0, 0) Err#2 ENOENT
 13831      1 try      open("/etc/ld.so.conf", 0, 0x494d414e59445f00) = 3
 13831      1 try      __fstat30(0x3, 0x7f7fffffd410) = 0
 13831      1 try      mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0) = 0x7f7ffdff7000
 13831      1 try      munmap(0x7f7ffdff7000, 0x1000) = 0
 13831      1 try      mmap(0, 0x110000, 0x5, 0x14000002, 0x3, 0, 0) = 
0x7f7ffdc00000
 13831      1 try      mmap(0x7f7ffdd0e000, 0x1000, 0x3, 0x12, 0x3, 0, 0xe000) 
= 0x7f7ffdd0e000
 13831      1 try      mmap(0x7f7ffdd0f000, 0x1000, 0x3, 0x1012, 0xffffffff, 0, 
0) = 0x7f7ffdd0f000
 13831      1 try      mprotect(0x7f7ffdc0e000, 0x100000, 0) = 0
 13831      1 try      close(0x3)                  = 0
 13831      1 try      open("/usr/lib/libpthread.so.0", 0, 0x7379735f5f00) = 3
 13831      1 try      __fstat30(0x3, 0x7f7fffffd410) = 0
 13831      1 try      mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0) = 0x7f7ffdff7000
 13831      1 try      munmap(0x7f7ffdff7000, 0x1000) = 0
 13831      1 try      mmap(0, 0x20c000, 0x5, 0x14000002, 0x3, 0, 0) = 
0x7f7ffd900000
 13831      1 try      mmap(0x7f7ffdaf0000, 0xb000, 0x3, 0x12, 0x3, 0, 0xf0000) 
= 0x7f7ffdaf0000
 13831      1 try      mmap(0x7f7ffdafb000, 0x11000, 0x3, 0x1012, 0xffffffff, 
0, 0) = 0x7f7ffdafb000
 13831      1 try      mprotect(0x7f7ffd9f1000, 0xff000, 0) = 0
 13831      1 try      close(0x3)                  = 0
 13831      1 try      __fstat30(0x1, 0x7f7fffffdae0) = 0
 13831      1 try      __sysctl(0x7f7fffffd6f0, 0x2, 0x7f7ffdb02ef0, 
0x7f7fffffd6e8, 0, 0) = 0
 13831      1 try      __sysctl(0x7f7fffffd610, 0x2, 0x7f7ffdb0aaa0, 
0x7f7fffffd608, 0, 0) = 0
 13831      1 try      readlink("/usr/lib/libc.so.12", 0x7f7fffffd700, 0x400) 
Err#2 ENOENT
 13831      1 try      issetugid()                 = 0
 13831      1 try      mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0) = 
0x7f7ffdff7000
 13831      1 try      SIGSEGV SIG_DFL


Home | Main Index | Thread Index | Old Index