libexec/mysqld: unknown option "--skip-bdb"

libexec/mysqld: unknown option "--skip-bdb"

am 14.05.2010 08:09:11 von Kris

Hello,

I am trying to produce an automated, reliable, and repeatable way of
testing mysql releases, and I am finding an error that makes this
impossible to accomplish.

I am trying to compile mysql and install it in a non-standard directory.
I do notwant mysql installed in /usr or /usr/local. For example, I am
trying to install it in /tmp/msource with the configure line:

../configure --prefix=/tmp/msource --exec-prefix=/tmp/msource
--bindir=/tmp/msource/bin --sbindir=/tmp/msource/sbin
--localstatedir=/tmp/msource/lib --sysconfdir=/tmp/msource
--enable-assembler --with-mysqld-ldflags=-all-static
--with-client-ldflags=-all-static --with-mysqld-user=tester
--with-unix-socket-path=/tmp/msource/var/run/mysql.sock

'make' and 'make install' succeed. I have also created a custom my.cnf
file installed in /tmp/msource/etc/my.cnf.


However, installing the database tables fails:

++++++++++++++++++++++++++++++++++++++++++++++++
$ /tmp/msource/bin/mysql_install_db --basedir=/tmp/msource
--datadir=/tmp/msource/data


Installing MySQL system tables...
100513 21:53:35 [ERROR] /tmp/msource/libexec/mysqld: unknown option
'--skip-bdb'
100513 21:53:35 [ERROR] Aborting

100513 21:53:35 [Note] /tmp/msource/libexec/mysqld: Shutdown complete


Installation of system tables failed! Examine the logs in
/tmp/msource/data for more information.

You can try to start the mysqld daemon with:

shell> /tmp/msource/libexec/mysqld --skip-grant &

and use the command line tool /tmp/msource/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /tmp/msource/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /tmp/msource/data that may be helpful.

Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /tmp/msource/scripts/mysqlbug script!
++++++++++++++++++++++++++++


The following error just won't go away:

100513 21:53:35 [ERROR] /tmp/msource/libexec/mysqld: unknown option
'--skip-bdb'

.... even after I manually search for the location where this flag is
passed, and manually edit that source to never issue it.

