Summary: Stack trace or some info with stack overflow
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-06-02 07:20:16 PDT ---
This crashes at runtime because of a stack overflow (DMD 2.053). No stack
trace, stack frame, error message or line number are shown:

int foo(int n) {
    return n ? foo(n - 1) : 1;
void main() {

If you aren't running a debugger then receiving a nude crash is not so nice,
because in a larger program there are many functions that may be the cause of a
stack overflow.

So is it possible to produce a stack trace in this case too? If this is not
possible, then an error message with the name of the last function called (and
line number) or anything is useful. If necessary DMD may add some stack
protection code in non-release mode only.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to