Subject:
Re: [ruby-ffi] Re: Possible issues with Ruby FFI on ARM processor (Raspberry PI)
From:
Kim Burgestrand
Date:
2/28/13 2:58 PM
To:
ruby-ffi@googlegroups.com

On Thursday, 28 February 2013 at 21:41, Wayne Meissner wrote:
On Thursday, 28 February 2013 16:57:04 UTC+10, Kim Burgestrand wrote:
Thanks Wayne; the problem existing because of stack/heap memory was not something that could have
occurred to me.

Technically, the problem still exists in both cases, it just shows up when using malloc, because of the way most memory allocators work.  It looks like libspotify is stomping over memory it shouldn't - with stack allocated, that doesn't get detected, but it is still happening.

What made me suspect libspotify was a quick google - there are a few bug reports for libspotify on android (i.e. arm) where it is crashing on otherwise valid code.
Ah, I understand. Too bad I don’t expect the library authors will fix and update their library any time soon. Hm. Oh well,
I’m happy that I’ve managed to reproduce it in C, and it not technically it being a fault of the ruby code. Now I could try
to find a workaround, but I can’t say I have my hopes up!

— Kim

--
 
---
You received this message because you are subscribed to the Google Groups "ruby-ffi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-ffi+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.