Subject: broken pthreads in 2.0_RC4
To: None <port-vax@netbsd.org>
From: Jonathan A. Kollasch <jakollasch@mcleodusa.net>
List: port-vax
Date: 10/20/2004 12:40:19
Hi,
	Well, after finally having enough (bandwidth|time) (aren't InstallFests 
great) and installing 2.0_RC4 (I am using the 20041013 build) on this 
emulated VAX; I decided to try NetBSD's new pthread implementation. The 
results here were spectacular failure. This seems similar to PR 22490 (the 
code listed there gives only a core dump in this case). This is not exactly 
like 22490 though. In this case the DEBUG option is disabled (I am using the 
GENERIC kernel).
The program will dump core or a segment violation happens in kernel mode.

die is from code in pr22490.
# ./die
Segmentation fault (core dumped)

pthread is from pthread1.c listed on the website listed below.
# ./pthread
panic: Segv in kernel mode: pc 801610b0 addr 838cdf98
Stopped in pid 364.1 (pthread) at       netbsd:trap+0x297:      movl    $2, 
-72(
fp)
db>

Example pthread code from 
http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html
either dumps core or drops kernel into debugger.

First of all, does any this code work on any other ports running a 2.0_RC 
(i.e. 
i386, macppc)?
Does this deserve (a|another) PR?

Otherwise 2.0 seems good so far (at least with stuff that was working back in 
1.x)

	Jonathan Kollasch