[MDEV-5506] safe_mutex: Trying to lock unitialized mutex at safemalloc.c on server shutdown after SELECT with CONVERT_TZ Created: 2014-01-06  Updated: 2014-01-29  Resolved: 2014-01-28

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.1.67, 5.2.14, 5.3.12, 5.5.34
Fix Version/s: 5.5.35, 5.3.13

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates

 Description   

SELECT CONVERT_TZ( '2001-10-08 00:00:00', MAKE_SET(0, 'CET'), 'GMT' );
 
--shutdown_server

140106  2:20:47 [ERROR] Can't find description of time zone 'GMT'
140106  2:20:47 [Note] Got signal 15 to shutdown mysqld
140106  2:20:47 [Note] /data/repo/5.3.12/sql/mysqld: Normal shutdown
 
140106  2:20:47 [Note] Event Scheduler: Purging the queue. 0 events
140106  2:20:47 [Note] Debug sync points hit:                   128
140106  2:20:47 [Note] Debug sync points executed:              0
140106  2:20:47 [Note] Debug sync points max active per thread: 0
140106  2:20:47 [Note] /data/repo/5.3.12/sql/mysqld: Shutdown complete
 
safe_mutex: Trying to lock unitialized mutex at safemalloc.c, line 314
140106  2:20:47 [ERROR] mysqld got signal 6 ;

Thread pointer: 0x(nil)
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 0x48000
/data/repo/5.3.12/sql/mysqld(my_print_stacktrace+0x35) [0xb91c08]
/data/repo/5.3.12/sql/mysqld(handle_fatal_signal+0x2e1) [0x83c35d]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf030) [0x7f99bf34e030]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f99be640475]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x180) [0x7f99be6436f0]
/data/repo/5.3.12/sql/mysqld(safe_mutex_lock+0xa7) [0xb975a2]
/data/repo/5.3.12/sql/mysqld(_myfree+0x1ad) [0xb739bc]
/data/repo/5.3.12/sql/mysqld(String::free()+0x3e) [0x58ea54]
/data/repo/5.3.12/sql/mysqld(String::~String()+0x18) [0x58ea14]
/lib/x86_64-linux-gnu/libc.so.6(+0x36df2) [0x7f99be644df2]
/lib/x86_64-linux-gnu/libc.so.6(+0x36e45) [0x7f99be644e45]
/data/repo/5.3.12/sql/mysqld() [0x69890c]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f99be62cead]
/data/repo/5.3.12/sql/mysqld() [0x581be9]
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.
Writing a core file

revision-id: sergii@pisem.net-20130128081223-mp9rsd3t9soz8lly
revno: 3621
branch-nick: 5.3.12



 Comments   
Comment by Alexander Barkov [ 2014-01-23 ]

Also repeatable with this test, with numeric timezone notation:

SELECT CONVERT_TZ( '2001-10-08 00:00:00', MAKE_SET(0, '+01:00'), '+00:00' );
--shutdown_server

Comment by Daniel Bartholomew [ 2014-01-29 ]

http://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/2502.567.189

Generated at Thu Feb 08 07:04:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.