Bug #8740 Server crash at start on Solaris 9 (64 bit)
Submitted: 23 Feb 2005 18:03 Modified: 3 Mar 2005 17:20
Reporter: Joerg Bruehe Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:5.0.3-pre OS:Solaris (Solaris 8, 9 + 10 (64 bit))
Assigned to: Sergei Glukhov CPU Architecture:Any

[23 Feb 2005 18:03] Joerg Bruehe
Description:
Build based on changeset
  1.1882 05/02/23 00:50:30 lars@mysql.com +2 -0
  After merge fixes

Starting the test suite fails, log contains (same for 'max' and 'classic'):
Installing Master Databases
running  ../bin/mysqld --no-defaults --bootstrap --skip-grant-tables     --basedir=.. --datadir=mysql-test/var/master-data --skip-innodb --skip-ndbcluster --skip-bdb
Bus Error - core dumped

I tried a backtrace, but got little output only:
mysqldev@sunfire100b:~/sunfire100b-64bit/test> adb ./mysql-classic-5.0.3-alpha-sun-solaris2.9-sparc-64bit/bin/mysqld ./mysql-classic-5.0.3-alpha-sun-solaris2.9-sparc-64bit/mysql-test/core
core file = ./mysql-classic-5.0.3-alpha-sun-solaris2.9-sparc-64bit/mysql-test/core -- program ``
./mysql-classic-5.0.3-alpha-sun-solaris2.9-sparc-64bit/bin/mysqld'' on platform SUNW,UltraAX-i2
SIGBUS: Bus Error
$c
0x1002775fc(0, 100000000, 573c00, 1002f2338, 100573c00, 100439158)
handle_options+0x2c(ffffffff7fffe9bc, ffffffff7fffe9b0, 1004378d8, 1001087a8, ffffffff7fffe9b0, 7)
0x10010a36c(100437800, 10010a27c, 437800, 100000000, 1, 0)
0x100104d4c(577800, 576c00, 1002cb617, 0, 0, 100577800)
main+0x58(9, ffffffff7fffec48, 1, 47c400, ffffffff7fffeef0, 10047c400)
_start+0x17c(0, 0, 0, 0, 0, 0)
$q

How to repeat:
Build and test on sunfire100b-64bit.
[1 Mar 2005 15:32] Joerg Bruehe
A crash with identical symptoms still occurs in a build based on ChangeSet
  1.1774 05/03/01 01:59:37 petr@mysql.com +1 -0
  Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0
  into mysql.com:/home/cps/mysql/devel/im-fix-review

It happens on Solaris 8, 9, and 10, 64 bit versions only. (previously, Solaris 10 could not be built due to a missing compiler license). Stack backtrace from Solaris 10:

mysqldev@butch:~/butch-64bit> adb ./mysql-5.0.3-alpha/sql/mysqld ./test/mysql-standard-5.0.3-alpha-sun-solaris2.10-sparc-64bit/mysql-test/core
core file = ./test/mysql-standard-5.0.3-alpha-sun-solaris2.10-sparc-64bit/mysql-test/core -- program ``
./mysql-5.0.3-alpha/sql/mysqld'' on platform SUNW,UltraAX-i2
SIGBUS: Bus Error
$c
init_one_value+0x60(100442, 100400, 1006cc000, 1006cc, 100400, 10058aa38)
handle_options+0x2c(ffffffff7fffea4c, ffffffff7fffea40, 100588ab8, 100140330, ffffffff7fffea40, ffffffff7fffea40)
__1cLget_options6Fippc_v_+0x8c(1006d1, 1006fcc80, 100400, 100141000, 100141, 100000)
__1cVinit_common_variables6Fpkcippcp1_i_+0x1fc(100400, 1003e97d1, 1006d1060, 1006fcc80, 1006d16d8, 1005c5)
main+0x40(9, ffffffff7fffecb8, 100400, ffffffff7d946a38, ffffffff7ee006c0, ffffffff7ee00700)
_start+0x17c(0, 0, 0, 0, 0, 0)

A tree is saved on 'butch' (Solaris 10) as '~/bug8740'.
[2 Mar 2005 10:59] Alexander Barkov
ok to push.
[3 Mar 2005 13:25] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/22615
[3 Mar 2005 17:20] Paul DuBois
Not in released versions, no changelog entry needed.