[mysql-5.1.45-source]$ grep -irnH -- '--skip-bdb' *
mysql-test/mtr:4229: mtr_add_arg($args, "--skip-bdb");
mysql-test/mysql-test-run:4229: mtr_add_arg($args, "--skip-bdb");
mysql-test/lib/v1/mysql-test-run.pl:3925: mtr_add_arg($args, "%
s--skip-bdb", $prefix);
mysql-test/mysql-test-run.pl:4229: mtr_add_arg($args,
"--skip-bdb");
scripts/mysql_install_db.pl.in:422:
"--skip-bdb",


Clearly something is wrong here. I don't know if mysql is accidentally
linking against some other, existing mysql library already present on my
test machine. In any case, it shouldn't be doing that. I suspected that
that somehow "/usr/bin/mysql_install_db" (for my existing MySQL
installation) was being called (which contains --skip-bdb). But even
after removing the --skip-bdb from that file the error persisted.

Any ideas on what the error might be, and how to fix it ?

Thanks for any help.



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

Re: libexec/mysqld: unknown option "--skip-bdb"

am 14.05.2010 10:28:50 von Joerg Bruehe

Hi Kris, all,


what you describe here seems to be related to MySQL bug# 50336
http://bugs.mysql.com/bug.php?id=3D50336 :

Kris wrote:
> [[...]]
>=20
> I am trying to compile mysql and install it in a non-standard directory=

> I do notwant mysql installed in /usr or /usr/local. For example, I am
> trying to install it in /tmp/msource with the configure line:
>=20
> [[...]]
>=20
> 'make' and 'make install' succeed. I have also created a custom my.cnf
> file installed in /tmp/msource/etc/my.cnf.
>=20
>=20
> However, installing the database tables fails:
>=20
> [[...]]
>=20
> The following error just won't go away:
>=20
> 100513 21:53:35 [ERROR] /tmp/msource/libexec/mysqld: unknown option
> '--skip-bdb'
>=20
> ... even after I manually search for the location where this flag is
> passed, and manually edit that source to never issue it.
>=20
> [[...]]

I am surprised to see that option still occurring in a file in 5.1, that
looks wrong. But I doubt this is really the problem, because in that
case many more users would suffer from it, internal tests included.

Are you really sure that this option does not show up in your "my.cnf",
or any other config file read by the server?
It was still used and supported in 5.0, so any remnant 5.0 config file
read by your 5.1 server might cause this problem.


HTH,
Jörg

--=20
Joerg Bruehe, MySQL Build Team, Joerg.Bruehe@Sun.COM
Sun Microsystems GmbH, Komturstrasse 18a, D-12099 Berlin
Geschaeftsfuehrer: Juergen Kunz
Amtsgericht Muenchen: HRB161028


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg

Re: libexec/mysqld: unknown option "--skip-bdb"

am 14.05.2010 17:03:24 von Kris

On Fri, 2010-05-14 at 10:28 +0200, Joerg Bruehe wrote:
> > The following error just won't go away:
> >
> > 100513 21:53:35 [ERROR] /tmp/msource/libexec/mysqld: unknown option
> > '--skip-bdb'
> >
> > ... even after I manually search for the location where this flag is
> > passed, and manually edit that source to never issue it.
> >
> > [[...]]
>
> I am surprised to see that option still occurring in a file in 5.1, that
> looks wrong. But I doubt this is really the problem, because in that
> case many more users would suffer from it, internal tests included.

I doubt many more users try to create a clean test installation of
MySQL, in a specific directory, on a machine that already has MySQL
installed.

> Are you really sure that this option does not show up in your "my.cnf",
> or any other config file read by the server?
> It was still used and supported in 5.0, so any remnant 5.0 config file
> read by your 5.1 server might cause this problem.

Well, that's precisely the problem: I am doing a clean ./configure;
make; make install cycle, and I am producing a clean my.cnf, but
"somehow" the mysql tools are trying to execute something else (which
must pick up my existing 5.0 installation. They must be picking up
something from the path.

This is just wrong. I should be able to build a clean MySQL and start it
independently, even if I already have a previous, pre-packaged MySQL
instance on the test machine.

I believe the problem is in the MySQL tools. I shouldn't have to remove
my existing MySQL installation just to build and test some other MySQL
installation. That's exactly the whole rationale behind having a
--prefix in ./configure, a --basedir, and so forth.


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

Re: libexec/mysqld: unknown option "--skip-bdb"

am 14.05.2010 17:40:24 von Gerald Clark

Kris wrote:
> Hello,
>
> I am trying to produce an automated, reliable, and repeatable way of
> testing mysql releases, and I am finding an error that makes this
> impossible to accomplish.
>
> I am trying to compile mysql and install it in a non-standard directory.
> I do notwant mysql installed in /usr or /usr/local. For example, I am
> trying to install it in /tmp/msource with the configure line:
>
>
Do not install software in /tmp in Linux.
/tmp is not guaranteed to survive a reboot.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

Re: libexec/mysqld: unknown option "--skip-bdb"

am 14.05.2010 18:55:49 von Joerg Bruehe

Kris, all,


Kris wrote:
> On Fri, 2010-05-14 at 10:28 +0200, Joerg Bruehe wrote:
>>> The following error just won't go away:
>>>
>>> 100513 21:53:35 [ERROR] /tmp/msource/libexec/mysqld: unknown opti=
on
>>> '--skip-bdb'
>>>
>>> ... even after I manually search for the location where this flag=
is
>>> passed, and manually edit that source to never issue it.
>>>
>>> [[...]]
>> I am surprised to see that option still occurring in a file in 5.1=
, that
>> looks wrong. But I doubt this is really the problem, because in th=
at
>> case many more users would suffer from it, internal tests included=
..
>=20
> I doubt many more users try to create a clean test installation of
> MySQL, in a specific directory, on a machine that already has MySQL
> installed.

Correct - but if really the occurrence in "mysql_install_db" were the
issue, then it would also occur with a single install.

>=20
>> Are you really sure that this option does not show up in your "my.=
cnf",
>> or any other config file read by the server?
>> It was still used and supported in 5.0, so any remnant 5.0 config =
file
>> read by your 5.1 server might cause this problem.
>=20
> Well, that's precisely the problem: I am doing a clean ./configure;
> make; make install cycle, and I am producing a clean my.cnf, but
> "somehow" the mysql tools are trying to execute something else (whi=
ch
> must pick up my existing 5.0 installation. They must be picking up
> something from the path.

I fear so, too.

You didn't exactly specify your platform, I can just tell it is some
Unix. I propose you check for all existing "my.cnf" and do a "ls -lu"=
on
them, then start your new server, then do that "ls -lu" again. I susp=
ect
one (or more) of them will be read by the new server upon startup.

>=20
> This is just wrong. I should be able to build a clean MySQL and sta=
rt it
> independently, even if I already have a previous, pre-packaged MySQ=
L
> instance on the test machine.
>=20
> I believe the problem is in the MySQL tools. I shouldn't have to re=
move
> my existing MySQL installation just to build and test some other My=
SQL
> installation. That's exactly the whole rationale behind having a
> --prefix in ./configure, a --basedir, and so forth.

It is a question of policies and preferences.
MySQL traditionally supports both global, system-wide configuration
files and local ones, by instance.
Changing that might affect existing installations, so it can't be don=
e
lightly and needs decent design and announcement.


Regards,
Jörg

--=20
Joerg Bruehe, MySQL Build Team, Joerg.Bruehe@Sun.COM
Sun Microsystems GmbH, Komturstrasse 18a, D-12099 Berlin
Geschaeftsfuehrer: Juergen Kunz
Amtsgericht Muenchen: HRB161028


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg

Re: libexec/mysqld: unknown option "--skip-bdb"

am 14.05.2010 20:55:16 von Kris

--=_talos-19907-1273863320-0001-2
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

Joerg, thanks again for the help.

I disagree with you.

> > I doubt many more users try to create a clean test installation of
> > MySQL, in a specific directory, on a machine that already has MySQL
> > installed.
>
> Correct - but if really the occurrence in "mysql_install_db" were the
> issue, then it would also occur with a single install.

True, for a single install in a non-standard directory (try using a
--prefix, --basedir, --datadir, all the flags I've shown), not for a
single install that installs in /var and /usr/bin and
uses /etc/mysql/my.cnf.

mysql_install_db does not work as expected for 5.1 (probably previous
versions, too), and I will show this next. The problem is that
mysql_install_db, "somehow" always reads /etc/mysql/my.cnf. That's
wrong. It should read @sysconfdir@/my.cnf.

> You didn't exactly specify your platform, I can just tell it is some
> Unix. I propose you check for all existing "my.cnf" and do a "ls -lu" on
> them, then start your new server, then do that "ls -lu" again. I suspect
> one (or more) of them will be read by the new server upon startup.

It's Debian 5.0.

$ uname -a
Linux syd.mkgnu.net 2.6.18-6-686 #1 SMP Sat Dec 27 09:31:05 UTC 2008
i686 GNU/Linux

I've just run:

# find / | grep -i my.cnf

And deleted every single my.cnf file, except from:
/tmp/msource/etc/my.cnf
/etc/mysql/my.cnf

I still get the same error, because /etc/mysql/my.cnf is still there.

> > This is just wrong. I should be able to build a clean MySQL and start it
> > independently, even if I already have a previous, pre-packaged MySQL
> > instance on the test machine.
> >
> > I believe the problem is in the MySQL tools. I shouldn't have to remove
> > my existing MySQL installation just to build and test some other MySQL
> > installation. That's exactly the whole rationale behind having a
> > --prefix in ./configure, a --basedir, and so forth.
>
> It is a question of policies and preferences.
> MySQL traditionally supports both global, system-wide configuration
> files and local ones, by instance.
> Changing that might affect existing installations, so it can't be done
> lightly and needs decent design and announcement.

If this was a PATH issue, meaning I'm calling different mysql (5.0)
binaries, I should be able to:

export PATH=/tmp/msource/bin:$PATH

.... then run:

/tmp/msource/bin/mysql_install_db --basedir=/tmp/msource
--datadir=/tmp/msource/data

.... and get the tables installed. I still get the same error though. I
suspect that there are hardcoded paths in mysql that ALWAYS call the
mysql tools from /usr/bin, or ALWAYS use /etc/mysql/my.cnf. It does not
appear to me to be a question of policies, but a bug.


I am attaching the output of:
$ strace /tmp/msource/bin/mysql_install_db --basedir=/tmp/msource
--datadir=/tmp/msource/data > /tmp/trace 2>&1


The output observes:

# mysql_install_db is opened on fd 3
open("/tmp/msource/bin/mysql_install_db", O_RDONLY|O_LARGEFILE) = 3

# From fd 3 one uses parameters that don't make sense. I did not specify
--user=mysql. And I did not specify the pid file to be in /var/run.
read(3, "--user=mysql\n--pid-file=/var/run/"..., 128) = 128

# Further down, I did not install mysql in /var/lib, but in /tmp/msource
read(3, "/var/lib/mysql\n"..., 128) = 15


It seems that mysql first consults hard-coded defaults that are
*different* from the paths one specifies in the ./configure line. To me
this seems wrong.


To verify this, after I remove /etc/mysql/my.cnf, installing the tables
works:

+++++++++++++++++++=

$ /tmp/msource/bin/mysql_install_db --basedir=/tmp/msource
--datadir=/tmp/msource/data
Installing MySQL system tables...

OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/tmp/msource/bin/mysqladmin -u root password 'new-password'
/tmp/msource/bin/mysqladmin -u root -h syd.mkgnu.net password
'new-password'

Alternatively you can run:
/tmp/msource/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /tmp/msource ; /tmp/msource/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /tmp/msource/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /tmp/msource/scripts/mysqlbug
script!
+++++++++++++++++++++


Restoring /etc/mysql/my.cnf results in mysql_install_db to fail again.

This suggests that any mysql test build will ALWAYS
consult /etc/mysql/my.cnf, even if one already specified a different
sysconfdir to ./configure.

To me, this seems like a bug.



--=_talos-19907-1273863320-0001-2
Content-Type: text/plain; name=trace; charset=utf-8
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=trace

execve("/tmp/msource/bin/mysql_install_db", ["/tmp/msource/bin/mysql_install_d"..., "--basedir=/tmp/msource", "--datadir=/tmp/msource/data"], [/* 51 vars */]) = 0
brk(0) = 0x80f8000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f05000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/tls/i686/sse2/cmov/libncurses.s o.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/tls/i686/sse2/cmov", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/tls/i686/sse2/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/tls/i686/sse2", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/tls/i686/cmov/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/tls/i686/cmov", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/tls/i686/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/tls/i686", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/tls/sse2/cmov/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/tls/sse2/cmov", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/tls/sse2/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/tls/sse2", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/tls/cmov/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/tls/cmov", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/tls/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/tls", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/i686/sse2/cmov/libncurses.so.5" , O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/i686/sse2/cmov", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/i686/sse2/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/i686/sse2", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/i686/cmov/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/i686/cmov", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/i686/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/i686", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/sse2/cmov/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/sse2/cmov", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/sse2/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/sse2", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/cmov/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql/cmov", 0xbfc24574) = -1 ENOENT (No such file or directory)
open("/tmp/msource/lib/mysql/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/tmp/msource/lib/mysql", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=94938, ...}) = 0
mmap2(NULL, 94938, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7eed000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libncurses.so.5", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\243\0\0004 \0\0\0\344"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=202188, ...}) = 0
mmap2(NULL, 202004, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ebb000
mmap2(0xb7eea000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2f) = 0xb7eea000
close(3) = 0
open("/tmp/msource/lib/mysql/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\0\0004\0 \0\0H"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9680, ...}) = 0
mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7eb7000
mmap2(0xb7eb9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7eb9000
close(3) = 0
open("/tmp/msource/lib/mysql/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260e\1\0004 \0\0\0\4"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1413540, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7eb6000
mmap2(NULL, 1418864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d5b000
mmap2(0xb7eb0000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x155) = 0xb7eb0000
mmap2(0xb7eb3000, 9840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7eb3000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d5a000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d5a6b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7eb0000, 4096, PROT_READ) = 0
munmap(0xb7eed000, 94938) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
close(3) = 0
brk(0) = 0x80f8000
brk(0x80f9000) = 0x80f9000
brk(0x80fa000) = 0x80fa000
getuid32() = 1000
getgid32() = 1000
geteuid32() = 1000
getegid32() = 1000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
time(NULL) = 1273862116
brk(0x80fb000) = 0x80fb000
brk(0x80fc000) = 0x80fc000
open("/proc/meminfo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f04000
read(3, "MemTotal: 767732 kB\nMemFree"..., 1024) = 676
close(3) = 0
munmap(0xb7f04000, 4096) = 0
brk(0x80fd000) = 0x80fd000
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
uname({sys="Linux", node="syd.mkgnu.net", ...}) = 0
brk(0x80fe000) = 0x80fe000
brk(0x80ff000) = 0x80ff000
stat64("/tmp/chdb/system/src/tests/build/source/mysql-5.1.45 -source", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getpid() = 25968
getppid() = 25967
brk(0x8100000) = 0x8100000
getpgrp() = 25967
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {SIG_DFL}, 8) = 0
getrlimit(RLIMIT_NPROC, {rlim_cur=6074, rlim_max=6074}) = 0
brk(0x8101000) = 0x8101000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
open("/tmp/msource/bin/mysql_install_db", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfc24b48) = -1 ENOTTY (Inappropriate ioctl for device)
_llseek(3, 0, [0], SEEK_CUR) = 0
read(3, "#!/bin/sh\n# Copyright (C) 2002-20"..., 80) = 80
_llseek(3, 0, [0], SEEK_SET) = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
dup2(3, 255) = 255
close(3) = 0
fcntl64(255, F_SETFD, FD_CLOEXEC) = 0
fcntl64(255, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat64(255, {st_mode=S_IFREG|0755, st_size=14333, ...}) = 0
_llseek(255, 0, [0], SEEK_CUR) = 0
brk(0x8103000) = 0x8103000
brk(0x8104000) = 0x8104000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "#!/bin/sh\n# Copyright (C) 2002-20"..., 8176) = 8176
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
brk(0x8105000) = 0x8105000
brk(0x8106000) = 0x8106000
brk(0x8107000) = 0x8107000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
brk(0x8108000) = 0x8108000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
brk(0x8109000) = 0x8109000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
brk(0x810a000) = 0x810a000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
brk(0x810b000) = 0x810b000
brk(0x810c000) = 0x810c000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
brk(0x810d000) = 0x810d000
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -1781, [6395], SEEK_CUR) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25969
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "/tmp/msource\n"..., 128) = 13
read(3, ""..., 128) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25969
waitpid(-1, 0xbfc23f38, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25972
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25972
waitpid(-1, 0xbfc23d98, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "/tmp/msource/data\n"..., 128) = 18
read(3, ""..., 128) = 0
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "\n#\n# We can now find my_print_def"..., 8176) = 7938
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -7184, [7149], SEEK_CUR) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25975
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25975
waitpid(-1, 0xbfc23f98, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "/tmp/msource/bin/my_print_default"..., 128) = 35
read(3, ""..., 128) = 0
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "\nif test ! -x \"$print_defaults\"\nt"..., 8176) = 7184
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/tmp/msource/bin/my_print_defaults", {st_mode=S_IFREG|0755, st_size=1244526, ...}) = 0
geteuid32() = 1000
getegid32() = 1000
getuid32() = 1000
getgid32() = 1000
access("/tmp/msource/bin/my_print_defaults", X_OK) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -6882, [7451], SEEK_CUR) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25976
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "--user=mysql\n--pid-file=/var/run/"..., 128) = 128
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25976
waitpid(-1, 0xbfc245e8, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
read(3, "r/lib/mysql\n--tmpdir=/tmp\n--langu"..., 128) = 128
read(3, "--max_allowed_packet=16M\n--thread"..., 128) = 128
brk(0x810e000) = 0x810e000
read(3, "size=16M\n--expire_logs_days=10\n--"..., 128) = 65
read(3, ""..., 128) = 0
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
brk(0x810f000) = 0x810f000
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25978
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "mysql\n"..., 128) = 6
read(3, ""..., 128) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25978
waitpid(-1, 0xbfc23f38, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25981
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25981
waitpid(-1, 0xbfc23d98, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "/usr\n"..., 128) = 5
read(3, ""..., 128) = 0
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25984
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "/var/lib/mysql\n"..., 128) = 15
read(3, ""..., 128) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25984
waitpid(-1, 0xbfc23f38, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "parse_arguments PICK-ARGS-FROM-AR"..., 8176) = 6882
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -6841, [7492], SEEK_CUR) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25987
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "/tmp/msource\n"..., 128) = 13
read(3, ""..., 128) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25987
waitpid(-1, 0xbfc23f38, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25990
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "/tmp/msource/data\n"..., 128) = 18
read(3, ""..., 128) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25990
waitpid(-1, 0xbfc23f38, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "\n# Configure paths to support fil"..., 8176) = 6841
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -5680, [8653], SEEK_CUR) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25993
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "/tmp/msource/libexec/mysqld\n"..., 128) = 28
read(3, ""..., 128) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25993
waitpid(-1, 0xbfc234a8, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25994
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "/tmp/msource/share/mysql/english\n"..., 128) = 33
read(3, ""..., 128) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25994
waitpid(-1, 0xbfc238e8, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25995
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25995
waitpid(-1, 0xbfc23b88, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "/tmp/msource/share/mysql\n"..., 128) = 25
read(3, ""..., 128) = 0
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "\n# Set up paths to SQL scripts re"..., 8176) = 5680
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/tmp/msource/share/mysql/fill_help_tables.sql", {st_mode=S_IFREG|0644, st_size=594749, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/tmp/msource/share/mysql/mysql_system_tables.sql", {st_mode=S_IFREG|0644, st_size=16527, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/tmp/msource/share/mysql/mysql_system_tables_data.sq l", {st_mode=S_IFREG|0644, st_size=1878, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/tmp/msource/libexec/mysqld", {st_mode=S_IFREG|0755, st_size=7798545, ...}) = 0
geteuid32() = 1000
getegid32() = 1000
getuid32() = 1000
getgid32() = 1000
access("/tmp/msource/libexec/mysqld", X_OK) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/tmp/msource/share/mysql/english/errmsg.sys", {st_mode=S_IFREG|0644, st_size=36480, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -5009, [9324], SEEK_CUR) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25996
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "syd.mkgnu.net\n"..., 128) = 14
read(3, ""..., 128) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25996
waitpid(-1, 0xbfc244f8, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "\n# Check if hostname is valid\nif "..., 8176) = 5009
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -3946, [10387], SEEK_CUR) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 25997
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, "IP address of syd.mkgnu.net is 12"..., 128) = 41
read(3, ""..., 128) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 25997
waitpid(-1, 0xbfc24208, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "\nif test \"$ip_only\" -eq 1\nthen\n "..., 8176) = 3946
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/tmp/msource/data", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
geteuid32() = 1000
getegid32() = 1000
getuid32() = 1000
getgid32() = 1000
access("/", W_OK) = -1 EACCES (Permission denied)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/tmp/msource/data/mysql", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
geteuid32() = 1000
getegid32() = 1000
getuid32() = 1000
getgid32() = 1000
access("/", W_OK) = -1 EACCES (Permission denied)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/tmp/msource/data/test", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
geteuid32() = 1000
getegid32() = 1000
getuid32() = 1000
getgid32() = 1000
access("/", W_OK) = -1 EACCES (Permission denied)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
brk(0x8110000) = 0x8110000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
write(1, "Installing MySQL system tables..."..., 34Installing MySQL system tables...
) = 34
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
_llseek(255, -1622, [12711], SEEK_CUR) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 26000
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
close(4) = 0
close(4) = -1 EBADF (Bad file descriptor)
pipe([4, 5]) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 26002
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
close(3) = 0
close(5) = 0
close(3) = -1 EBADF (Bad file descriptor)
close(5) = -1 EBADF (Bad file descriptor)
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d5a6f8) = 26004
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
close(4) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 26000
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 26002
waitpid(-1, 100514 11:35:18 [ERROR] /tmp/msource/libexec/mysqld: unknown option '--skip-bdb'
100514 11:35:18 [ERROR] Aborting

100514 11:35:18 [Note] /tmp/msource/libexec/mysqld: Shutdown complete

[{WIFEXITED(s) && WEXITSTATUS(s) == 2}], 0) = 26004
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
close(4) = -1 EBADF (Bad file descriptor)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbfc245f8, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
write(1, "\n"..., 1
) = 1
write(1, "Installation of system tables fai"..., 59Installation of system tables failed! Examine the logs in
) = 59
write(1, "/tmp/msource/data for more inform"..., 40/tmp/msource/data for more information.
) = 40
write(1, "\n"..., 1
) = 1
write(1, "You can try to start the mysqld d"..., 45You can try to start the mysqld daemon with:
) = 45
write(1, "\n"..., 1
) = 1
write(1, " shell> /tmp/msource/libexec/m"..., 54 shell> /tmp/msource/libexec/mysqld --skip-grant &
) = 54
write(1, "\n"..., 1
) = 1
write(1, "and use the command line tool /tm"..., 53and use the command line tool /tmp/msource/bin/mysql
) = 53
write(1, "to connect to the mysql database "..., 63to connect to the mysql database and look at the grant tables:
) = 63
write(1, "\n"..., 1
) = 1
write(1, " shell> /tmp/msource/bin/mysql"..., 48 shell> /tmp/msource/bin/mysql -u root mysql
) = 48
write(1, " mysql> show tables\n"..., 23 mysql> show tables
) = 23
write(1, "\n"..., 1
) = 1
write(1, "Try 'mysqld --help' if you have p"..., 66Try 'mysqld --help' if you have problems with paths. Using --log
) = 66
write(1, "gives you a log in /tmp/msource/d"..., 58gives you a log in /tmp/msource/data that may be helpful.
) = 58
write(1, "\n"..., 1
) = 1
write(1, "Please consult the MySQL manual s"..., 40Please consult the MySQL manual section
) = 40
write(1, "'Problems running mysql_install_d"..., 65'Problems running mysql_install_db', and the manual section that
) = 65
write(1, "describes problems on your OS. A"..., 67describes problems on your OS. Another information source are the
) = 67
write(1, "MySQL email archives available at"..., 59MySQL email archives available at http://lists.mysql.com/.
) = 59
write(1, "\n"..., 1
) = 1
write(1, "Please check all of the above bef"..., 67Please check all of the above before mailing us! And remember, if
) = 67
write(1, "you do mail us, you MUST use the "..., 71you do mail us, you MUST use the /tmp/msource/scripts/mysqlbug script!
) = 71
write(1, "\n"..., 1
) = 1
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
exit_group(1) = ?


