Problem Note 35893: Segmentation violation when writing to a SAS® catalog
A segmentation violation error can occur when writing to a SAS catalog.
The error can occur when writing a single large entry to the catalog, or when writing a large number of smaller entries to a single catalog. Click the Full Code tab for sample code that reproduces this behavior.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.2 TS1M0 | 9.2 TS2M2 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M2 |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M2 |
Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | 9.2 TS2M2 |
Microsoft Windows XP Professional | 9.2 TS1M0 | 9.2 TS2M2 |
Windows Vista | 9.2 TS1M0 | 9.2 TS2M2 |
64-bit Enabled AIX | 9.2 TS1M0 | 9.2 TS2M2 |
64-bit Enabled HP-UX | 9.2 TS1M0 | 9.2 TS2M2 |
64-bit Enabled Solaris | 9.2 TS1M0 | 9.2 TS2M2 |
HP-UX IPF | 9.2 TS1M0 | 9.2 TS2M2 |
Linux | 9.2 TS1M0 | 9.2 TS2M2 |
Linux for x64 | 9.2 TS1M0 | 9.2 TS2M2 |
OpenVMS on HP Integrity | 9.2 TS1M0 | 9.2 TS2M2 |
Solaris for x64 | 9.2 TS1M0 | 9.2 TS2M2 |
*
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.
This code will reproduce the segmentation violation
options fullstimer ;
data sasuser.one (drop=st);
do j=1 to 2;
st=put(j,z32.) ;
start=st||st||st ;
end=start;
label=put(j,z10.) ;
fmtname="myfmt" ;
type='c' ;
if j=1 then hlo = "O";
else hlo='';
output ;
end ;
run ;
proc format cntlin=sasuser.one lib=sasuser.formats;
run ;
%let nranges=33333000;
filename incat catalog 'sasuser.formats.myfmt.formatc';
filename outcat catalog 'sasuser.formats2.myfmtbig.catams';
data _null_;
infile incat;
file outcat;
input;
put _infile_; /* header */
input; /* first range record */
do i=1 to &nranges;
put _infile_; /* emit range records */
end;
input; /* other= label */
put _infile_; /* other= label */
input; /* first label record */
do i=1 to &nranges;
put _infile_;
end;
run;
A fix for this issue for Base SAS 9.21 is available at. However, if you install SAS Maintenance after applying this hot fix, files delivered in the hot fix will not receive the proper Maintenance update. Please contact SAS Technical Support at the link shown below for information on accessing the hot fix.
http://support.sas.com/techsup/contact/index.html
Type: | Problem Note |
Priority: | high |
Date Modified: | 2009-10-11 17:50:17 |
Date Created: | 2009-05-12 13:34:36 |