LP:1058071 - crash with small join_buffer_size and outer_join_with_cache+join_cache_incremental in JOIN_CACHE::read_record_field

Description

The report was originally filed at LaunchPad by sbester:
https://bugs.launchpad.net/maria/+bug/1058071

Stack trace on maria/5.3 version-info

Also reproducible on maria/5.5

The original test case is attached to the LP bug. Please use it if the shortened one below doesn't work for you on whatever reason. Please also note that the original description suggests to run the test with valgrind.

Shorter test case:

Minimal optimizer_switch: outer_join_with_cache=on,join_cache_incremental=on

EXPLAIN

Environment

None

Status

Assignee

Igor Babaev

Reporter

Elena Stepanova

Labels

None

Fix versions

Affects versions

Priority

Major
Configure