Re: new thread test: error printing - fix

2002-11-26 Thread Niels Möller
Michal 'hramrach' Suchanek <[EMAIL PROTECTED]> writes: > static void > entry_point (void *(*start_routine)(void *), void *arg) > { > + assert (uselocale (LC_GLOBAL_LOCALE) == 0); >pthread_exit (start_routine (arg)); > } That's a misuse of assert. You should never depend on sideeffects in

Posix semaphore again

2002-11-26 Thread Michal 'hramrach' Suchanek
This time I made a simple test that tries post and wait. I can synchronize two threads without a segfault. -- Michal Suchanek [EMAIL PROTECTED] diff -Nurx CVS libpthread.org/Makefile libpthread/Makefile --- libpthread.org/Makefile 2002-11-26 19:04:34.0 +0100 +++ libpthread/Makefile 2

Re: new thread test: error printing - fix

2002-11-26 Thread Neal H. Walfield
> And a simple fix to libpthread that makes it not segfault. I have committed something similar. ___ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd

Re: new thread test: error printing - fix

2002-11-26 Thread Michal 'hramrach' Suchanek
On Tue, Nov 26, 2002 at 05:52:52PM +0100, Michal 'hramrach' Suchanek wrote: > Attaching a simple error printing program that segfaults > for me. And a simple fix to libpthread that makes it not segfault. But I'm not sure the fix implements exactly the right thing. But it makes initial thread locale

Re: [Hurd-devel-readers] Re: Hurd-devel-readers -- confirmation of subscription -- request 613956

2002-11-26 Thread Alfred M. Szmidt
Argh, I'm an idiot. I removed the wrong field. ___ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd

Re: [Hurd-devel-readers] Re: Hurd-devel-readers -- confirmation of subscription -- request 613956

2002-11-26 Thread Alfred M. Szmidt
Wrong list. Please read the email you recived more carefully. > To confirm the request, please send a message to > [EMAIL PROTECTED], and either: ___ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd

new thread test: error printing

2002-11-26 Thread Michal 'hramrach' Suchanek
I tried to write a semaphore test and it always segfaulted while printing an error. Attaching a simple error printing program that segfaults (after pthread_create) for me. -- Michal Suchanek [EMAIL PROTECTED] #define _GNU_SOURCE #include #include #include #include #include #include #incl

Re: new libc package: localedef broken?

2002-11-26 Thread Jeff Bailey
On Tue, 2002-11-26 at 05:06, Michal 'hramrach' Suchanek wrote: > Generating locales... > cs_CZ.UTF-8...cannot lock locale archive "/usr/lib/locale/locale-archive": >Operation canceled > > During first install it generated only the first locale, all subsequent > invocations failed. The locales

new libc package: localedef broken?

2002-11-26 Thread Michal 'hramrach' Suchanek
It appears localedef locks /usr/lib/locale/locale-archive the first time it runs but never unlocks it. ii libc0.32.3.1-5 part of output of apt-get --reinstall install locales: Generating locales... cs_CZ.UTF-8...cannot lock locale archive "/usr/lib/locale/locale-archive": Operation