--=_talos-19907-1273863320-0001-2
Content-Type: text/plain; charset=us-ascii


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org
--=_talos-19907-1273863320-0001-2--

Re: libexec/mysqld: unknown option "--skip-bdb"

am 14.05.2010 21:04:53 von Kris

>Do not install software in /tmp in Linux.
>/tmp is not guaranteed to survive a reboot.

Thank you for the heads up. Well... there is *another* bug
where if one specifies in their my.cnf filepaths that are over 100 characters,
the filenames are truncated at 100, hence making it impossible to really install mysql
anywhere you want for reliable testing...

I hope someone can look into that, too.



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

Re: libexec/mysqld: unknown option "--skip-bdb"

am 15.05.2010 02:34:24 von Joerg Bruehe

Hi Kris, all,


Kris wrote:
> Joerg, thanks again for the help.
>=20
> I disagree with you.

that's perfectly fine - combining our two different viewpoints, we will
be able to show more of the issue at hand than from one point alone.

>=20
>>> I doubt many more users try to create a clean test installation of
>>> MySQL, in a specific directory, on a machine that already has MySQL
>>> installed.
>> Correct - but if really the occurrence in "mysql_install_db" were the
>> issue, then it would also occur with a single install.
>=20
> True, for a single install in a non-standard directory (try using a
> --prefix, --basedir, --datadir, all the flags I've shown), not for a
> single install that installs in /var and /usr/bin and
> uses /etc/mysql/my.cnf.
>=20
> mysql_install_db does not work as expected for 5.1 (probably previous
> versions, too), and I will show this next. The problem is that
> mysql_install_db, "somehow" always reads /etc/mysql/my.cnf. That's
> wrong. It should read @sysconfdir@/my.cnf.

Well, you explicitly say it is *not* a problem of "mysql_install_db"
issuing this option all by itself, but rather by taking it from a
system-wide config file. That knowledge is helpful.

I won't take any position which config file "mysql_install_db" should
read: True, you can argue it should take just the specific one for its
installation, but you can also argue that a system-wide config file
which may be read by the server should also be read by the script.

I will readily admit I am no expert on this, so please don't debate with
me which component should behave in which way.

>=20
>> You didn't exactly specify your platform, I can just tell it is some
>> Unix. I propose you check for all existing "my.cnf" and do a "ls -lu" =
on
>> them, then start your new server, then do that "ls -lu" again. I suspe=
ct
>> one (or more) of them will be read by the new server upon startup.
>=20
> It's Debian 5.0.

I asked for the platform just because on Linux I would recommend
"locate" for finding those config files, whereas this tool is not
available on other Unixes AFAIK.

>=20
> $ uname -a
> Linux syd.mkgnu.net 2.6.18-6-686 #1 SMP Sat Dec 27 09:31:05 UTC 2008
> i686 GNU/Linux
>=20
> I've just run:
>=20
> # find / | grep -i my.cnf
>=20
> And deleted every single my.cnf file, except from:
> /tmp/msource/etc/my.cnf
> /etc/mysql/my.cnf
>=20
> I still get the same error, because /etc/mysql/my.cnf is still there.

In such cases, I prefer doing "ls -lu" twice, to show the file was read.
Your approach of using "strace" is of course more exact, but also more
effort.

>=20
>>> This is just wrong. I should be able to build a clean MySQL and start=
it
>>> independently, even if I already have a previous, pre-packaged MySQL
>>> instance on the test machine.
>>>
>>> I believe the problem is in the MySQL tools. I shouldn't have to remo=
ve
>>> my existing MySQL installation just to build and test some other MySQ=
L
>>> installation. That's exactly the whole rationale behind having a
>>> --prefix in ./configure, a --basedir, and so forth.
>> It is a question of policies and preferences.
>> MySQL traditionally supports both global, system-wide configuration
>> files and local ones, by instance.
>> Changing that might affect existing installations, so it can't be done=

>> lightly and needs decent design and announcement.
>=20
> If this was a PATH issue, meaning I'm calling different mysql (5.0)
> binaries, I should be able to:
>=20
> export PATH=3D/tmp/msource/bin:$PATH
>=20
> ... then run:
>=20
> /tmp/msource/bin/mysql_install_db --basedir=3D/tmp/msource
> --datadir=3D/tmp/msource/data

I never claimed it to be a PATH issue - config files are not covered by
PATH.

And obviously the concept of having global config files, which is meant
to make it easy to have system-wide settings for multiple instances,
implies that these config files must be compatible with all versions
used on that system - which causes your problem, as the "--skip-bdb"
option is not compatible with 5.1.

Whether the advantage (system wide settings) or the disadvantage (read
from all versions) has the stronger weight - that differs by type of
usage. In your case, the compatibility requirement doesn't fit your use.

You don't state it explicitly, but I take your text to mean
"If the MySQL tools are compiled using --prefix, --basedir, or other
such settings, they should not read system-wide configuration files."
That is a possible request, different from the current MySQL policy.
I do not think it is easy to implement that.

Seen from the MySQL policy, the fault is with you: You should not have a
global "/etc/my.cnf" if you are dealing with multiple versions.


>=20
> ... and get the tables installed. I still get the same error though. I
> suspect that there are hardcoded paths in mysql that ALWAYS call the
> mysql tools from /usr/bin, or ALWAYS use /etc/mysql/my.cnf. It does not=

> appear to me to be a question of policies, but a bug.

Did I claim that a policy always is perfect?
A "ls -lu" on "the mysql tools from /usr/bin" and "/etc/mysql/my.cnf"
should tell you whether one of these tools gets called (I sincerely hope
none is) and/or the config file gets read (that's what I suspect).

Below, you say that removing "/etc/my.cnf" solves the issue. From that,
we can tell that it is *not* caused by calling some MySQL tool from
/usr/bin, so the first one of your alternatives is wrong.

IMO, if such a tool were called, then there would really be a bug.
Reading the global "/etc/my.cnf" even from an installation at a
non-standard place is no bug (because MySQL is defined to use that
global file), but I understand your desire for a different behavior.

>=20
>=20
> I am attaching the output of:
> $ strace /tmp/msource/bin/mysql_install_db --basedir=3D/tmp/msource
> --datadir=3D/tmp/msource/data > /tmp/trace 2>&1
>=20
>=20
> The output observes:
>=20
> # mysql_install_db is opened on fd 3
> open("/tmp/msource/bin/mysql_install_db", O_RDONLY|O_LARGEFILE) =3D 3
>=20
> # From fd 3 one uses parameters that don't make sense. I did not specif=
y
> --user=3Dmysql. And I did not specify the pid file to be in /var/run.
> read(3, "--user=3Dmysql\n--pid-file=3D/var/run/"..., 128) =3D 128

Did you notice that at this point, fd 3 has been closed since long, the
script is open on fd 255 from a "clone2()" call, and fd 3 is the result
of a "pipe()" call (several times)?

This is from your strace log:
|> pipe([3, 4]) =3D 0
|> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) =3D 0
|> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) =3D 0
|> rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) =3D 0
|> _llseek(255, -6882, [7451], SEEK_CUR) =3D 0
|> clone(child_stack=3D0,
flags=3DCLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=3D0xb7d5a6f8) =3D 25976
|> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) =3D 0
|> rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) =3D 0=

