My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 263: alloc_$type crashing app when called from pthread'ed function
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by mbektimirov, Nov 12, 2013
What steps will reproduce the problem?

This happens only on complex types, alloc_bool(), alloc_int(0), alloc_int(1) works fine. 
So, the problem: if I call alloc_int(123) from function which was called from pthread the app will crash with segfault. The sample code:

static void test_fn (int some_value) {
  alloc_bool(true); // ok
  alloc_int(123); // crash
}

start_timer(test_fn); // creates new pthread 
I was testing it on Adnroid.

What is the expected output? What do you see instead?
The app is crashing.

What version of the product are you using? On what operating system?
hxcpp 3.0.2, wich was forked by openfl: https://github.com/openfl/hxlibc


Powered by Google Project Hosting