SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 67588: A segmentation violation occurs in SAS/ACCESS® Interface to Oracle when you use PROC SQL with the PRESERVE_COMMENTS option

DetailsHotfixAboutRate It

You receive a segmentation violation in SAS/ACCESS Interface to Oracle in the following set of circumstances:

  • You use the PRESERVE_COMMENTS option in a LIBNAME statement for an Oracle library.
  • You use the SQL procedure and a CREATE TABLE statement.
  • The output table uses the libref.
  • The input table uses the libref.
  • A PUT function is in a SELECT clause.

The SAS log might display information similar to the following as well as the segmentation violation:

1 LIBNAME Oracle-library ORACLE PRESERVE_COMMENTS PATH=path USER=user-name PASSWORD=XXXXX 
1 ! SCHEMA="schema" ; 
NOTE: Option PRESERVE_COMMENTS is a CONNECT only option. Its value will be conveyed to any CONNECT USING connections based on this LIBNAME statement. 
NOTE: Libref Oracle-library was successfully assigned as follows: 
      Engine: ORACLE Physical 
      Name: path
2       PROC SQL ;
3          CREATE TABLE Oracle-library.Oracle-table2 as
4             SELECT column-1,
5                    PUT(column-2,$30.) AS newVar
6               FROM Oracle-library.Oracle-table1
7          ;
ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following traceback information:The SAS task name is [SQL     ]
Segmentation Violation
Traceback of the Exception:
/sasgen/dev/mva-v940m6f/SAS/laxdo/sas(+0x16844e) [0x7fd1bc05044e]
/sasgen/dev/mva-v940m6f/SAS/laxdo/sas(+0x4ee1f) [0x7fd1bbf36e1f]
/sasgen/wky/mva-v940m6/sasdvd/com/laxdo/tkmk.so(bkt_signal_handler+0x144) [0x7fd1ba32caa4]
/lib64/libpthread.so.0(+0x381620f520) [0x7fd1bb89a520]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sasxdbi(xogUTKCreateOpt+0x1ab) [0x7fd18f70598b]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sasxdbi(xogUTKCreateAllOpts+0x4e) [0x7fd18f705bee]
/sasgen/wky/mva-v940m6/sasdvd/com/laxdo/sasioora(orxogInitLNOpts+0x56) [0x7fd18f997176]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sasxdbi(xogInitLNOpts+0xc1) [0x7fd18f705d11]
/sasgen/wky/mva-v940m6/sasdvd/com/laxdo/sasxog(yogConLib+0x5d2) [0x7fd17bdda442]
/sasgen/wky/mva-v940m6/sasdvd/com/laxdo/sasxog(yogConFid+0x5e) [0x7fd17bdd9e4e]
/sasgen/wky/mva-v940m6/sasdvd/com/laxdo/sasxog(yogAllocConnectionWithFid+0x46) [0x7fd17bdd7e26]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x4002c) [0x7fd18018d02c]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x3b86c) [0x7fd18018886c]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x32042) [0x7fd18017f042]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x39b2a) [0x7fd180186b2a]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x2bec0) [0x7fd180178ec0]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x39932) [0x7fd180186932]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x19559) [0x7fd180166559]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x3ba80) [0x7fd180188a80]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x24374) [0x7fd180171374]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x23142) [0x7fd180170142]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x385c9) [0x7fd1801855c9]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x30458) [0x7fd18017d458]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x39932) [0x7fd180186932]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(sqltxt2+0x51e) [0x7fd18016211e]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlp(+0x50c85) [0x7fd180623c85]
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.13 seconds
      cpu time            0.06 seconds

The following workarounds exist:

  • Remove the PRESERVE_COMMENTS option from the Oracle LIBNAME statement.
  • Remove or replace the PUT function with an alternative. The STRIP function might work instead.

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



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASz/OS9.4_M49.4_M79.4 TS1M49.4 TS1M7
z/OS 64-bit9.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft® Windows® for x649.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows 8 Enterprise 32-bit9.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows 8 Enterprise x649.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows 8 Pro 32-bit9.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows 8 Pro x649.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows 8.1 Enterprise 32-bit9.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows 8.1 Enterprise x649.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows 8.1 Pro 32-bit9.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows 8.1 Pro x649.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows 109.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows Server 20089.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows Server 2008 R29.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows Server 2008 for x649.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows Server 2012 Datacenter9.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows Server 2012 R2 Datacenter9.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows Server 2012 R2 Std9.4_M49.4_M79.4 TS1M49.4 TS1M7
Microsoft Windows Server 2012 Std9.4_M49.4_M79.4 TS1M49.4 TS1M7
Windows 7 Enterprise 32 bit9.4_M49.4_M79.4 TS1M49.4 TS1M7
Windows 7 Enterprise x649.4_M49.4_M79.4 TS1M49.4 TS1M7
Windows 7 Home Premium 32 bit9.4_M49.4_M79.4 TS1M49.4 TS1M7
Windows 7 Home Premium x649.4_M49.4_M79.4 TS1M49.4 TS1M7
Windows 7 Professional 32 bit9.4_M49.4_M79.4 TS1M49.4 TS1M7
Windows 7 Professional x649.4_M49.4_M79.4 TS1M49.4 TS1M7
Windows 7 Ultimate 32 bit9.4_M49.4_M79.4 TS1M49.4 TS1M7
Windows 7 Ultimate x649.4_M49.4_M79.4 TS1M49.4 TS1M7
64-bit Enabled AIX9.4_M49.4_M79.4 TS1M49.4 TS1M7
64-bit Enabled Solaris9.4_M49.4_M79.4 TS1M49.4 TS1M7
HP-UX IPF9.4_M49.4_M79.4 TS1M49.4 TS1M7
Linux for x649.4_M49.4_M79.4 TS1M49.4 TS1M7
Solaris for x649.4_M49.4_M79.4 TS1M49.4 TS1M7
* 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.