SegFault when using writeln() and Fibers

Jonathan M Davis jmdavisProg at gmx.com
Wed Aug 10 02:57:45 PDT 2011


On Wednesday, August 10, 2011 09:47:42 Danny Arends wrote:
> --nextPart77238143.e8O9o76Zdv
> 
> When I try to print floats and double from a fiber it fails with a
> segfault, while it is possible to do it 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 v2.054 on Debian 64
> 
> Kind regards,
> Danny Arends
> 
> --nextPart77238143.e8O9o76Zdv
> 
> LyoqCiAqIEJ1ZyByZXBvcnQgZm9yIERNRDY0IEQgQ29tcGlsZXIgdjIuMDU0IAogKiAyMDExIERh
> bm55IEFyZW5kcwogKiovCmltcG9ydCBjb3JlLnRocmVhZDsKaW1wb3J0IHN0ZC5zdGRpbzsKCmN
> s
> YXNzIFRlc3RDbGFzcyA6IEZpYmVyewpwdWJsaWM6CiAgdGhpcygpeyBzdXBlcigmcnVuKTsgfQo
> g
> IAogIHZvaWQgcnVuKCl7CiAgICBpbnQgeD0gMTA7CiAgICBpbnQgeT0gNTsKICAgIGZsb2F0IG1
> 5
> ZG91YmxlID0geCt5OwogICAgd3JpdGVsbihteWRvdWJsZSk7IC8vVGhpcyBzZWdmYXVsdHMKICA
> g
> IHlpZWxkKCk7CiAgfQp9Cgp2b2lkIG1haW4oc3RyaW5nW10gYXJncyl7CiAgaW50IHg9IDEwOwo
> g
> IGludCB5PSA1OwogIGZsb2F0IG15ZG91YmxlID0geCt5OwogIHdyaXRlbG4obXlkb3VibGUpOyA
> v
> L1RoaXMgd29ya3MKCiAgVGVzdENsYXNzIHRlc3RGaWJlciA9IG5ldyBUZXN0Q2xhc3MoKTsKICB
> 0 ZXN0RmliZXIuY2FsbCgpOwogIHdyaXRlbG4oIkRvbmUiKTsKfQoA
> 
> --nextPart77238143.e8O9o76Zdv--

Please don't post directly to this list. You sign up for this list so that you 
can see all of the messages from bugzilla. It's not intended to be posted to 
directly. Please post in D.Learn instead if you have a question, and if you 
have a bug to report, report it at d.puremagic.com/issues.

- Jonathan M Davis


More information about the Digitalmars-d-bugs mailing list