www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6576] New: std.string.format for struct crash on Linux 64bit

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6576

           Summary: std.string.format for struct crash on Linux 64bit
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: rk3dov gmail.com


--- Comment #0 from rk3dov gmail.com 2011-08-30 03:04:54 PDT ---
Attached example works on Mac OS 32bit and crashes on Linux 64bit:
---------------------------
% ./teststruct
a: I'm Foo
core.exception.AssertError teststruct.d(9): null this
---------------------------

When changing
    int x;
    int[] a;
    int[] b;
to, e.g.
    int x;
    int[] a;
or
    int[] a;
    int[] b;
problem disappears.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 30 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6576



--- Comment #1 from rk3dov gmail.com 2011-08-30 03:19:11 PDT ---
Created an attachment (id=1020)
Test code

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 30 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6576


Nick Sabalausky <cbkbbejeap mailinator.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cbkbbejeap mailinator.com


--- Comment #2 from Nick Sabalausky <cbkbbejeap mailinator.com> 2011-11-21
07:58:48 PST ---
This may be related to issue 6047

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 21 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6576



--- Comment #3 from Nick Sabalausky <cbkbbejeap mailinator.com> 2011-11-21
08:47:00 PST ---
I think the root cause of this might be issue 6983.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 21 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6576


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au
          Component|DMD                         |Phobos


--- Comment #4 from Don <clugdbug yahoo.com.au> 2012-05-23 00:14:38 PDT ---
I thought this was a duplicate of bug 6758, but it isn't. Although 6758 is
fixed, and even the wrong-code bug 6189, this still remains.

std.format.doFormat around line 4845 has enough version(X86_64) stuff that it
looks like a Phobos bug. I find it a bit scary that it bypasses core.stdarg,
and there are not enough comments in that code for me to trust it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 23 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6576


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim maxim-fomin.ru


--- Comment #5 from Maxim Fomin <maxim maxim-fomin.ru> 2013-02-10 22:16:54 PST
---
I cannot reproduce on linux 64 with git head (2.062 beta)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 10 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6576


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

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


--- Comment #6 from Maxim Fomin <maxim maxim-fomin.ru> 2013-02-12 11:51:03 PST
---
Ok, mark it as WORKSFORME

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