|> close(4) =3D 0
|> read(3, "--user=3Dmysql\n--pid-file=3D/var/run/"..., 128) =3D 128
|> --- SIGCHLD (Child exited) @ 0 (0) ---
|> waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) =3D =
25976
|> waitpid(-1, 0xbfc245e8, WNOHANG) =3D -1 ECHILD (No child proces=
ses)
|> sigreturn() =3D ? (mask now [])
|> read(3, "r/lib/mysql\n--tmpdir=3D/tmp\n--langu"..., 128) =3D 128
|> read(3, "--max_allowed_packet=3D16M\n--thread"..., 128) =3D 128
|> brk(0x810e000) =3D 0x810e000
|> read(3, "size=3D16M\n--expire_logs_days=3D10\n--"..., 128) =3D 65
|> read(3, ""..., 128) =3D 0
|> close(3) =3D 0
Sadly, it does not tell which command is feeding into the pipe.
It might help to use
strace -f -ff -e trace=3Dfile,process ...
(from the man page, not verified).

>=20
> # Further down, I did not install mysql in /var/lib, but in /tmp/msourc=
e
> read(3, "/var/lib/mysql\n"..., 128) =3D 15
>=20
>=20
> It seems that mysql first consults hard-coded defaults that are
> *different* from the paths one specifies in the ./configure line. To me=

