Fwd: pthread in glibc 2.2.1

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

 



>From what I have seen the gdb bombs out on 90% of pthread programs as
well. This includes all platforms as far as I am aware. There is a fix
posted on bugzilla stating you need to recompile the gdb from the cvs tree 
and that should fix. However I have had mixed luck.
Hope that helps somewhat!

Sincerely,

James McDermott
>
>Hi,
>even the simplest pthread-program dies with a bus error(see attachment)
>on my I2.  glibc is 2.2.1(same for 2.1.97), kernel is 2.4.0-test9.
>Interesting enough I can't even get a core dump. Any starting points to
>track this down?
>Regards,
>  -- Guido

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
#include <pthread.h>
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int main(argc, argv)
	int argc;
	char **argv;
{
	pthread_t t;
	exit(pthread_create(&t, NULL, task, NULL));
}



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux