Bug #41300 mysqld crashes when invoked without arguments
Submitted: 8 Dec 2008 13:05 Modified: 30 Jul 2009 12:22
Reporter: Sven Sandberg Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: General Severity:S2 (Serious)
Version:6.0. 5.4 OS:Linux
Assigned to: Alexander Nozdrin CPU Architecture:Any
Tags: crash, mysqld, regression

[8 Dec 2008 13:05] Sven Sandberg
Description:
mysqld crashes when invoked without parameters:

$ ./sql/mysqld 
081208 13:42:45 [ERROR] Can't find messagefile '/usr/share/mysql/english/errmsg.sys'
081208 13:42:45 [Warning] Can't create test file /var/lib/mysql/riska.lower-test
081208 13:42:45 [Warning] Can't create test file /var/lib/mysql/riska.lower-test
./sql/mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 2)
081208 13:42:45 [ERROR] Aborting

081208 13:42:45 - 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.

key_buffer_size=0
read_buffer_size=131072
max_used_connections=0
max_threads=151
thread_count=0
connection_count=0
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 329617 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd: 0x0
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...
stack_bottom = (nil) thread_stack 0x20000
./sql/mysqld(my_print_stacktrace+0x26)[0x899c7fd]
./sql/mysqld(handle_segfault+0x2cd)[0x8336ba5]
[0xb7f25420]
./sql/mysqld(_ZN14Trans_delegateD1Ev+0x11)[0x8553da3]
./sql/mysqld(_Z17delegates_destroyv+0x13)[0x8553657]
./sql/mysqld[0x83384b4]
./sql/mysqld(unireg_abort+0x7f)[0x83389cd]
./sql/mysqld(main+0x17a)[0x833b398]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7c2e450]
./sql/mysqld[0x824c2e1]
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.

The crash goes away if you run with --no-defaults

How to repeat:
./sql/mysqld
[30 Jul 2009 12:22] Alexander Nozdrin
Can not repeat with mysql-azalea:
------------------------------------------------------
090730 16:20:57 [Warning] The path specified for the variable backupdir is not a directory or cannot be written: '/usr/local/mysql/var'

090730 16:20:57 [ERROR] Can't find messagefile '/usr/local/mysql/share/mysql/errmsg.sys'
090730 16:20:57 [Warning] Can't create test file /usr/local/mysql/var/quad.lower-test
090730 16:20:57 [Warning] Can't create test file /usr/local/mysql/var/quad.lower-test
./sql/mysqld: Can't change dir to '/usr/local/mysql/var/' (Errcode: 2)
090730 16:20:57 [ERROR] Aborting

090730 16:20:57 [Note] 
------------------------------------------------------