[MDEV-3004] LP:632239 - ma_bitmap.c:2268: _ma_bitmap_release_unused: Assertion `current_bitmap_value == _ma_bitmap_get_page_bits(info, bitmap, block->page)' failed Created: 2010-09-07  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: Major
Reporter: Philip Stoev (Inactive) Assignee: Michael Widenius
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug632239.xml     Zip Archive LPexportBug632239_var-bug632239.zip    

 Description   

When executing the varchar scenario, Aria asserted as follows:

ma_bitmap.c:2268: _ma_bitmap_release_unused: Assertion `current_bitmap_value == _ma_bitmap_get_page_bits(info, bitmap, block->page)' failed

backtrace:

#6 0x000000307b62b945 in __assert_fail (assertion=0xd5a7c8 "current_bitmap_value == _ma_bitmap_get_page_bits(info, bitmap, block->page)",
file=<value optimized out>, line=2268, function=<value optimized out>) at assert.c:81
#7 0x0000000000999ccd in _ma_bitmap_release_unused (info=0x7f5c180bae58, blocks=0x7f5c180baeb8) at ma_bitmap.c:2267
#8 0x000000000098ab76 in write_block_record (info=0x7f5c180bae58, old_record=0x0, record=0x7f5c180b1e10 "\377", row=0x7f5c180baeb8,
bitmap_blocks=0x7f5c180baeb8, head_block_is_read=1 '\001', row_pos=0x7f5c6c28f140, undo_lsn=1, old_record_checksum=0) at ma_blockrec.c:3372
#9 0x000000000098b085 in allocate_and_write_block_record (info=0x7f5c180bae58, record=0x7f5c180b1e10 "\377", row=0x7f5c180baeb8, undo_lsn=1)
at ma_blockrec.c:3506
#10 0x000000000098b197 in _ma_write_init_block_record (info=0x7f5c180bae58, record=0x7f5c180b1e10 "\377") at ma_blockrec.c:3546
#11 0x000000000099bcaf in maria_write (info=0x7f5c180bae58, record=0x7f5c180b1e10 "\377") at ma_write.c:148
#12 0x00000000009537c0 in ha_maria::write_row (this=0x7f5c1809aab0, buf=0x7f5c180b1e10 "\377") at ha_maria.cc:1040
#13 0x00000000007c233e in handler::ha_write_row (this=0x7f5c1809aab0, buf=0x7f5c180b1e10 "\377") at handler.cc:4655
#14 0x00000000007232de in write_record (thd=0x7f5c1809aab0, table=0x7f5c180b1e10, info=0x9537c0) at sql_insert.cc:1632
#15 0x000000000072116d in mysql_insert (thd=0x4804e78, table_list=0x7f5bf8014d58, fields=..., values_list=..., update_fields=..., update_values=...,
duplic=DUP_ERROR, ignore=false) at sql_insert.cc:860
#16 0x0000000000683d12 in mysql_execute_command (thd=0x4804e78) at sql_parse.cc:3288
#17 0x000000000068c68d in mysql_parse (thd=0x4804e78,
rawbuf=0x7f5bf8014910 "INSERT INTO `table1_maria_varchar_1024_not_null` ( `col_varchar_1024_latin1_not_null` , `col_varchar_1024_utf8_not_null` ) VALUES ( 't' , 'gnhzmmplodrhiglvkptukrowumznxpnpubukwhmvqdzbvkhdssornunvsbvqe"..., length=376, found_semicolon=0x7f5c6c290c70) at sql_parse.cc:6092
#18 0x000000000067e894 in dispatch_command (command=COM_QUERY, thd=0x4804e78,
packet=0x48081f9 "INSERT INTO `table1_maria_varchar_1024_not_null` ( `col_varchar_1024_latin1_not_null` , `col_varchar_1024_utf8_not_null` ) VALUES ( 't' , 'gnhzmmplodrhiglvkptukrowumznxpnpubukwhmvqdzbvkhdssornunvsbvqe"..., packet_length=376) at sql_parse.cc:1269
#19 0x000000000067d8ab in do_command (thd=0x4804e78) at sql_parse.cc:895
#20 0x000000000067a8c9 in handle_one_connection (arg=0x4804e78) at sql_connect.cc:1138
#21 0x000000307ba07761 in start_thread (arg=0x7f5c6c291710) at pthread_create.c:301
#22 0x000000307b6e150d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

bzr version-info:

revision-id: <email address hidden>
date: 2010-09-06 02:48:51 +0300
build-date: 2010-09-07 11:15:05 +0300
revno: 2922
branch-nick: 5.1

rqg command line:

2010-09-07T00:16:55 # /home/buildbot/randgen/runall.pl \

  1. 2010-09-07T00:16:55 # --queries=1M \
  2. 2010-09-07T00:16:55 # --engine=Maria \
  3. 2010-09-07T00:16:55 # -mysqld=-log-output=file \
  4. 2010-09-07T00:16:55 # --reporters=ErrorLog,Backtrace,Recovery,Shutdown \
  5. 2010-09-07T00:16:55 # --duration=240 \
  6. 2010-09-07T00:16:55 # --threads=10 \
  7. 2010-09-07T00:16:55 # --rows=1 \
  8. 2010-09-07T00:16:55 # --mask-level=2 \
  9. 2010-09-07T00:16:55 # -mysqld=-maria-repair-threads=2 \
  10. 2010-09-07T00:16:55 # -mysqld=-loose-maria-group-commit=soft \
  11. 2010-09-07T00:16:55 # -mysqld=-loose-maria_group_commit_interval=1 \
  12. 2010-09-07T00:16:55 # -mysqld=-maria-checkpoint-interval=1 \
  13. 2010-09-07T00:16:55 # -mysqld=-maria-block-size=4K \
  14. 2010-09-07T00:16:55 # --grammar=conf/engines/varchar.yy \
  15. 2010-09-07T00:16:55 # --gendata=conf/engines/varchar.zz \
  16. 2010-09-07T00:16:55 # --mask=9066 \
  17. 2010-09-07T00:16:55 # --queries=100000000 \
  18. 2010-09-07T00:16:55 # --mask=9066 \
  19. 2010-09-07T00:16:55 # --basedir=. \
  20. 2010-09-07T00:16:55 # --seed=1283807818 \
  21. 2010-09-07T00:16:55 # --vardir=/home/buildbot/rqg-buildbot-slave/rqg-weekend/vardir-maria_recovery_weekend/current


 Comments   
Comment by Philip Stoev (Inactive) [ 2010-09-07 ]

Re: ma_bitmap.c:2268: _ma_bitmap_release_unused: Assertion `current_bitmap_value == _ma_bitmap_get_page_bits(info, bitmap, block->page)' failed

Comment by Philip Stoev (Inactive) [ 2010-09-07 ]

Core binary datadir
LPexportBug632239_var-bug632239.zip

Comment by Michael Widenius [ 2010-11-03 ]

Re: ma_bitmap.c:2268: _ma_bitmap_release_unused: Assertion `current_bitmap_value == _ma_bitmap_get_page_bits(info, bitmap, block->page)' failed
Fix committed into 5.1 tree

Comment by Rasmus Johansson (Inactive) [ 2010-12-17 ]

Launchpad bug id: 632239

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