PR# 13722 Compiler dies with seg fault when trying to report stack initialization failure

Problem Report Summary
Submitter: prestoat2000
Category: Runtime
Priority: Medium
Date: 2007/12/06
Class: Bug
Severity: Non-critical
Number: 13722
Release: 6.1.71281
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.0.7) Gecko/20060915 Firefox/1.5.0.7 Solaris 9 on SPARC
Synopsis: Compiler dies with seg fault when trying to report stack initialization failure

Description
Do "limit datasize 1024" (csh) to limit data segment to 1024 KB.
Run compiler.  Compiler dies with a panic due to failure to create
the runtime stacks (which is fine) but then gets a seg fault when
trying to display the stack trace.  Output is:

   ec: PANIC: can't create runtime stacks ...

   ec: system execution failed.
   Following is the set of recorded exceptions.
   NB: The raised panic may have induced completely inconsistent information:

   Segmentation fault

Looks like the problem is that `esfail' (in except.c) needs to skip calling
`backtrack' (which calls `extop', which doesn't work when eif_stack is
not initialized) if eif_stack.st_cur or eif_stack.st_top is NULL.
Don't know if call to `dump_trace_stack' will also fail in this situation.
To Reproduce

										
Problem Report Interactions