Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 126430

Summary: mysql and user mode linux
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Severity: normal CC: l
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Toralf Förster gentoo-dev 2006-03-16 07:38:39 UTC
It is strange, but under a user mode linux mysql didn't run any more, neither 4.0* nor 4.1* nor 5.* version works, every time I got under the UML:

mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 76399 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
frame pointer (ebp) is NULL, did you compile with
-fomit-frame-pointer? Aborting backtrace!
The manual page at contains
information that should help you find out what is causing the crash.

It run fine in the past, but in the mean time I changed the system, so I am not sure, whether nptl of the host problem can cause this bug or not.
If I chroot into the UML image file, mysql starts fine. It does not work under the running guest system :-(

n22_uml ~ # emerge info
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-usermode-r1-bs2 i686)
System uname: 2.6.15-usermode-r1-bs2 i686 UML
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
FEATURES="autoconfig distlocks sandbox sfperms strict"
LINGUAS="de en"
USE="x86 apache2 arts berkdb bitmap-fonts bzip2 cli crypt ctype cups dba dri emboss encode expat fam fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gstreamer gtk2 imlib ipv6 javascript jpeg libg++ libwww logrotate mad memlimit mhash mikmod mmx mmxext mp3 mpeg mysql ncurses nls nptl ogg opengl oss pam pcre pdflib perl php png posix python quicktime readline session simplexml soap sockets spell spl sse sse2 ssl tcpd tiff tokenizer udev userlocales vorbis xml xml2 xsl xv zlib linguas_de linguas_en userland_GNU kernel_linux elibc_glibc"
Comment 1 Laurence Withers 2006-03-19 13:08:52 UTC
I've also encountered this problem. A quick hack to solve it is to do

 mv /lib/tls /lib/tls.broken

and things then work.

Just some detail: I'm using a 2.6.16-rc4 host kernel with glibc-2.3.6-r3 (nptl and nptlonly use flags set), and a 2.6.16-rc6 UML kernel with a fresh stage3 i686 installation of gentoo 2006.0.
Comment 2 Toralf Förster gentoo-dev 2006-03-20 01:48:55 UTC
Great, thanks. I argued that recompilation of glibc caused this bug but couldn't found out the breakage.
If you ever are in Hamburg I'll spend you a good beer :-)

The only question I now have - is it a bug of glibc or of the UML part of the kernel ?
Comment 3 Toralf Förster gentoo-dev 2006-04-25 04:01:38 UTC
same bug with glibc-2.3.6-r3 for the UML system, uml kernel is linux-2.6.15-usermode-r1, host kernel is 2.6.16-gentoo-r3
Comment 4 Francesco R. (RETIRED) gentoo-dev 2006-06-24 09:24:30 UTC
in /etc/conf.d/mysql, for an explanation see
for an explanation.