HaxeFoundation / HaxeFoundation/tora

Segfault while trying to access null-objects.

Open
#2 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
30
Forks
15
PR merge metrics
No merged PRs in 30d

Description

I'm experiencing the same issue with haxelib mod_tora and git neko: http://haxe.org/forum/thread/3395#nabble-td6791774
Haxe code to reproduce:

```
var q : Dynamic = null;
q.some;
```

For the first attempt to access null object i get segfault message sent to my browser from my module:

```
Error : Segmentation fault
Called from a C function
Called from fst/Fst.hx line 17
Called from ? line 1
Called from D:\Projects\haxe/std/neko/vm/Module.hx line 52
Called from Tora.hx line 333
Called from D:\Projects\haxe/std/neko/vm/Loader.hx line 154
Called from D:\Projects\haxe/std/neko/vm/Loader.hx line 132
Called from Tora.hx line 479
```

Then i hit 'refresh' in browser and for the second attempt:

```
Error : Segmentation fault
Called from Tora.hx line 483
```

And the last try:
in browser: `Error : Connection Closed`
in terminal:

```
$ haxelib run tora
[2013-10-31 11:58:36] Starting Tora server on 127.0.0.1:6666 with 32 threads
Segmentation fault (core dumped)
```

At this point my web service is completely broken because of tora shutdown :)

My system: Ubuntu 12.04 32bit

Is it possible to fix this issue without disabling JIT?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.