Bug #43533 './mysqld -v -help' crashes

Submitted: 10 Mar 2009 12:51 Modified: 29 Jun 2009 0:55
Reporter: Alexander Nozdrin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: General Severity:S3 (Non-critical)
Version:6.0-TRUNK OS:Any
Assigned to: Alfranio Tavares Correia Junior CPU Architecture:Any

[10 Mar 2009 12:51] Alexander Nozdrin
Description:
$ ./sql/mysqld -v -help
090310 15:49:43 [Warning] Can't create test file /mnt/raid/alik/MySQL/bzr/bug43138/6.0-rt-bug43138/elp/quad.lower-test
090310 15:49:43 [Warning] Can't create test file /mnt/raid/alik/MySQL/bzr/bug43138/6.0-rt-bug43138/elp/quad.lower-test
./sql/mysqld: Can't change dir to '/mnt/raid/alik/MySQL/bzr/bug43138/6.0-rt-bug43138/elp/' (Errcode: 2)
090310 15:49:43 [ERROR] Aborting

Segmentation fault

$ gdb ./sql/mysqld

(gdb) run -v -help
[cut]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f1da31fa6f0 (LWP 2042)]
0x00000000009959ea in ~Delegate (this=0x0) at rpl_handler.h:129
129	    inited= FALSE;

(gdb) bt
#0  0x00000000009959ea in ~Delegate (this=0x0) at rpl_handler.h:129
#1  0x0000000000995a31 in ~Trans_delegate (this=0x0) at rpl_handler.h:142
#2  0x0000000000995258 in delegates_destroy () at rpl_handler.cc:118
#3  0x000000000075d228 in clean_up (print_message=true) at mysqld.cc:1376
#4  0x000000000075d691 in unireg_abort (exit_code=1) at mysqld.cc:1305
#5  0x000000000075ff72 in main (argc=3, argv=0x7fffab2176b8) at mysqld.cc:4622

How to repeat:
*
[10 Mar 2009 12:58] Valeriy Kravchuk
Verified just as described with recent 6.0 from bzr.
[11 Mar 2009 16:42] Davi Arnaut
The "delegate" part is a duplicate of Bug#42244.
[11 Mar 2009 16:45] Davi Arnaut
The other part is.. it crashes somewhere else:

safe_mutex: Trying to destroy unitialized mutex at sql_repl.cc, line 1040
Aborted (core dumped)
[8 Jun 2009 11:08] Alfranio Tavares Correia Junior
It crashes as follows (6.0-bugteam):

#0  0xb8032430 in __kernel_vsyscall ()
#1  0xb7d258a0 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7d27268 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0x089db382 in safe_mutex_destroy (mp=0x8de33e0, file=0x8baef5c "sql_repl.cc", line=1027) at thr_mutex.c:522
#4  0x085330c2 in end_slave_start () at sql_repl.cc:1027
#5  0x0836ac69 in clean_up (print_message=true) at mysqld.cc:1433
#6  0x0836af06 in unireg_abort (exit_code=1) at mysqld.cc:1326
#7  0x0836d9aa in main (argc=3, argv=0xbfd33834) at mysqld.cc:4592
[8 Jun 2009 14:20] 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/commits/75845

3346 Alfranio Correia	2009-06-08
      BUG#43533 './mysqld -v -help' crashes
      
      "end_slave_start" was trying to destroy a mutex "LOCK_slave_start" which
      was not intialized thus generating an error (i.e. abort()) in debug mode.
      To fix this problem, we introduced a variable that indicates when the 
      mutex "LOCK_slave_start" was initialized by "init_slave_start" and can be
      safely destroyed.
[9 Jun 2009 19:12] 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/commits/75949

3346 Alfranio Correia	2009-06-09
      BUG#43533 './mysqld -v -help' crashes
      
      "end_slave_start" was trying to destroy a mutex "LOCK_slave_start" which
      was not intialized thus generating an error (i.e. abort()) in debug mode.
      To fix this problem, we introduced a variable that indicates when the
      mutex "LOCK_slave_start" was initialized by "init_slave_start" and can be
      safely destroyed.
[17 Jun 2009 19:26] Bugs System
Pushed into 5.4.4-alpha (revid:alik@sun.com-20090616183122-chjzbaa30qopdra9) (version source revid:alfranio.correia@sun.com-20090610235845-edxl19t2wtrc8yed) (merge vers: 5.4.4-alpha) (pib:11)
[29 Jun 2009 0:56] Paul DuBois
Noted in 5.4.4 changelog.

The server crashed if invoked with the --verbose and --help options.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.064 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.