Subject: Re: lib/36011: pthread library causes a crash with puffs/dtfs
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Antti Kantee <pooka@cs.hut.fi>
List: netbsd-bugs
Date: 03/14/2007 20:05:03
The following reply was made to PR lib/36011; it has been noted by GNATS.

From: Antti Kantee <pooka@cs.hut.fi>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: lib/36011: pthread library causes a crash with puffs/dtfs
Date: Wed, 14 Mar 2007 22:00:55 +0200

 On Wed Mar 14 2007 at 19:50:01 +0000, jenkink4@cc.wwu.edu wrote:
 > Changing the LDADD line in the Makefile in the last directory to:
 > LDADD+= -lpuffs -lutil -lpthread
 > 
 > causes a crash when you try to create anything, such as:
 > # mkdir /testdtfs/one
 > mkdir: /testdtfs/one: Device not configured
 > [1]+  Segmentation fault      (core dumped) ./dtfs -s /testdtfs/
 > 
 > "ls" (on an empty directory) works properly.
 > 
 > NOTE: in NetBSD 4.99.5 this was not a problem.  pthreads, and the pthread library
 > worked fine with puffs/dtfs.
 
 Core was generated by `dtfs'.
 Program terminated with signal 11, Segmentation fault.
 #0  0xbbbc9c20 in pthread_spinlock () from /usr/lib/libpthread.so.0
 (gdb) bt
 #0  0xbbbc9c20 in pthread_spinlock () from /usr/lib/libpthread.so.0
 #1  0xbbbc9377 in pthread_mutex_unlock () from /usr/lib/libpthread.so.0
 #2  0xbbb9e617 in malloc () from /usr/lib/libc.so.12
 #3  0xbbbdac22 in emalloc () from /usr/lib/libutil.so.7
 #4  0x0804a35b in dtfs_newfile () at dtfs_subr.c:133
 
 I vote "not a problem in dtfs/puffs"
 
 -- 
 Antti Kantee <pooka@iki.fi>                     Of course he runs NetBSD
 http://www.iki.fi/pooka/                          http://www.NetBSD.org/
     "la qualité la plus indispensable du cuisinier est l'exactitude"