#3745: Non-deterministic behavior with FFI
---------------------------------+------------------------------------------
Reporter: gchrupala | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.12.2
Component: Compiler (FFI) | Version: 6.10.4
Keywords: | Difficulty:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: Incorrect result at runtime
---------------------------------+------------------------------------------
Comment(by gchrupala):
Hi, thanks for looking into this.
Replying to [comment:2 simonmar]:
> I can't reproduce it here on my laptop (x86/Linux). Some questions:
>
> * can you make it happen on more than one machine? what platform(s)?
I discovered the bug on x86_64/Linux. I have now tried it also on
x86/Linux and Intel/Mac, and it doesn't happen on those two.
> * do you get different results when the program is compiled with
`-debug`?
No, same nondeterministic behavior.
> * does valgrind say anything?
Valgrind reports no errors.
> * does it happen with 6.12.1?
Just tried it, and the same problem is there with 6.12.1
> Is it possible there's a memory error in the FFI code, or the C++ code?
perhaps an off-by-one array size?
I can't be 100% sure there is no subtle bug in the code but I checked
carefully for the obvious ones.
Best,
--
Grzegorz
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3745#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs