http://d.puremagic.com/issues/show_bug.cgi?id=8671
Summary: Segmentation fault with 1.0 - uniform(0.0, 1.0) Product: D Version: D2 Platform: x86_64 OS/Version: Mac OS X Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: peter.alexander...@gmail.com --- Comment #0 from Peter Alexander <peter.alexander...@gmail.com> 2012-09-16 13:15:16 PDT --- This program segfaults on OSX 10.6.8 with DMD 2.060. Happens with both -m32 and -m64. import std.random; void main() { double t = 1.0 - uniform(0.0, 1.0); } Here's the result of running gdb: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x0000000000000000 0x00007fff89c44fc1 in dyld_stub_binder () (gdb) bt #0 0x00007fff89c44fc1 in dyld_stub_binder () #1 0x00000001000292e8 in pvars () #2 0x00000001000224f5 in D3std6random6rndGenFNcNdZS3std6random98__T21MersenneTwisterEngineTkVi32Vi624Vi397Vi31Vk2567483615Vi11Vi7Vk2636928640Vi15Vk4022730752Vi18Z21MersenneTwisterEngine20__T12__lambda1190TiZ12__lambda1190FiZk () #3 0x000000010002249d in D3std6random6rndGenFNcNdZS3std6random98__T21MersenneTwisterEngineTkVi32Vi624Vi397Vi31Vk2567483615Vi11Vi7Vk2636928640Vi15Vk4022730752Vi18Z21MersenneTwisterEngine225__T9MapResultS1733std6random6rndGenFNcNdZS3std6random98__T21MersenneTwisterEngineTkVi32Vi624Vi397Vi31Vk2567483615Vi11Vi7Vk2636928640Vi15Vk4022730752Vi18Z21MersenneTwisterEngine12__lambda1190TS3std5range13__T6RepeatTiZ6RepeatZ9MapResult5frontMFNdZk () #4 0x0000000100026b66 in D3std6random98__T21MersenneTwisterEngineTkVi32Vi624Vi397Vi31Vk2567483615Vi11Vi7Vk2636928640Vi15Vk4022730752Vi18Z21MersenneTwisterEngine408__T4seedTS3std6random6rndGenFNcNdZS3std6random98__T21MersenneTwisterEngineTkVi32Vi624Vi397Vi31Vk2567483615Vi11Vi7Vk2636928640Vi15Vk4022730752Vi18Z21MersenneTwisterEngine225__T9MapResultS1733std6random6rndGenFNcNdZS3std6random98__T21MersenneTwisterEngineTkVi32Vi624Vi397Vi31Vk2567483615Vi11Vi7Vk2636928640Vi15Vk4022730752Vi18Z21MersenneTwisterEngine12__lambda1190TS3std5range13__T6RepeatTiZ6RepeatZ9MapResultZ4seedMFS3std6random6rndGenFNcNdZS3std6random98__T21MersenneTwisterEngineTkVi32Vi624Vi397Vi31Vk2567483615Vi11Vi7Vk2636928640Vi15Vk4022730752Vi18Z21MersenneTwisterEngine225__T9MapResultS1733std6random6rndGenFNcNdZS3std6random98__T21MersenneTwisterEngineTkVi32Vi624Vi397Vi31Vk2567483615Vi11Vi7Vk2636928640Vi15Vk4022730752Vi18Z21MersenneTwisterEngine12__lambda1190TS3std5range13__T6RepeatTiZ6RepeatZ9MapResultZv () #5 0x00000001000265e3 in D3std6random6rndGenFNcNdZS3std6random98__T21MersenneTwisterEngineTkVi32Vi624Vi397Vi31Vk2567483615Vi11Vi7Vk2636928640Vi15Vk4022730752Vi18Z21MersenneTwisterEngine () #6 0x0000000100000fa5 in D3std6random27__T7uniformVAyaa2_5b29TdTdZ7uniformFddZd () at /Library/Compilers/dmd2/osx/bin/../../src/phobos/std/random.d:1106 #7 0x0000000100000cfa in _Dmain () at p394.d:32 #8 0x000000010001b732 in D2rt6dmain24mainUiPPaZi7runMainMFZv () #9 0x000000010001b0e9 in D2rt6dmain24mainUiPPaZi7tryExecMFMDFZvZv () #10 0x000000010001b77c in D2rt6dmain24mainUiPPaZi6runAllMFZv () #11 0x000000010001b0e9 in D2rt6dmain24mainUiPPaZi7tryExecMFMDFZvZv () #12 0x000000010001b073 in main () #13 0x0000000100000cb4 in start () -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------