Thread overview
[Bug 55] Internal compiler error: Segmentation fault in regex.d
May 24, 2013
Johannes Pfau
May 24, 2013
Iain Buclaw
May 24, 2013
Iain Buclaw
May 24, 2013
Iain Buclaw
May 24, 2013
Iain Buclaw
Jul 04, 2013
Iain Buclaw
Jul 04, 2013
Peter De Wachter
Jul 04, 2013
Iain Buclaw
May 24, 2013
http://bugzilla.gdcproject.org/show_bug.cgi?id=55

Johannes Pfau <johannespfau@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |johannespfau@gmail.com
         Resolution|                            |WONTFIX

--- Comment #1 from Johannes Pfau <johannespfau@gmail.com> 2013-05-24 07:01:58 UTC ---
I think this is another dmd frontend "order of compilation bug". Dustmite is a well known example for that issue. Compile with gdc -o dust dustmite.d dsplit.d and it should work.

This also fails for dmd 2.062 so you might want to file a new bug report on http://d.puremagic.com/issues/

There's this related issue but it's supposed to be fixed: http://d.puremagic.com/issues/show_bug.cgi?id=6395

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
May 24, 2013
http://bugzilla.gdcproject.org/show_bug.cgi?id=55

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> 2013-05-24 07:32:16 UTC ---
(In reply to comment #0)
> Created attachment 38 [details]
> reduced source code
> 
> Compiler version: git head (272a77a8a78350518aabc5805cee623f773a3dba)
> built with Debian's gcc 4.8.0-7
> 
> gdc -o dust dsplit.d dustmite.d
> /opt/gdc/include/d/4.8/std/regex.d: In function 'initialMemory':
> /opt/gdc/include/d/4.8/std/regex.d:3236: internal compiler error: Segmentation
> fault
> 0x8f13bf crash_signal
>     ../../gcc-4.8-4.8.0/src/gcc/toplev.c:332
> 0x6651dd ReturnStatement::toIR(IRState*)
>     ../../gcc-4.8-4.8.0/src/gcc/d/d-ir.cc:224
> 0x665ad8 CompoundStatement::toIR(IRState*)
>     ../../gcc-4.8-4.8.0/src/gcc/d/d-ir.cc:483
> 0x63d57a FuncDeclaration::toObjFile(int)
>     ../../gcc-4.8-4.8.0/src/gcc/d/d-objfile.cc:1027
> 0x639c6e AttribDeclaration::toObjFile(int)
>     ../../gcc-4.8-4.8.0/src/gcc/d/d-objfile.cc:90
> 0x63be06 StructDeclaration::toObjFile(int)
>     ../../gcc-4.8-4.8.0/src/gcc/d/d-objfile.cc:141
> 0x639e36 TemplateInstance::toObjFile(int)
>     ../../gcc-4.8-4.8.0/src/gcc/d/d-objfile.cc:740
> 0x63e106 Module::genobjfile(int)
>     ../../gcc-4.8-4.8.0/src/gcc/d/d-objfile.cc:1198
> 0x62fa22 d_parse_file()
>     ../../gcc-4.8-4.8.0/src/gcc/d/d-lang.cc:1085
> Please submit a full bug report,
> with preprocessed source if appropriate.
> Please include the complete backtrace with any bug report.
> See <http://gcc.gnu.org/bugs.html> for instructions.
> make: *** [all] Error 1
> 
> 
> ==> dsplit.d <==
> import std.string;
> 
> ==> dustmite.d <==
> import std.algorithm;
> import std.string;
> import std.regex;
> 
> void applyNoRemoveRegex(string[] noRemove)
> {
>     string name;
>     canFind!((a){return !match(name, a);})(noRemove);
> }
> 
> 
> 
> Source code is reduced from DustMite, by DustMite-with-that-function-removed.

This is also documented on the dustmite site as known not to work. :-)

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
May 24, 2013
http://bugzilla.gdcproject.org/show_bug.cgi?id=55

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> 2013-05-24 07:33:17 UTC ---
https://github.com/CyberShadow/DustMite/wiki/Building-DustMite

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
May 24, 2013
http://bugzilla.gdcproject.org/show_bug.cgi?id=55

--- Comment #4 from Iain Buclaw <ibuclaw@gdcproject.org> 2013-05-24 07:35:27 UTC ---
Though it looks to have been fixed for 2.063

http://d.puremagic.com/issues/show_bug.cgi?id=6395

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
May 24, 2013
http://bugzilla.gdcproject.org/show_bug.cgi?id=55

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--- Comment #5 from Iain Buclaw <ibuclaw@gdcproject.org> 2013-05-24 07:36:38 UTC ---
I'll re-open just to remind me to test this when doing the merge (when the release happens sometime next week).

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
July 04, 2013
http://bugzilla.gdcproject.org/show_bug.cgi?id=55

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--- Comment #6 from Iain Buclaw <ibuclaw@gdcproject.org> 2013-07-04 13:15:22 UTC ---
2.063 has been merged, so I guess this should be working now? :)

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
July 04, 2013
http://bugzilla.gdcproject.org/show_bug.cgi?id=55

--- Comment #7 from Peter De Wachter <pdewacht@gmail.com> 2013-07-04 13:23:26 UTC ---
This bug is still occurs in Debian's gdc-4.8 4.8.1-5. I guess that version doesn't include 2.0.63 yet?

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
July 04, 2013
http://bugzilla.gdcproject.org/show_bug.cgi?id=55

--- Comment #8 from Iain Buclaw <ibuclaw@gdcproject.org> 2013-07-04 17:55:57 UTC ---
Not yet, no.

Yet to get gdc passing the test suite (again).

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.