Subject: Re: non-exec stack problems with multithreaded programs
To: Jason Thorpe <thorpej@wasabisystems.com>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: port-i386
Date: 12/10/2003 12:52:54
This is a multipart MIME message.

--==_Exmh_22541590276800
Content-Type: text/plain; charset=us-ascii


thorpej@wasabisystems.com said:
> It's used for nested functions, too. 

Good - this allows for a nice little MI regression test.

bets regards
Matthias



--==_Exmh_22541590276800
Content-Type: text/plain ; name="nest2.c"; charset=us-ascii
Content-Description: nest2.c
Content-Disposition: attachment; filename="nest2.c"

#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>

int
main()
{
	pthread_t t1, t2;

	void *mist(void *p)
	{
		printf("mist\n");
		return (0);
	}

	pthread_create(&t1, 0, mist, 0);
	pthread_create(&t2, 0, mist, 0);
	pthread_join(t1, 0);
	pthread_join(t2, 0);
	exit(0);
}

--==_Exmh_22541590276800--