Problem Note 67715: A segmentation violation can occur when you create result tables with the Cloud Analytic Services Language (CASL)
A segmentation violation can occur when you create result tables with CASL.
The following example code can generate the violation:
proc cas;
function getPath(parentID);
fullPath = '';
do until (parentID = '');
fedsql.execDirect result=resFolder / query='select parent_folder_id, folder_nm from S4O.folders_list_tmp where folder_id = ''' || parentID || '''';
parentID = resFolder[1,1]["parent_folder_id"];
folderName = resFolder[1,1]["folder_nm"];
fullPath = '/' || folderName || fullPath;
end;
return fullPath;
end;
fedsql.execDirect result=res / query='select * from S4O.reports_list_tmp ';
res = res."Result Set"n.compute({"path","Path",$255.}, getPath(parent_folder_id));
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 [CAS ]
Segmentation Violation
Traceback of the Exception:
/opt/sas/spre/home/SASFoundation/sasexe/libsas.so(tktracex+0x2e) [0x7feff77e46fe]
/opt/sas/spre/home/SASFoundation/sasexe/libsas.so(ht_handle_program_fault+0x306) [0x7feff76ad686]
/opt/sas/spre/home/SASFoundation/sasexe/tkmk.so(bkt_signal_handler+0x14b) [0x7ff008a302db]
/lib64/libpthread.so.0(+0xf630) [0x7ff00a1f3630]
/opt/sas/spre/home/SASFoundation/sasexe/tkeavl.so(_intel_fast_memcmp+0x1c) [0x7feff5bc468c]
/opt/sas/spre/home/SASFoundation/sasexe/tkeavl.so(+0x9cd4) [0x7feff5b9bcd4]
/opt/sas/spre/home/SASFoundation/sasexe/tkeavl.so(TKEAVLSTFind+0x41) [0x7feff5b96c31]
/opt/sas/spre/home/SASFoundation/sasexe/tkctb.so(+0x11c3b) [0x7fef99d50c3b]
/opt/sas/spre/home/SASFoundation/sasexe/tkcasl.so(casl_apply_compute_to_table+0x591) [0x7fef9a873d21]
/opt/sas/spre/home/SASFoundation/sasexe/tkcasl.so(casl_expr_Compute_binary+0x1e3) [0x7fef9a86cdc3]
/opt/sas/spre/home/SASFoundation/sasexe/tkcasl.so(casl_reduce_expr_stack+0x223) [0x7fef9a825173]
/opt/sas/spre/home/SASFoundation/sasexe/tkcasl.so(casl_evaluate_expression+0x58c) [0x7fef9a824bcc]
/opt/sas/spre/home/SASFoundation/sasexe/tkcasl.so(casl_Assign_Opcode_execute+0x2f) [0x7fef9a83c2ef]
/opt/sas/spre/home/SASFoundation/sasexe/tkcasl.so(casl_run_stream_given_pc+0x1ae) [0x7fef9a840a9e]
/opt/sas/spre/home/SASFoundation/sasexe/tkcasl.so(casl_run_opcode_stream+0x3e) [0x7fef9a84085e]
/opt/sas/spre/home/SASFoundation/sasexe/sascas(casl_run_code+0x119) [0x7fef946c4c89]
/opt/sas/spre/home/SASFoundation/sasexe/sascas(sascas+0xb8e) [0x7fef946c44de]
/opt/sas/spre/home/SASFoundation/sasexe/libsas.so(vvtentr+0x19d) [0x7feff76ad24d]
/lib64/libpthread.so.0(+0x7ea5) [0x7ff00a1ebea5]
/lib64/libc.so.6(clone+0x6d) [0x7ff0097d796d]
Click the Hot Fix tab in this note for a link to instructions about accessing and applying the software update.
Operating System and Release Information
SAS System | SAS Viya | Linux for x64 | 3.5 | 3.5 | Viya | Viya |
*
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: | medium |
Date Modified: | 2021-04-09 08:36:06 |
Date Created: | 2021-04-05 08:19:11 |