> this seems wrong.

These hard-coded defaults are the global config file names.

>=20
>=20
> To verify this, after I remove /etc/mysql/my.cnf, installing the tables=

> works:
>=20
> [[...]]
>=20
> Restoring /etc/mysql/my.cnf results in mysql_install_db to fail again.

This is valuable information, thank you.


>=20
> This suggests that any mysql test build will ALWAYS
> consult /etc/mysql/my.cnf, even if one already specified a different
> sysconfdir to ./configure.
>=20
> To me, this seems like a bug.

=46rom the MySQL policy and definition, I'd say it is not a bug, but I
accept your position that there are cases where this is disturbing.

If you want to push for such a change, you should file a bug report and
set the "severity" field to "feature request" (I doubt the colleagues
would accept it as a bug). However, I won't make any claim whether it
will be accepted and when a change might occur - but as I consider this
a functional change, I expect it would only come with a new release
series, and for 5.5 the time frame is already pretty short now.

If you feel very strongly about this, you might come up with a patch,
this should increase the chances and/or sped up the implementation -
note, this is my very personal assumption and not a company position.


Regards,
Jörg

--=20
Joerg Bruehe, MySQL Build Team, Joerg.Bruehe@Sun.COM
Sun Microsystems GmbH, Komturstrasse 18a, D-12099 Berlin
Geschaeftsfuehrer: Juergen Kunz
Amtsgericht Muenchen: HRB161028


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg

Re: libexec/mysqld: unknown option "--skip-bdb"

am 15.05.2010 15:16:10 von Kris

Jörg, thanks again for your help and your patience with this issue. You
also caught oversights with strace and clarified that this is not a PATH
issue.

I've filed it at:

http://bugs.mysql.com/bug.php?id=53667

> You don't state it explicitly, but I take your text to mean
> "If the MySQL tools are compiled using --prefix, --basedir, or other
> such settings, they should not read system-wide configuration files."
> That is a possible request, different from the current MySQL policy.

I am not saying MySQL should not read system-wide configuration files.
I'm saying that if one defines a --sysconfdir directory, then that
directory should be consulted first.

The bottom line is that the MySQL behavior is non-standard. A lot of
software allow reading their configuration files from anywhere.



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org