UNIV_DEBUG build broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Invalid
|
Undecided
|
Unassigned | ||
5.1 |
Fix Released
|
High
|
Laurynas Biveinis | ||
5.5 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
To reproduce, add -DUNIV_DEBUG to extra_flags in compile-
Current Percona Server 5.1 trunk (rev 477):
gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../regex -I./include -I../../sql -I. -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-
buf/buf0buf.c: In function ‘buf_page_get_gen’:
buf/buf0buf.
buf/buf0buf.
make[2]: *** [libinnobase_
make[2]: Leaving directory `/home/
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/
make: *** [all-recursive] Error 1
Current MySQL 5.1 trunk builds fine with the same script.
Related branches
- Stewart Smith (community): Approve
- George Ormond Lorch III (community): Approve (g2)
- Percona core: Pending (g1) requested
- Laurynas Biveinis: Pending requested
-
Diff: 60 lines (+8/-6)3 files modifiedPercona-Server/mysql-test/r/percona_server_variables_debug.result (+2/-0)
Percona-Server/storage/innodb_plugin/buf/buf0buf.c (+5/-5)
Percona-Server/storage/innodb_plugin/page/page0page.c (+1/-1)
Hi, I've directly port this patch to our branch(based on Percona- Server- 5.5.18) , and observed an assert failure caused by this line :
28 + ulint page_no = buf_block_ get_page_ no(block) ;
#6 0x00000000009f28d6 in buf_block_ get_page_ no (block= 0x2b88c3195b50) at /u01/mysqltest/ source/ Percona- Server- 5.5.18/ storage/ innobase/ include/ buf0buf. ic:727 block_get_ state(block) == BUF_BLOCK_ FILE_PAGE) ;
727 ut_a(buf_
(gdb) p block->page.state
$5 = 3
any advise ?