www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8391] New: Segmentation fault (core dumped) with std.write

reply d-bugmail puremagic.com writes:
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



---------------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: -------
Jul 15 2012
next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Dec 31 2012
prev sibling parent d-bugmail puremagic.com writes:
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



---
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: -------
Jan 01 2013