Hi Peter, Latest windows VMs produce crash dumps ;) Cheers, Alex On 13 January 2017 at 10:57, Peter Uhnak <i.uhnak@gmail.com> wrote:
On Fri, Jan 13, 2017 at 10:27:27AM -0800, Aliaksei Syrel wrote:
Hi
The following code crashes windows spur32 VM without crash.dmp: (crashes not only in case of int8, but ulong, int16/32 and so on...)
I don't think that Windows produces crash dumps (or they are empty files), but maybe you can find some info in Event Viewer (start>run "eventvwr.msc") in Event Viewer > Windows Logs > Application.
Callback instantiation:
createCallback
^ FFICallback signature: #(int8 (int8)) block: [ :value | value ]
C function:
int8_t test(int8_t(*function)(int8_t), int8_t value) {
return function(value); }
FFI call:
primCall: aCallback int8: aNumber
^ self ffiCall: #(int8 test(FFICallback aCallback, int8 aNumber))
Test case:
test
self assert: (self primCall: self createCallback int8: 0) equals: 0
Windows 10. VM from today: http://files.pharo.org/vm/pharo-spur32/win/pharo-win-
i386-201701130756-83c0ef1.zip
Image 60343: http://files.pharo.org/image/60/60343.zip
P.S. what is the best place to report FFI / Alien issues? P.P.S Iceberg works
Cheers, Alex