Issue 263: alloc_$type crashing app when called from pthread'ed function
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