Description
When running a simple DBMS_XPLAN.COMPARE_PLANS on Oracle database 19.19 ARM edition on podman container get error:
ORCLPDB1(3):Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x616E696769726F] [PC:0xFFFF968FB210, __GI_strlen()+16] [flags: 0x0, count: 2]
Errors in file /opt/oracle/diag/rdbms/orclcdb/ORCLCDB/trace/ORCLCDB_ora_4269.trc (incident=9994) (PDBNAME=ORCLPDB1):
ORA-07445: exception encountered: core dump [__GI_strlen()+16] [SIGSEGV] [ADDR:0x616E696769726F] [PC:0xFFFF968FB210] [Address not mapped to object] []
ORA-07445: exception encountered: core dump [__GI_strlen()+16] [SIGSEGV] [ADDR:0x616E696769726F] [PC:0xFFFF968FB210] [Address not mapped to object] []
Podman image was created with script:
Singleinstance/buildContainerImage.sh -e -v 19.3.0
Using install media: LINUX.ARM64_1919000_db_home.zip
Simple scripts attached to re-create the error, will happen on demand.
scripts (attached zip file arm-7445-sql-compare-bug-sql-scripts.zip):
- lab-setup.sql - creates a user called perflab using USERS tablespace and grants needed rights.
- ctables.sql - logs in as the perflab user and creates the tables for this example
- spm-compre.sql - runs the same query six times, three with one bind value and three with different value to get two different execution plans. The does a comparison of the plans from cursor cache. ORA-7445 occurs here.
- q1.sql - script containing the SQL statement formatted to get the same sql_id each time.
Note: update the top of each script to set user password and PDB name.
Note: SQL_ID in my testing is 'fua0hb5hfst77' if the ID changes for some reason you will need to update the spm-compare.sql script with the new SQL_ID
arm-7445-sql-compare-bug-sql-scripts.zip