NetBSD-Bugs archive

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

lib/48559: libpthread requires COMPAT_60



>Number:         48559
>Category:       lib
>Synopsis:       libpthread requires COMPAT_60
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 29 12:25:00 +0000 2014
>Originator:     Martin Husemann
>Release:        NetBSD 6.99.30
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD plug.duskware.de 6.99.30 NetBSD 6.99.30 (PLUG) #2: Wed Jan 29 
00:00:12 CET 2014 
martin%night-owl.duskware.de@localhost:/usr/src/sys/arch/evbarm/compile/PLUG 
evbarm
Architecture: earm
Machine: evbarm
>Description:

I have a fresh installed system, no old binaries, so I removed all COMPAT_
options from the kernel.

This conftest.c program now fails:

#include <pthread.h>
int check_me = 0;
void* func(void* data) {check_me = 42; return &check_me;}
int main()
{ pthread_t t;
  void *ret;
  pthread_create (&t, 0, func, 0);
  pthread_join (t, &ret);
  return (check_me != 42 || ret != &check_me);
}

with:

 19390      1 a.out    CALL  compat_60__lwp_park(0,0,0x4020a020,0x4020a020)
 19390      1 a.out    RET   compat_60__lwp_park -1 errno 78 Function not 
implemented
 19390      2 a.out    PSIG  SIGSYS SIG_DFL: code=SI_NOINFO

>How-To-Repeat:
s/a

>Fix:
n/a



Home | Main Index | Thread Index | Old Index