[Issue 6463] New: Segfault on writeln() from a Fiber

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 10 03:10:23 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6463

           Summary: Segfault on writeln() from a Fiber
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: Danny.Arends at gmail.com


--- Comment #0 from Danny Arends <Danny.Arends at gmail.com> 2011-08-10 03:10:21 PDT ---
Trying to print floats and doubles from a fiber it fails with a 
segfault, while it is possible to do the same in the main thread. 

The expected output of the attached code file: 
15 
15 
Done 

However I get: 
15 
segfault 

I am using the DMD64 D Compiler v 2.054 on Debian 64 

What am I doing wrong, because using to!string() on the floats and 
double allows me to print them to std.out. 

I however get weird behavior when I try to do math on the floats and 
doubles in the fiber, or when I pass them to C-functions. 

Kind regards, 
Danny

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


More information about the Digitalmars-d-bugs mailing list