Details
-
Bug
-
Status: In Progress (View Workflow)
-
Critical
-
Resolution: Unresolved
-
10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.4, 11.8
-
Q2/2025 Development
Description
To reproduce the bug report, unpack the .7z archive file attached to the linked bug report, start MariaDB server and run the following statements to prepare environment:
$ mysql -e 'CREATE DATABASE local_portal' -u root
|
|
$ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/tableSchemaAndData-mariaDbTest
|
$ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/item_creation_retailer_group_retailers_mariadbtest.sql
|
$ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/qry_exporterImages-mariaDb_storedProcIssue.sql
|
$ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/vu_productimages_retailergroup-mariaDb-storedProcIssue.sql
|
|
$ mysql -u root local_portal
|
MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628);
|
MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628);
|
Result sets returned on the first and the second invocation of the stored routine qry_exporterImages_mariaDbTest are different (at least, number of rows returned by two invocations are different)
Attachments
Issue Links
- blocks
-
MDEV-6704 Wrong result (extra rows) on 2nd execution of PS with exists_to_in, MERGE view
-
- Stalled
-
-
MDEV-22534 Trivial correlation detection/removal for IN subqueries
-
- In Review
-
-
MDEV-23828 Wrong result upon 2nd execution of PS/SP with EXISTS subquery converted to semijoin
-
- Stalled
-
-
MDEV-30396 Wrong result with EXISTS subquery over view on 2nd execution of PS
-
- Open
-
-
MDEV-31175 Server crash on 2n execution of select with view and aggregate function
-
- Confirmed
-
-
MDEV-33081 Crash on second execution of PS for query over many views
-
- Stalled
-
- is blocked by
-
MDEV-31277 Wrong result on 2-nd execution of PS to select from view using derived
-
- Closed
-
-
MDEV-32466 Potential memory leak on execuing of create view statement
-
- Closed
-
-
MDEV-32569 Failure when executing PS for query using IN subquery
-
- Closed
-
-
MDEV-32754 Failure at second executon of PS for query using stored function
-
- Closed
-
-
MDEV-36607 find_order_in_list mismatch when order item needs fixing()
-
- Closed
-
- is duplicated by
-
MDEV-31269 Various SIGSEGV crashes, UBSAN issues and memory corruption on 2nd PS execution caused by exists-to-in
-
- Stalled
-
- relates to
-
MDEV-31277 Wrong result on 2-nd execution of PS to select from view using derived
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link | This issue duplicates MENT-1502 [ MENT-1502 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Fix Version/s | 10.6 [ 24028 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Link | This issue is duplicated by MENT-1502 [ MENT-1502 ] |
Link | This issue duplicates MENT-1502 [ MENT-1502 ] |
Description |
This bug report is duplicate of the task MENT-1502 and filed since the original task MENT-1502 missed some the fact that the original issue is reproduced on every community server version 10.3 and up.
So, the original bug report is not specific for enterprise server, rather relates to community server. To reproduce the bug report, unpack the .7z archive file attached to the original bug report, start MariaDB server and run the following statements to prepare environment: $ mysql -e 'CREATE DATABASE local_portal' -u root $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/tableSchemaAndData-mariaDbTest $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/item_creation_retailer_group_retailers_mariadbtest.sql $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/qry_exporterImages-mariaDb_storedProcIssue.sql $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/vu_productimages_retailergroup-mariaDb-storedProcIssue.sql $ mysql -u root local_portal MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628); MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628); Result sets returned on the first and the second invocation of the stored routine qry_exporterImages_mariaDbTest are different (at least, number of rows returned by two invocations are different) |
So, the original bug report is not specific for enterprise server, rather relates to community server.
To reproduce the bug report, unpack the .7z archive file attached to the original bug report, start MariaDB server and run the following statements to prepare environment: $ mysql -e 'CREATE DATABASE local_portal' -u root $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/tableSchemaAndData-mariaDbTest $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/item_creation_retailer_group_retailers_mariadbtest.sql $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/qry_exporterImages-mariaDb_storedProcIssue.sql $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/vu_productimages_retailergroup-mariaDb-storedProcIssue.sql $ mysql -u root local_portal MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628); MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628); Result sets returned on the first and the second invocation of the stored routine qry_exporterImages_mariaDbTest are different (at least, number of rows returned by two invocations are different) |
Description |
So, the original bug report is not specific for enterprise server, rather relates to community server.
To reproduce the bug report, unpack the .7z archive file attached to the original bug report, start MariaDB server and run the following statements to prepare environment: $ mysql -e 'CREATE DATABASE local_portal' -u root $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/tableSchemaAndData-mariaDbTest $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/item_creation_retailer_group_retailers_mariadbtest.sql $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/qry_exporterImages-mariaDb_storedProcIssue.sql $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/vu_productimages_retailergroup-mariaDb-storedProcIssue.sql $ mysql -u root local_portal MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628); MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628); Result sets returned on the first and the second invocation of the stored routine qry_exporterImages_mariaDbTest are different (at least, number of rows returned by two invocations are different) |
To reproduce the bug report, unpack the .7z archive file attached to the linked bug report, start MariaDB server and run the following statements to prepare environment:
$ mysql -e 'CREATE DATABASE local_portal' -u root $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/tableSchemaAndData-mariaDbTest $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/item_creation_retailer_group_retailers_mariadbtest.sql $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/qry_exporterImages-mariaDb_storedProcIssue.sql $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/vu_productimages_retailergroup-mariaDb-storedProcIssue.sql $ mysql -u root local_portal MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628); MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628); Result sets returned on the first and the second invocation of the stored routine qry_exporterImages_mariaDbTest are different (at least, number of rows returned by two invocations are different) |
Assignee | Dmitry Shulga [ JIRAUSER47315 ] | Igor Babaev [ igor ] |
Description |
To reproduce the bug report, unpack the .7z archive file attached to the linked bug report, start MariaDB server and run the following statements to prepare environment:
$ mysql -e 'CREATE DATABASE local_portal' -u root $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/tableSchemaAndData-mariaDbTest $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/item_creation_retailer_group_retailers_mariadbtest.sql $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/qry_exporterImages-mariaDb_storedProcIssue.sql $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/vu_productimages_retailergroup-mariaDb-storedProcIssue.sql $ mysql -u root local_portal MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628); MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628); Result sets returned on the first and the second invocation of the stored routine qry_exporterImages_mariaDbTest are different (at least, number of rows returned by two invocations are different) |
To reproduce the bug report, unpack the .7z archive file attached to the linked bug report, start MariaDB server and run the following statements to prepare environment:
{noformat} $ mysql -e 'CREATE DATABASE local_portal' -u root $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/tableSchemaAndData-mariaDbTest $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/item_creation_retailer_group_retailers_mariadbtest.sql $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/qry_exporterImages-mariaDb_storedProcIssue.sql $ mysql -u root local_portal < /path/to/dir/where/archive/was/extracted/vu_productimages_retailergroup-mariaDb-storedProcIssue.sql $ mysql -u root local_portal MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628); MariaDB [local_portal]> CALL qry_exporterImages_mariaDbTest(3569,4,628); {noformat} Result sets returned on the first and the second invocation of the stored routine qry_exporterImages_mariaDbTest are different (at least, number of rows returned by two invocations are different) |
Link | This issue relates to MDEV-31269 [ MDEV-31269 ] |
Link |
This issue relates to |
Component/s | Prepared Statements [ 10804 ] |
Link | This issue blocks MDEV-31269 [ MDEV-31269 ] |
Link | This issue blocks MDEV-23828 [ MDEV-23828 ] |
Link | This issue blocks MDEV-30396 [ MDEV-30396 ] |
Link | This issue blocks MDEV-31175 [ MDEV-31175 ] |
Summary | Stored Procedure Returns Corrupt Results When Run a Second Time | Wrong result on second execution of PS for query with NOT EXISTS predicate |
Summary | Wrong result on second execution of PS for query with NOT EXISTS predicate | Wrong result on 2nd execution of PS for query with NOT EXISTS |
Labels | triage |
Link |
This issue is blocked by |
Link | This issue blocks MDEV-31269 [ MDEV-31269 ] |
Link |
This issue is blocked by |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Link | This issue blocks MDEV-31269 [ MDEV-31269 ] |
Link |
This issue is blocked by |
Link |
This issue is blocked by |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Link | This issue is blocked by MDEV-33081 [ MDEV-33081 ] |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.11 [ 27614 ] | |
Fix Version/s | 11.0 [ 28320 ] | |
Fix Version/s | 11.1 [ 28549 ] | |
Fix Version/s | 11.2 [ 28603 ] | |
Fix Version/s | 11.3 [ 28565 ] | |
Fix Version/s | 11.4 [ 29301 ] |
Labels | triage | triage wrong_result |
Link |
This issue is blocked by |
Link | This issue blocks MDEV-33081 [ MDEV-33081 ] |
Link | This issue is blocked by MDEV-33081 [ MDEV-33081 ] |
Link | This issue blocks MDEV-22534 [ MDEV-22534 ] |
Link |
This issue is blocked by |
Fix Version/s | 11.0 [ 28320 ] | |
Fix Version/s | 11.3 [ 28565 ] |
Zendesk Related Tickets | 202158 |
Link | This issue is blocked by MDEV-32294 [ MDEV-32294 ] |
Fix Version/s | 10.4 [ 22408 ] |
Fix Version/s | 11.1 [ 28549 ] |
Link | This issue relates to MDEV-31269 [ MDEV-31269 ] |
Fix Version/s | 11.2(EOL) [ 28603 ] |
Fix Version/s | 10.5.28 [ 29952 ] | |
Fix Version/s | 10.6.21 [ 29953 ] | |
Fix Version/s | 10.11.11 [ 29954 ] | |
Fix Version/s | 11.4.5 [ 29956 ] | |
Fix Version/s | 11.7.2 [ 29914 ] | |
Fix Version/s | 11.8.1 [ 29961 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.11 [ 27614 ] | |
Fix Version/s | 11.4 [ 29301 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Stalled [ 10000 ] |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 11.7.2 [ 29914 ] | |
Fix Version/s | 10.5.28 [ 29952 ] | |
Fix Version/s | 10.6.21 [ 29953 ] | |
Fix Version/s | 10.11.11 [ 29954 ] | |
Fix Version/s | 11.4.5 [ 29956 ] | |
Fix Version/s | 11.8.1 [ 29961 ] |
Comment | [ A fix for this bug was pushed into 10.5. It has to be merged upstream as it is. ] |
Labels | triage wrong_result | wrong_result |
Assignee | Igor Babaev [ igor ] | Rex Johnston [ JIRAUSER52533 ] |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.11 [ 27614 ] | |
Fix Version/s | 11.4 [ 29301 ] | |
Fix Version/s | 11.8 [ 29921 ] |
Affects Version/s | 11.4 [ 29301 ] | |
Affects Version/s | 11.8 [ 29921 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Sprint | Server 12.1 dev sprint [ 793 ] |
Sprint | Server 12.1 dev sprint [ 793 ] |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] |
Sprint | Server 12.1 dev sprint [ 793 ] |
Link | This issue is duplicated by MDEV-31269 [ MDEV-31269 ] |
Link | This issue blocks MDEV-31269 [ MDEV-31269 ] |
Link |
This issue is blocked by |
Rank | Ranked higher |
A temporary workaround for this issue is to assign the value 'exists_to_in=off' to the option optimizer_switch. That is, just before run the statement
CALL qry_exporterImages_mariaDbTest(3569,4,628);
execute the following one