id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
3516	[PATCH] ppc64: broken 'foreign import wrapper'	slyfox		"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)."	bug	closed	high	6.12.2	Compiler (FFI)	7.1	fixed	ffi, wrapper, patch	pho@…	Unknown/Multiple	powerpc64	Incorrect result at runtime	Unknown	yet			
