SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 70582: A Read access violation or segmentation violation occurs when registering DB2 Tables with foreign keys in the SAS® metadata

DetailsHotfixAboutRate It

When attempting to register a new DB2 table or update an existing DB2 table in SAS Metadata, a segmentation violation or Read access violation similar to the following might occur in the SAS log:

ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following traceback information:
 
The SAS task name is [METALIB ]
Segmentation Violation
 
Traceback of the Exception:
 
/app/sas/software/SASHome/SASFoundation/9.4/sasexe/sas(+0x185ed2) [0x56365a16eed2]
/app/sas/software/SASHome/SASFoundation/9.4/sasexe/sas(+0x4c60c) [0x56365a03560c]
/app/sas/software/SASHome/SASFoundation/9.4/sasexe/tkmk.so(bkt_signal_handler+0x14b) [0x7f054eb6e70b]
/lib64/libpthread.so.0(+0x12cf0) [0x7f055042acf0]
/app/sas/software/SASHome/SASFoundation/9.4/sasexe/sasmetas(addForKeys+0x1f0) [0x7f0506769af0]
/app/sas/software/SASHome/SASFoundation/9.4/sasexe/sasmetas(addmeta+0x329) [0x7f0506743559]
/app/sas/software/SASHome/SASFoundation/9.4/sasexe/sasmetas(refmeta+0x1246) [0x7f050673eb36]
/app/sas/software/SASHome/SASFoundation/9.4/sasexe/sasmetas(sasmetas+0x2d10) [0x7f05067321c0]
/app/sas/software/SASHome/SASFoundation/9.4/sasexe/sas(+0x4c1eb) [0x56365a0351eb]
/lib64/libpthread.so.0(+0x81ca) [0x7f05504201ca]
/lib64/libc.so.6(clone+0x43) [0x7f054f8dce73]
NOTE: The SAS System stopped processing this step because of errors.

The following behavior has been observed when a DB2 table contains more than one foreign key:

  • PROC METADATA registers tables until it reaches the problematic table
  • The registered metadata is not complete. For example, if the DB2 table has indexes, they are not registered.
  • PROC METADATA stops processing any further tables.

The only workaround is to exclude tables that contain more than one foreign key and register the tables manually.

Click the Hot Fix tab in this note to access the hot fix for this issue.

After you install the hot fix, multiple foreign keys are ignored, a note similar to the following is written to the SAS log, and further tables are processed as normal.

NOTE: Unable to register foreign keys for table <table name> due to multiple keys.


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASz/OS9.4_M89.4 TS1M8
z/OS 64-bit9.4_M89.4 TS1M8
Microsoft® Windows® for x649.4_M89.4 TS1M8
Microsoft Windows 8 Enterprise 32-bit9.4_M89.4 TS1M8
Microsoft Windows 8 Enterprise x649.4_M89.4 TS1M8
Microsoft Windows 8 Pro 32-bit9.4_M89.4 TS1M8
Microsoft Windows 8 Pro x649.4_M89.4 TS1M8
Microsoft Windows 8.1 Enterprise 32-bit9.4_M89.4 TS1M8
Microsoft Windows 8.1 Enterprise x649.4_M89.4 TS1M8
Microsoft Windows 8.1 Pro 32-bit9.4_M89.4 TS1M8
Microsoft Windows 8.1 Pro x649.4_M89.4 TS1M8
Microsoft Windows 109.4_M89.4 TS1M8
Microsoft Windows 119.4_M89.4 TS1M8
Microsoft Windows Server 20089.4_M89.4 TS1M8
Microsoft Windows Server 2008 R29.4_M89.4 TS1M8
Microsoft Windows Server 2008 for x649.4_M89.4 TS1M8
Microsoft Windows Server 2012 Datacenter9.4_M89.4 TS1M8
Microsoft Windows Server 2012 R2 Datacenter9.4_M89.4 TS1M8
Microsoft Windows Server 2012 R2 Std9.4_M89.4 TS1M8
Microsoft Windows Server 2012 Std9.4_M89.4 TS1M8
Microsoft Windows Server 20169.4_M89.4 TS1M8
Microsoft Windows Server 20199.4_M89.4 TS1M8
Microsoft Windows Server 20229.4_M89.4 TS1M8
Windows 7 Enterprise 32 bit9.4_M89.4 TS1M8
Windows 7 Enterprise x649.4_M89.4 TS1M8
Windows 7 Home Premium 32 bit9.4_M89.4 TS1M8
Windows 7 Home Premium x649.4_M89.4 TS1M8
Windows 7 Professional 32 bit9.4_M89.4 TS1M8
Windows 7 Professional x649.4_M89.4 TS1M8
Windows 7 Ultimate 32 bit9.4_M89.4 TS1M8
Windows 7 Ultimate x649.4_M89.4 TS1M8
64-bit Enabled AIX9.4_M89.4 TS1M8
64-bit Enabled Solaris9.4_M89.4 TS1M8
HP-UX IPF9.4_M89.4 TS1M8
Linux for x649.4_M89.4 TS1M8
Solaris for x649.4_M89.4 TS1M8
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.