Subject: pkg/18236: pth with syscall-hard hangs on NetBSD/amiga, maybe on m68k in general
To: None <gnats-bugs@gnats.netbsd.org>
From: Klaus Heinz <k.heinz.sep.zwei@onlinehome.de>
List: netbsd-bugs
Date: 09/09/2002 02:08:02
>Number:         18236
>Category:       pkg
>Synopsis:       pth with syscall-hard hangs on NetBSD/amiga, maybe on m68k in general
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 08 17:10:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Klaus Heinz
>Release:        NetBSD 1.5.2
>Organization:
none
>Environment:
System: NetBSD rainbow 1.5.2 NetBSD 1.5.2 (GENERIC) #0: Sat Aug 18 2 0:43:49 MDT 2001 mhitch@amiga.msu.montana.edu:/work/src/sys/arch/amiga/compile/GENERIC amiga


>Description:
	Building devel/glib-1.2.10 on NetBSD/amiga 1.5.2 with
	pth-syscall-1.4.1nb1 does not work. The 'configure' script
	hangs at this point:
	  ...
	  checking for getpwuid_r... no
	  checking whether pthread_getspecific is posix like... yes
	  checking whether pthread_mutex_trylock is posix like...

	The source of the test files is appended at the end.

	Today I updated pth-syscall (now package 'pth' with
	--enable-syscall-hard) to pth-1.4.1nb2.
	'make test' in pkgsrc/devel/pth does not succeed but hangs at
	the first test (program test_std).

	On NetBSD/amiga 1.6_RC1 'make test' succeeds. I had no machine
	with 1.5.3 available for testing.
>How-To-Repeat:
	Do the following:
	  $ cd pkgsrc/devel/pth
	  $ make install
	  ...
	  $ pkg_info pth
	  Information for pth-1.4.1nb2
	  ...
	  $ make test
	  [ no response ]

	'top' shows this:
	  PID  USERNAME PRI NICE  SIZE   RES STATE TIME   WCPU    CPU COMMAND
	  6702 root     56    0   112K  728K run   1:28 98.05% 97.07% test_std

	The 'configure' test below (from devel/glib-1.2.10) should be
	compiled with
	  cc -I/usr/pkg/include -L/usr/pkg/lib -R/usr/pkg/lib conftest.c
	  -o conftest -lpthread

>Fix:
	none known

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	confdefs.h
#	conftest.c
#
echo x - confdefs.h
sed 's/^X//' >confdefs.h << 'END-of-confdefs.h'
X
X#define GLIB_MAJOR_VERSION 1
X#define GLIB_MINOR_VERSION 2
X#define GLIB_MICRO_VERSION 23
X#define GLIB_INTERFACE_AGE 10
X#define GLIB_BINARY_AGE 10
X#define G_COMPILED_WITH_DEBUGGING "minimum"
X#define STDC_HEADERS 1
X#define HAVE_VPRINTF 1
X#define HAVE_ATEXIT 1
X#define SIZEOF_CHAR 1
X#define SIZEOF_SHORT 2
X#define SIZEOF_LONG 4
X#define SIZEOF_INT 4
X#define SIZEOF_VOID_P 4
X#define SIZEOF_LONG_LONG 8
X#define G_HAVE___INLINE 1
X#define G_HAVE___INLINE__ 1
X#define G_HAVE_INLINE 1
X#define WORDS_BIGENDIAN 1
X#define HAVE_FLOAT_H 1
X#define HAVE_FLOAT_H 1
X#define HAVE_LIMITS_H 1
X#define HAVE_LIMITS_H 1
X#define HAVE_PWD_H 1
X#define HAVE_PWD_H 1
X#define HAVE_SYS_PARAM_H 1
X#define HAVE_SYS_PARAM_H 1
X#define HAVE_SYS_POLL_H 1
X#define HAVE_SYS_POLL_H 1
X#define HAVE_SYS_SELECT_H 1
X#define HAVE_SYS_SELECT_H 1
X#define HAVE_SYS_TIME_H 1
X#define HAVE_SYS_TIME_H 1
X#define HAVE_SYS_TIMES_H 1
X#define HAVE_SYS_TIMES_H 1
X#define HAVE_UNISTD_H 1
X#define HAVE_UNISTD_H 1
X#define HAVE_LSTAT 1
X#define HAVE_STRERROR 1
X#define HAVE_STRSIGNAL 1
X#define HAVE_MEMMOVE 1
X#define HAVE_VSNPRINTF 1
X#define HAVE_STRCASECMP 1
X#define HAVE_STRNCASECMP 1
X#define HAVE_POLL 1
X#define HAVE_WCHAR_H 1
X#define HAVE_BROKEN_WCTYPE 1
X#define REALLOC_0_WORKS 1
X#define G_VA_COPY va_copy
X#define HAVE_LOCALTIME_R 1
X#define HAVE_RAND_R 1
X#define HAVE_PTHREAD_GETSPECIFIC_POSIX 1
END-of-confdefs.h
echo x - conftest.c
sed 's/^X//' >conftest.c << 'END-of-conftest.c'
X#include "confdefs.h"
X#include <pthread.h>
X			pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
X			int main () { 
X			return !pthread_mutex_trylock (&mutex); }
END-of-conftest.c
exit

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