Problem Note 67697: A segmentation violation might occur when the SQL query contains a HAVING clause with a function
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
SAS System | SAS/ACCESS Interface to Teradata | z/OS | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft® Windows® for x64 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8 Enterprise 32-bit | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8 Enterprise x64 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8 Pro 32-bit | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8 Pro x64 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8.1 Enterprise x64 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8.1 Pro 32-bit | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8.1 Pro x64 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 10 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2008 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2008 R2 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2008 for x64 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2012 Datacenter | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2012 R2 Datacenter | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2012 R2 Std | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2012 Std | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2016 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2019 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Enterprise 32 bit | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Enterprise x64 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Home Premium 32 bit | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Home Premium x64 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Professional 32 bit | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Professional x64 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Ultimate 32 bit | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Ultimate x64 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
64-bit Enabled AIX | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
64-bit Enabled Solaris | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
HP-UX IPF | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Linux for x64 | 9.47 | 9.48 | 9.4 TS1M7 | 9.4 TS1M8 |
Solaris for x64 | 9.47 | 9.48 | 9.4 TS1M7 | 9.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.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2021-04-08 08:44:37 |
Date Created: | 2021-04-01 07:45:49 |