Thread overview
[Issue 5689] New: [64-Bit] uniform() fails with -profile
Mar 03, 2011
Trass3r
Aug 08, 2011
Trass3r
Mar 15, 2012
dawg@dawgfoto.de
Mar 15, 2012
Trass3r
Mar 16, 2012
dawg@dawgfoto.de
Mar 23, 2012
dawg@dawgfoto.de
March 03, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5689

           Summary: [64-Bit] uniform() fails with -profile
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: mrmocool@gmx.de


--- Comment #0 from Trass3r <mrmocool@gmx.de> 2011-03-03 01:04:42 PST ---
import std.random;

void main()
{
    auto f = uniform(0.0, 1.0);
}

$ dmd -m64 -profile profile.d
$ ./profile
object.Exception@dmd/linux/bin/../../src/phobos/std/random.d(932): Invalid
distribution range: [0, 0)
----------------

Compiling it without -profile or m64 works.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 08, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5689



--- Comment #1 from Trass3r <mrmocool@gmx.de> 2011-08-07 17:37:49 PDT ---
Another case:

import std.random;
void main()
{
    double r1=2*uniform(0.0, 1.0);
    double r2=2*uniform(0.0, 1.0);
}

It only fails if both declarations are present.

invalid bounding interval [7.69602e+169, -nan)

btw, if -inline is added, it yields:
invalid bounding interval [7.29112e-304, 1.12477e+218)

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


dawg@dawgfoto.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dawg@dawgfoto.de


--- Comment #2 from dawg@dawgfoto.de 2012-03-15 13:52:38 PDT ---
I can't reproduce this.
What are your compiler version and parameters.

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



--- Comment #3 from Trass3r <mrmocool@gmx.de> 2012-03-15 22:03:28 CET ---
With git dmd on Ubuntu 11.04 it's now:
$ dmd -m64 -profile test.d
$ ./test
object.Exception@std/random.d(940): std.random.uniform(): invalid bounding
interval [1.42645e+242, 1.62687e+219)

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


dawg@dawgfoto.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #6 from dawg@dawgfoto.de 2012-03-16 13:24:14 PDT ---
https://github.com/D-Programming-Language/druntime/pull/180

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



--- Comment #7 from github-bugzilla@puremagic.com 2012-03-21 00:04:58 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/c7dc74a32ea823a86304bb874e7308309dce6f37 Merge pull request #180 from dawgfoto/fix5689

fix issue 5689

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


dawg@dawgfoto.de changed:

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


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



--- Comment #8 from github-bugzilla@puremagic.com 2012-04-20 20:40:17 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a2e777e0c8d8a474ea04fb5d3ef1748638f4e1aa test case for druntime Bug 5689

https://github.com/D-Programming-Language/dmd/commit/6905b385eb70540193f7d890ef48f216c7bc1086 Merge pull request #820 from dawgfoto/fix5689

test case for druntime Bug 5689

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