strange mysql bug, possibly thread related

Aurelien Jarno aurelien at aurel32.net
Mon Dec 5 18:19:47 UTC 2005


Petr Salinger a écrit :
> Package: kfreebsd-5 
> Version: 5.4-8
> 
> Hi.
> 
> 
>>I've installed libc 2.3.1+kbsd.13 (alongside kfreebsd-image 5.4-8) 
>>and mysql works ok. 
>>Indeed, and amavis=>clamd works, too :)
> 
> 
> I played with it and the reason seems related to 
> thread signaling AND setuid()/setgid() calls.
> 
> Robin, Konstantinos, please, can you test to change 
> user of mysql and clamd to root ?
> After that, it should work with latest glibc.
> 
> Given it helps also for you:
> 
> There is a exception granted for SIGUSR1 and SIGUSR2,
> but not for our current thread signals. 
> Details in kernel sources, sys/kern/kern_prot.c, function 
> int cr_cansignal(struct ucred *cred, struct proc *proc, int signum)
> 
> Already fixed in FreeBSD 6.0, suggested patch for package kfreebds-5:
> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/kern_prot.c.diff?r1=1.198&r2=1.187.2.3
> 

I don't really have the time to look at it now, however I have started a 
build of the 5.4 kernel with this patch. I am away for the whole 
evening, so I'll test it during the night.

Bye,
Aurelien

-- 
   .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
  : :' :  Debian developer           | Electrical Engineer
  `. `'   aurel32 at debian.org         | aurelien at aurel32.net
    `-    people.debian.org/~aurel32 | www.aurel32.net



More information about the Glibc-bsd-devel mailing list