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

Bug#197988: marked as done (pthread_cleanup_push broken on Alpha)



Your message dated Sun, 25 Apr 2004 10:54:47 +0900
with message-id <81u0z8bz4o.wl@omega.webmasters.gr.jp>
and subject line Bug#197988: pthread_cleanup_push broken on Alpha
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 18 Jun 2003 22:55:42 +0000
>From falk.hueffner@student.uni-tuebingen.de Wed Jun 18 17:55:42 2003
Return-path: <falk.hueffner@student.uni-tuebingen.de>
Received: from mx03.uni-tuebingen.de [134.2.3.13] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19Slq9-00036Z-00; Wed, 18 Jun 2003 17:55:41 -0500
Received: from juist (semeai.Informatik.Uni-Tuebingen.De [134.2.15.66])
	by mx03.uni-tuebingen.de (8.12.3/8.12.3) with ESMTP id h5IMtcHF001244
	for <submit@bugs.debian.org>; Thu, 19 Jun 2003 00:55:40 +0200
Received: from falk by juist with local (Exim 3.36 #1 (Debian))
	id 19Slj3-0001Ro-00
	for <submit@bugs.debian.org>; Thu, 19 Jun 2003 00:48:21 +0200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Falk Hueffner <falk@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: pthread_cleanup_push broken on Alpha
X-Mailer: reportbug 2.10.1
Date: Thu, 19 Jun 2003 00:48:21 +0200
Message-Id: <E19Slj3-0001Ro-00@juist>
X-AntiVirus: checked by AntiVir Milter 1.0.2; AVE 6.20.0.1; VDF 6.20.0.13
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0
	tests=BAYES_01,HAS_PACKAGE
	version=2.53-bugs.debian.org_2003_06_18
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_06_18 (1.174.2.15-2003-03-30-exp)

Package: libc6.1
Version: 2.3.1-17
Severity: normal
File: /lib/libpthread.so.0

Running this program should print nikita and victor, but on Alpha, I
only get nikita:

falk@juist:/tmp% gcc test.c -lpthread && ./a.out 
Starting thread
Killing thread
Cleaner name <nikita>
End


#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void genericCleaner(void * name)
{
  printf("Cleaner name <%s>\n",(char*)name);
}
void * myThreadMain(void * Data)
{
  printf("Starting thread\n");
  if (pthread_setcancelstate(PTHREAD_CANCEL_ENABLE,NULL)!=0)      exit(-1);
  if (pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS,NULL)!=0) exit(-1);
  pthread_cleanup_push(genericCleaner,"victor");
  pthread_cleanup_push(genericCleaner,"nikita");
  while(1);
  pthread_cleanup_pop(1); //this point is never reached 
  pthread_cleanup_pop(1);  
  return NULL;
}
int main(void)
{
  pthread_t thread[1];
  if (pthread_create(&thread[0],NULL,myThreadMain,NULL)!=0)	exit(-1);
  sleep(1);
  printf("Killing thread\n");
  if (pthread_cancel(thread[0])!=0) exit(-1);
  if (pthread_join(thread[0],NULL)!=0) exit(-1);
  printf("End\n");
  return 0;
}


-- System Information:
Debian Release: testing/unstable
Architecture: alpha
Kernel: Linux juist 2.5.69 #3 Tue May 6 01:36:11 CEST 2003 alpha
Locale: LANG=C, LC_CTYPE=de_DE@euro

Versions of packages libc6.1 depends on:
ii  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

-- no debconf information


---------------------------------------
Received: (at 197988-done) by bugs.debian.org; 25 Apr 2004 01:54:48 +0000
>From gotom@debian.or.jp Sat Apr 24 18:54:48 2004
Return-path: <gotom@debian.or.jp>
Received: from omega.webmasters.gr.jp (webmasters.gr.jp) [218.44.239.78] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BHYr2-0007Bu-00; Sat, 24 Apr 2004 18:54:48 -0700
Received: from omega.webmasters.gr.jp (localhost [127.0.0.1])
	by webmasters.gr.jp (Postfix) with ESMTP
	id 67637DEB7C; Sun, 25 Apr 2004 10:54:47 +0900 (JST)
Date: Sun, 25 Apr 2004 10:54:47 +0900
Message-ID: <81u0z8bz4o.wl@omega.webmasters.gr.jp>
From: GOTO Masanori <gotom@debian.or.jp>
To: Falk Hueffner <falk@debian.org>, 197988-done@bugs.debian.org
Subject: Re: Bug#197988: pthread_cleanup_push broken on Alpha
In-Reply-To: <E19Slj3-0001Ro-00@juist>
References: <E19Slj3-0001Ro-00@juist>
User-Agent: Wanderlust/2.9.9 (Unchained Melody) SEMI/1.14.3 (Ushinoya)
 FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.2
 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya")
Content-Type: text/plain; charset=US-ASCII
Delivered-To: 197988-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

At Thu, 19 Jun 2003 00:48:21 +0200,
Falk Hueffner wrote:
> Running this program should print nikita and victor, but on Alpha, I
> only get nikita:
> 
> falk@juist:/tmp% gcc test.c -lpthread && ./a.out 
> Starting thread
> Killing thread
> Cleaner name <nikita>
> End

I confirmed this bug has been fixed in glibc 2.3.2.ds1-12.

	gotom@moog> ./a.out 
	Starting thread
	Killing thread
	Cleaner name <nikita>
	Cleaner name <victor>
	End
	gotom@moog> env LD_ASSUME_KERNEL=2.4.1 ./a.out 
	Starting thread
	Killing thread
	Cleaner name <nikita>
	Cleaner name <victor>
	End

I close this bug.

Regards,
-- gotom



Reply to: