SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 67697: A segmentation violation might occur when the SQL query contains a HAVING clause with a function

DetailsHotfixAboutRate It

A segmentation violation can occur when the SQL query contains a HAVING clause with a function.

Here is an example:

proc sql;
    select col1  from tlib.tabName
    where col2 = 123
    group by col1
    having max(col3);
quit;

The segmentation violation might look similar to the following:

ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following traceback information:
 
The SAS task name is [SQL (710]
Segmentation Violation
 
Traceback of the Exception:
 
/sas/sashome/SASFoundation/9.4/sasexe/sas(+0x17fc6e) [0x55c4a0c21c6e]
/sas/sashome/SASFoundation/9.4/sasexe/sas(+0x503be) [0x55c4a0af23be]
/sas/sashome/SASFoundation/9.4/sasexe/tkmk.so(bkt_signal_handler+0x14b) [0x7fbd4cccf2db]
/lib64/libpthread.so.0(+0x3fd2e0f7e0) [0x7fbd4e5f07e0]
/sas/sashome/SASFoundation/9.4/sasexe/sassqlp(+0x5498a) [0x7fbcbd81d98a]
/sas/sashome/SASFoundation/9.4/sasexe/sassqlp(+0x546d8) [0x7fbcbd81d6d8]
/sas/sashome/SASFoundation/9.4/sasexe/sassqlp(sqlpsel+0xdb8) [0x7fbcbd81b158]
/sas/sashome/SASFoundation/9.4/sasexe/sassqlp(sqlplan+0x219) [0x7fbcbd807309]
/sas/sashome/SASFoundation/9.4/sasexe/sassqlp(sqlprep+0x3ee) [0x7fbcbd839cee]
/sas/sashome/SASFoundation/9.4/sasexe/sassqx(+0x44282) [0x7fbcbdfd7282]
/sas/sashome/SASFoundation/9.4/sasexe/sassqx(sqlloop+0x33c) [0x7fbcbdfd669c]
/sas/sashome/SASFoundation/9.4/sasexe/sassql(sassql+0x36d) [0x7fbcbe45d97d]
/sas/sashome/SASFoundation/9.4/sasexe/sas(vvtentr+0x17f) [0x55c4a0af1f7f]
/lib64/libpthread.so.0(+0x3fd2e07aa1) [0x7fbd4e5e8aa1]
/lib64/libc.so.6(clone+0x6d) [0x7fbd4dc76c4d]

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 SystemSAS/ACCESS Interface to Teradataz/OS9.479.489.4 TS1M79.4 TS1M8
Microsoft® Windows® for x649.479.489.4 TS1M79.4 TS1M8
Microsoft Windows 8 Enterprise 32-bit9.479.489.4 TS1M79.4 TS1M8
Microsoft Windows 8 Enterprise x649.479.489.4 TS1M79.4 TS1M8
Microsoft Windows 8 Pro 32-bit9.479.489.4 TS1M79.4 TS1M8
Microsoft Windows 8 Pro x649.479.489.4 TS1M79.4 TS1M8
Microsoft Windows 8.1 Enterprise 32-bit9.479.489.4 TS1M79.4 TS1M8
Microsoft Windows 8.1 Enterprise x649.479.489.4 TS1M79.4 TS1M8
Microsoft Windows 8.1 Pro 32-bit9.479.489.4 TS1M79.4 TS1M8
Microsoft Windows 8.1 Pro x649.479.489.4 TS1M79.4 TS1M8
Microsoft Windows 109.479.489.4 TS1M79.4 TS1M8
Microsoft Windows Server 20089.479.489.4 TS1M79.4 TS1M8
Microsoft Windows Server 2008 R29.479.489.4 TS1M79.4 TS1M8
Microsoft Windows Server 2008 for x649.479.489.4 TS1M79.4 TS1M8
Microsoft Windows Server 2012 Datacenter9.479.489.4 TS1M79.4 TS1M8
Microsoft Windows Server 2012 R2 Datacenter9.479.489.4 TS1M79.4 TS1M8
Microsoft Windows Server 2012 R2 Std9.479.489.4 TS1M79.4 TS1M8
Microsoft Windows Server 2012 Std9.479.489.4 TS1M79.4 TS1M8
Microsoft Windows Server 20169.479.489.4 TS1M79.4 TS1M8
Microsoft Windows Server 20199.479.489.4 TS1M79.4 TS1M8
Windows 7 Enterprise 32 bit9.479.489.4 TS1M79.4 TS1M8
Windows 7 Enterprise x649.479.489.4 TS1M79.4 TS1M8
Windows 7 Home Premium 32 bit9.479.489.4 TS1M79.4 TS1M8
Windows 7 Home Premium x649.479.489.4 TS1M79.4 TS1M8
Windows 7 Professional 32 bit9.479.489.4 TS1M79.4 TS1M8
Windows 7 Professional x649.479.489.4 TS1M79.4 TS1M8
Windows 7 Ultimate 32 bit9.479.489.4 TS1M79.4 TS1M8
Windows 7 Ultimate x649.479.489.4 TS1M79.4 TS1M8
64-bit Enabled AIX9.479.489.4 TS1M79.4 TS1M8
64-bit Enabled Solaris9.479.489.4 TS1M79.4 TS1M8
HP-UX IPF9.479.489.4 TS1M79.4 TS1M8
Linux for x649.479.489.4 TS1M79.4 TS1M8
Solaris for x649.479.489.4 TS1M79.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.