Ticket #3516 (closed bug: fixed)
[PATCH] ppc64: broken 'foreign import wrapper'
| Reported by: | slyfox | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 6.12.2 |
| Component: | Compiler (FFI) | Version: | 7.1 |
| Keywords: | ffi, wrapper, patch | Cc: | pho@… |
| Operating System: | Unknown/Multiple | Architecture: | powerpc64 |
| Type of failure: | Incorrect result at runtime | Difficulty: | Unknown |
| Test Case: | yet | Blocked By: | |
| Blocking: | Related Tickets: |
Description
Attaching simple testcase failing horribly on ppc64:
amd64 test output:
$ ./dist/build/fct/fct C call:[result = 105] C call with registered C callback function:C(72)C(33)[result = 735] C call with registered Hs-C callback function:H(72)H(33)[result = 735] TEST PASSED
ppc64 test output:
$ dist/build/fct/fct C call:[result = 105] C call with registered C callback function:C(72)C(33)[result = 735] C call with registered Hs-C callback function:[result = 105] Segmentation fault
As you see C call with registered Hs-C callback function called not a registered function, but something strange. There is no even registered callback (glo_cb == 0).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

