Skip to contentSkip to conversation

pthread in glibc 2.2.1

DISCUSSION James McD 2 participants 2 messages Jan 22, 2001 – Jan 23, 2001 MIPS

lore
Share & tools
lore

James McD

author
#0 lore raw

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

Quoted 8 lines

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));
}
#1 lore raw
Quoted 4 lines
Quoted 4 lines

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?

Last I checked the kernel didn't dump core for multithreaded programs since the core file's data structure doesn't support that yet.

Ralf