[MDEV-32424] Computing unoptimized subquery? SEGV at /mariadb-11.3.0/sql/sql_select.cc:4717 Created: 2023-10-10 Updated: 2024-02-08 |
|
| Status: | In Review |
| Project: | MariaDB Server |
| Component/s: | Optimizer, Server |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2, 11.3.0 |
| Fix Version/s: | 10.4.33 |
| Type: | Bug | Priority: | Major |
| Reporter: | Xin Wen | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Environment: |
Ubuntu 20.04 |
||
| Issue Links: |
|
||||||||||||
| Description |
|
Run these queries in release build:
Will trigger Segmentation fault.
|
| Comments |
| Comment by Alice Sherepa [ 2023-10-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks! I repeated as described on 10.4-11.2, this is the same bug as
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2023-10-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
test case from
from
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Yuchen Pei [ 2024-01-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The assertion failure in [1] looks similar to [2]. I wonder whether this ticket is related to MDEV-29363. [1] https://jira.mariadb.org/browse/MDEV-32424?focusedCommentId=272672&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-272672 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Dave Gosselin [ 2024-01-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
A shorter reproduction case for this issue is:
This issue appeared at igor's commit git sha 1c97cd339e9513b152727f386573c8c048db0281 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Dave Gosselin [ 2024-01-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Apparent duplicate of MDEV-29363 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Yuchen Pei [ 2024-01-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for checking Gosselin - did you check all test cases alice, why is BTW the current idea of fixing MDEV-29363 is to ban creating pointers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Dave Gosselin [ 2024-01-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ycp I didn't test cases from another ticket when closing this one. If there are other cases triggering crashes, those should be treated as separate bugs in my opinion. We can reopen this ticket if, after 29363 is resolved, the issue from the description when originally filed persists. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Dave Gosselin [ 2024-01-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
alice it seems that the stack trace in the description of this ticket is different than what you posted in your comment. I think that there may be some relationship, but these are separate bugs. It gets confusing to post stack traces and test cases across tickets because it blurs the picture of what issues and test cases go together. Thanks. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Yuchen Pei [ 2024-01-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
alice you are right - I could get these stacks for the original case and the Now, with psergei's MDEV-29363 patch (check out 2cf940943ad4a102facee4b90c945b538d6c32ef), the | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Dave Gosselin [ 2024-01-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ycp I agree if we resolve this ticket by delivering psergei's patch from MDEV-29363. |