[waffle] [PATCH] Android: Fix surface setup segfault

Chad Versace chad.versace at linux.intel.com
Wed Feb 20 09:19:29 PST 2013


On 02/18/2013 04:20 AM, Juha-Pekka Heikkila wrote:
> Seems like compiling with latest Android tree malloc/free did not work
> with structures in droid_surfaceflingerlink.cpp, some members
> in structures become strange causing segfault. Using new/delete fix
> this.
> 
> Signed-off-by: Juha-Pekka Heikkila <juha-pekka.heikkila at linux.intel.com>
> ---
>  src/waffle/android/droid_surfaceflingerlink.cpp |   18 ++++++++----------
>  1 files changed, 8 insertions(+), 10 deletions(-)

Thanks, patch is committed to master.

I'll hazard a guess as to why things worked before but now. malloc/free don't
work with classes that have virtual functions. Perhaps, between Android
versions, the classes transitioned from C-style structs to classes with virtual
functions


More information about the waffle mailing list