Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3287

LP:680408 - invalid fastbin entry (free) detected in close_thread_tables

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            philipstoev Philip Stoev added a comment -

            SQL --init file
            LPexportBug680408_bug680408.init

            Show
            philipstoev Philip Stoev added a comment - SQL --init file LPexportBug680408_bug680408.init
            Hide
            philipstoev Philip Stoev added a comment -

            Re: invalid fastbin entry (free) detected in close_thread_tables

            Show
            philipstoev Philip Stoev added a comment - Re: invalid fastbin entry (free) detected in close_thread_tables
            Hide
            philipstoev Philip Stoev added a comment -

            RQG grammar
            LPexportBug680408_bug680408.yy

            Show
            philipstoev Philip Stoev added a comment - RQG grammar LPexportBug680408_bug680408.yy
            Hide
            philipstoev Philip Stoev added a comment -

            Re: invalid fastbin entry (free) detected in close_thread_tables

            Show
            philipstoev Philip Stoev added a comment - Re: invalid fastbin entry (free) detected in close_thread_tables
            Hide
            philipstoev Philip Stoev added a comment -

            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

            Show
            philipstoev Philip Stoev added a comment - 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
            Hide
            monty Michael Widenius added a comment -

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

            Show
            monty Michael Widenius added a comment - Re: invalid fastbin entry (free) detected in close_thread_tables Have not been able to repeat this
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 680408

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 680408

              People

              • Assignee:
                monty Michael Widenius
                Reporter:
                philipstoev Philip Stoev
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: