*Synopsis*: ksh93 gets SIGSEGV on interactive function definition with HISTSIZE unset
*Change Request ID*: 6834207 *Synopsis*: ksh93 gets SIGSEGV on interactive function definition with HISTSIZE unset Product: solaris Category: shell Subcategory: korn93 Type: Defect Subtype: Status: 1-Dispatched Substatus: Priority: 5-Very Low Introduced In Release: Introduced In Build: Responsible Engineer: Keywords: opensolaris === *Description* ============================================================ Category solaris/shell (Solaris Utilities/Commands) Sub-Category korn93 Description With HISTSIZE explicitly unset, ksh93 gets a SIGSEGV when defining an old-style function: > ksh93 $ unset HISTSIZE $ foo() { cat } zsh: segmentation fault (core dumped) ksh93 core 'core' of 9988: ksh93 fffffd7ffeafa7ca funct () + 1ea fffffd7ffeafc8cb simple () + d3b fffffd7ffeafba5c item () + 76c fffffd7ffeaf9ee4 term () + 54 fffffd7ffeaf9e15 list () + 15 fffffd7ffeaf9cf9 sh_cmd () + 39 fffffd7ffeaf998b sh_parse () + 2b3 fffffd7ffeae6dc2 exfile () + 6c2 fffffd7ffeae6676 sh_main () + 7fe 0000000000400e72 main () + 52 0000000000400ccc ???????? () I can reproduce this on both Indiana snv_111 bits, and Nevada snv_108 bits. Frequency Always Regression No Steps to Reproduce unset HISTSIZE define an old style function. Expected Result No crash. Actual Result SIGSEGV in libshell`funct Error Message(s) Test Case Workaround Additional configuration information *** (#1 of 1): 2009-04-25 05:33:53 GMT+00:00 <User 1-F4SZV> === *Public Comments* ======================================================== === *Workaround* ============================================================= === *Additional Details* ===================================================== Targeted Release: Commit To Fix In Build: Fixed In Build: Integrated In Build: Verified In Build: See Also: 6834184 Duplicate of: Hooks: Hook1: Hook2: Hook3: Hook4: Hook5: Hook6: <email address omitted> Program Management: Root Cause: Fix Affects Documentation: No Fix Affects Localization: No === *History* ================================================================ Date Submitted: 2009-04-25 05:33:50 GMT+00:00 Submitted By: <User 1-F4SZV> Status Changed Date Updated Updated By === *Service Request* ======================================================== Impact: Significant Functionality: Nonessential Severity: 4 Product Name: solaris Product Release: solaris_nevada Product Build: snv_111 Operating System: solaris_nevada Hardware: generic Submitted Date: 2009-04-25 05:33:53 GMT+00:00 === *Multiple Release (MR) Cluster* - 0 ======================================