Menu

#10 Segfault when SMP is enabled in Erlang

closed
nobody
None
5
2008-01-04
2008-01-03
No

Hi!

Appears that applications which use esdl segfault when Erlang VM is run with SMP enabled. To reporduce the crash just run

erl -smp enable +S 2 -s erldemo go

(I've got crashes using Debian Linux on x86 and x86_64 architectures).

Since Erlang/OTP R12B-0 enables SMP by default on multicore CPU machines the issue becomes more serious than in times of R11B-*.

Discussion

  • Dan Gudmundsson

    Dan Gudmundsson - 2008-01-04

    Logged In: YES
    user_id=20273
    Originator: NO

    Esdl can't be run in smp mode, ok only with one thread, opengl requires
    that all calls are from the thread that created the opengl-context, which
    can not be guaranteed in erlang.
    Take a look at wxerlang.sf.net project where I use a separate thread
    for all opengl calls it's slower but might be good enough.
    /Dan

     
  • Dan Gudmundsson

    Dan Gudmundsson - 2008-01-04
    • status: open --> closed
     

Log in to post a comment.