Thread overview
[Issue 8391] New: Segmentation fault (core dumped) with std.write
Jul 15, 2012
Caligo
Dec 31, 2012
SomeDude
Jan 01, 2013
Maxim Fomin
July 15, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8391

           Summary: Segmentation fault (core dumped) with std.write
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: iteronvexor@gmail.com


--- Comment #0 from Caligo <iteronvexor@gmail.com> 2012-07-15 12:30:25 PDT ---
---------------8<---------------8<---------------
double f2(double[double] data) {
  writeln(data);
  return 1.0;
}

void f1(double[double] data) {
  writef("%s %s", 1.5, f2(data));
}

void main() {

  f1([1:10]);
}
--------------->8--------------->8---------------

compiling and running this on 64-bit GNU/Linux with DMD 2.060beta gives:

Segmentation fault (core dumped)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 31, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8391


SomeDude <lovelydear@mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear@mailmetrash.com
           Platform|All                         |x86_64


--- Comment #1 from SomeDude <lovelydear@mailmetrash.com> 2012-12-31 13:21:39 PST ---
http://dpaste.dzfl.pl/ccb126fe

Interestingly, the code runs on LDC and GDC in 32/64 bits as well as on DMD 32 bits, but segfaults in 64 bits.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 01, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8391


Maxim Fomin <maxim@maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |maxim@maxim-fomin.ru
         Resolution|                            |FIXED


--- Comment #2 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-01-01 10:31:21 PST ---
Seems to be fixed in beta http://dpaste.dzfl.pl/abae4757

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