Re: Threads problem on 5.1-Release sparc64

2003-06-23 Thread Kris Kennaway
On Mon, Jun 23, 2003 at 10:52:19PM +0100, Steven Haywood wrote:

> Please help! Mysql won't work, and I think I'm going to have to regress this
> box back to 5.0-Release

I've also had problems with threads on sparc64 (specifically, mozilla
locks up or crashes a lot).  

> (and please don't tell me to ask on sparc64 - that list seems way too
> devoted to deep down hardcore hardware hacking - no-one responded there last
> time I asked this...)

Er, well, questions is not a bug-reporting channel, and it is not even
read by most developers.  Bug reports should be submitted via send-pr,
and/or reported to the relevant technical mailing lists.  sparc64 (and
threads) is definitely the place for this mail.  Please re-send it
there and/or submit a PR, since you have a working test-case that
exposes the problem.

kris



pgp0.pgp
Description: PGP signature


Threads problem on 5.1-Release sparc64

2003-06-23 Thread Steven Haywood
Hi folks

I'm still having pthreads problems on Sparc64 (5.1 Release):
The program concerned is:
# cat conftest.c
#include 

void* routine(void* p){return NULL;}

int main(){
  pthread_t p;
  if(pthread_create(&p,NULL,routine,NULL)!=0)
return 1;
  (void)pthread_detach(p);
  return 0;
}


Compiled with:
 gcc -o moo -lc_r conftest.c
no errors

Trying to run it:
bash-2.05b# truss ./moo
mmap(0x0,7056,0x3,0x1000,-1,0x0) = 1075978240 (0x40222000)
munmap(0x40222000,0x1b90)= 0 (0x0)
__sysctl(0x7fdf490,0x2,0x40323110,0x7fdf488,0x0,0x0) = 0 (0x0)
mmap(0x0,32768,0x3,0x1002,-1,0x0)= 1075978240 (0x40222000)
geteuid()= 0 (0x0)
getuid() = 0 (0x0)
getegid()= 0 (0x0)
getgid() = 0 (0x0)
mmap(0x0,40960,0x3,0x1002,-1,0x0)= 1076011008 (0x4022a000)
open("/var/run/ld-elf.so.hints",0x0,010010540070) = 3 (0x3)
read(0x3,0x7fdf720,0x80) = 128 (0x80)
lseek(3,0x80,-1) = 128 (0x80)
read(0x3,0x4022e000,0x57)= 87 (0x57)
close(3) = 0 (0x0)
access("/usr/lib/libc_r.so.5",0) = 0 (0x0)
open("/usr/lib/libc_r.so.5",0x0,06)  = 3 (0x3)
fstat(3,0x7fdf7e0)   = 0 (0x0)
read(0x3,0x7fdd720,0x2000)   = 8192 (0x2000)
mmap(0x0,1220608,0x5,0x20002,3,0x0)  = 1077043200 (0x40326000)
mprotect(0x40342000,0x2000,0x7)  = 0 (0x0)
mprotect(0x40342000,0x2000,0x5)  = 0 (0x0)
mmap(0x40442000,16384,0x7,0x12,3,0x0)= 1078206464 (0x40442000)
mmap(0x40446000,40960,0x7,0x1012,-1,0x0) = 1078222848 (0x40446000)
close(3) = 0 (0x0)
access("/usr/lib/libc.so.5",0)   = 0 (0x0)
open("/usr/lib/libc.so.5",0x0,0137)  = 3 (0x3)
fstat(3,0x7fdf7e0)   = 0 (0x0)
read(0x3,0x7fdd720,0x2000)   = 8192 (0x2000)
mmap(0x0,2154496,0x5,0x20002,3,0x0)  = 1078263808 (0x4045)
mprotect(0x40538000,0x2000,0x7)  = 0 (0x0)
mprotect(0x40538000,0x2000,0x5)  = 0 (0x0)
mmap(0x40638000,73728,0x7,0x12,3,0x0)= 1080262656 (0x40638000)
mmap(0x4064a000,81920,0x7,0x1012,-1,0x0) = 1080336384 (0x4064a000)
close(3) = 0 (0x0)
mmap(0x0,304,0x3,0x1000,-1,0x0)  = 1076051968 (0x40234000)
munmap(0x40234000,0x130) = 0 (0x0)
mmap(0x0,9456,0x3,0x1000,-1,0x0) = 1076051968 (0x40234000)
munmap(0x40234000,0x24f0)= 0 (0x0)
mmap(0x0,43072,0x3,0x1000,-1,0x0)= 1076051968 (0x40234000)
munmap(0x40234000,0xa840)= 0 (0x0)
__sysctl(0x7fdf4f0,0x2,0x4065b218,0x7fdf4e8,0x0,0x0) = 0 (0x0)
getpid() = 28449 (0x6f21)
fcntl(0x0,0x3,0x0)   = 2 (0x2)
fcntl(0x1,0x3,0x0)   = 2 (0x2)
fcntl(0x2,0x3,0x0)   = 2 (0x2)
pipe()   = 3 (0x3)
fcntl(0x3,0x3,0x0)   = 2 (0x2)
fcntl(0x3,0x4,0x6)   = 0 (0x0)
fcntl(0x4,0x3,0x0)   = 2 (0x2)
fcntl(0x4,0x4,0x6)   = 0 (0x0)
readlink("/etc/malloc.conf",0x7fdf320,63)ERR#2 'No such file or
directory'
issetugid()  = 0 (0x0)
getuid() = 0 (0x0)
mmap(0x0,8192,0x3,0x1002,-1,0x0) = 1076051968 (0x40234000)
break(0x200d68)  = 0 (0x0)
break(0x200d68)  = 0 (0x0)
break(0x204000)  = 0 (0x0)
break(0x204000)  = 0 (0x0)
break(0x206000)  = 0 (0x0)
break(0x206000)  = 0 (0x0)
break(0x208000)  = 0 (0x0)
break(0x208000)  = 0 (0x0)
break(0x20a000)  = 0 (0x0)
break(0x20a000)  = 0 (0x0)
break(0x20c000)  = 0 (0x0)
__sysctl(0x7fdf610,0x2,0x40443370,0x7fdf5c8,0x0,0x0) = 0 (0x0)
mmap(0x7fdffefe000,8192,0x0,0x1000,-1,0x0)   = -1056768 (0xffefe000)
break(0x20c000)  = 0 (0x0)
break(0x20e000)  = 0 (0x0)
gettimeofday(0x40443390,0x0) = 0 (0x0)
sysarch(0x2,0x4063e100)  = 0 (0x0)
sigaction(SIGHUP,0x0,0x40449420) = 0 (0x0)
sigaction(SIGINT,0x0,0x40449440) =