[MDEV-20425] Implement Boolean debug build option debug_assert Created: 2019-08-26  Updated: 2019-09-08  Resolved: 2019-08-29

Status: Closed
Project: MariaDB Server
Component/s: Server, Storage Engine - InnoDB
Fix Version/s: 10.3.18, 10.4.8

Type: Task Priority: Major
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: debug, warning

Issue Links:
Problem/Incident
causes MDEV-20525 rocksdb compilation fails on Windows ... Closed

 Description   

MariaDB Server 10.3.1 introduced the compiler flag (not cmake option) DBUG_ASSERT_AS_PRINTF that converts DBUG_ASSERT in non-debug builds into printouts.

For debug builds, it would be useful to be able to convert DBUG_ASSERT into a warning or error printout, to allow execution to continue. This would allow debug builds to be used for reproducing hard failures that occur with release builds.

My proposal for the option name would be debug_assert, because we already have debug_assert_on_error and debug_assert_if_crashed_table. Typical usage could be like this:

./mtr --mysqld=--skip-debug-assert some_crashing_test


Generated at Thu Feb 08 08:59:23 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.