[MDEV-3287] LP:680408 - invalid fastbin entry (free) detected in close_thread_tables Created: 2010-11-23  Updated: 2015-02-02  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: Philip Stoev (Inactive) Assignee: Michael Widenius
Resolution: Incomplete Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug680408.xml     File LPexportBug680408_bug680408.init     File LPexportBug680408_bug680408.yy    

 Description   

The following INSERT + DELETE RQG workload causes the following crash:

2010-11-23T09:07:39 #3 0x000000307b6329c5 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64

  1. 2010-11-23T09:07:39 #4 0x000000307b6341a5 in abort () at abort.c:92
  2. 2010-11-23T09:07:39 #5 0x000000307b66fe2b in __libc_message (do_abort=2, fmt=0x307b743a78 "*** glibc detected *** %s: %s: 0x%s ***\n")
  3. 2010-11-23T09:07:39 at ../sysdeps/unix/sysv/linux/libc_fatal.c:186
  4. 2010-11-23T09:07:39 #6 0x000000307b675746 in malloc_printerr (action=3, str=0x307b741ba8 "invalid fastbin entry (free)", ptr=<value optimized out>) at malloc.c:6280
  5. 2010-11-23T09:07:39 #7 0x000000000064e081 in close_thread_tables (thd=0x2458c60) at sql_base.cc:1350
  6. 2010-11-23T09:07:39 #8 0x000000000061537c in dispatch_command (command=<value optimized out>, thd=0x2458c60, packet=0x245a570 "\001", packet_length=335563336)
  7. 2010-11-23T09:07:39 at sql_parse.cc:1701
  8. 2010-11-23T09:07:39 #9 0x00000000006168f1 in do_command (thd=0x2458c60) at sql_parse.cc:895
  9. 2010-11-23T09:07:39 #10 0x000000000060823f in handle_one_connection (arg=0x2458c60) at sql_connect.cc:1138
  10. 2010-11-23T09:07:39 #11 0x000000307ba07761 in start_thread (arg=0x7f5d65738710) at pthread_create.c:301
  11. 2010-11-23T09:07:39 #12 0x000000307b6e150d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

It is repeatable in about 50% of the test runs within 10 minutes from the start of the test.



 Comments   
Comment by Philip Stoev (Inactive) [ 2010-11-23 ]

Re: invalid fastbin entry (free) detected in close_thread_tables

Comment by Philip Stoev (Inactive) [ 2010-11-23 ]

SQL --init file
LPexportBug680408_bug680408.init

Comment by Philip Stoev (Inactive) [ 2010-11-23 ]

Re: invalid fastbin entry (free) detected in close_thread_tables

Comment by Philip Stoev (Inactive) [ 2010-11-23 ]

RQG grammar
LPexportBug680408_bug680408.yy

Comment by Philip Stoev (Inactive) [ 2010-11-23 ]

Re: invalid fastbin entry (free) detected in close_thread_tables
To reproduce with the RQG:

perl runall.pl -duration=1000000 --mysqld=key_buffer_size=256M --mysqld=myisam_recover=BACKUP,FORCE --mysqld=log-output=none --mysqld=thread_stack=256K --mysqld=thread_cache_size=128 --mysqld=table_cache=2048 --mysqld=- max_heap_table_size=64M -mysqld=skip-external-locking --mysqld=open-files-limit=8000 --threads=30 --queries=100M --grammar=bug680408.yy --mysqld=-init-file=/full/path/to/bug680408.init --basedir=/home/philips/dreas/mariadb-5.1.50-Linux-x86_64

Comment by Michael Widenius [ 2011-02-10 ]

Re: invalid fastbin entry (free) detected in close_thread_tables
Have not been able to repeat this

Comment by Rasmus Johansson (Inactive) [ 2012-03-27 ]

Launchpad bug id: 680408

Generated at Thu Feb 08 06:47:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.