Thread overview
[Issue 1959] New: Internal error: eh.c 41
Mar 30, 2008
d-bugmail
Apr 06, 2008
d-bugmail
Apr 07, 2008
d-bugmail
Apr 07, 2008
d-bugmail
Nov 21, 2008
d-bugmail
Nov 25, 2008
d-bugmail
[Issue 1959] ICE(eh.c 41) alloca and Linux exception handling, no test case
Jul 10, 2009
Don
[Issue 1959] ICE(eh.c 41) alloca and Linux exception handling
Sep 13, 2009
Don
March 30, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1959

           Summary: Internal error: eh.c 41
           Product: D
           Version: 1.028
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: sergey@redin.info


// file bad.d:
import std.process;
void main(char[][] argv) {
        bool cond = false;
        while( cond ) try { } catch { }
        execvp( argv[0], argv );
}
// end of file

Compilation error:

sergey:/tmp/eh$ dmd |head -1
Digital Mars D Compiler v1.028
sergey:/tmp/eh$ dmd -release -inline -c bad.d
Internal error: eh.c 41
sergey:/tmp/eh$

Sorry if it is duplicate of #1337 but my issue seem to have nothing to do with threads or memory allocation. This code is useless but I hit the bug with much more code, this is just the minimal version that still triggers compilation error.


-- 

April 06, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1959





------- Comment #1 from sergey@redin.info  2008-04-06 05:09 -------
Hello, is there anybody here? :)


-- 

April 07, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1959





------- Comment #2 from shro8822@vandals.uidaho.edu  2008-04-07 13:56 -------
Yes. What do you want someone to say? You found a bug, reported it with an example. About the only constructive thing to be said is, "fixed" and that's not going to happen for a few days at the least (more likely it will be a few releases). No comments means nobody has anything constructive to say, not that you are being ignored.


-- 

April 07, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1959





------- Comment #3 from sergey@redin.info  2008-04-07 18:29 -------
OK, thanks.


-- 

November 21, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1959


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com
           Keywords|                            |ice-on-valid-code




------- Comment #4 from smjg@iname.com  2008-11-20 21:04 -------
WFM DMD 1.036 Windows.  Can you still reproduce under Linux?


-- 

November 25, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1959





------- Comment #5 from dsimcha@yahoo.com  2008-11-25 13:22 -------
Ran into this on Linux with DMD 2.20.  I'm working on isolating the piece of code that's the problem, but it's definitely still a problem.


-- 

July 10, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1959


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE(eh.c 41) No test case.  |ICE(eh.c 41) alloca and
                   |                            |Linux exception handling,
                   |                            |no test case




--- Comment #6 from Don <clugdbug@yahoo.com.au>  2009-07-10 00:07:55 PDT ---
Line eh.c (41) states:

#if TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS
:
    // BUG: alloca() changes the stack size, which is not reflected
    // in the fixed eh tables.
    assert(!usedalloca);

So this is a known bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 13, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1959


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #7 from Don <clugdbug@yahoo.com.au> 2009-09-13 03:37:17 PDT ---
I'm closing this because the original bug has been fixed, and all known test cases pass. Create a new bug if a new test case is discovered. It'll be a different bug, even if it ICEs at the same location.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------