Threads support faulty in R8B-0 and R8B-1?
Fri May 17 21:55:50 CEST 2002
I'm having this exact same issue on Debian with 2.4.18. I built
beam with hipe, but have not tried it without hipe. I stuck it on the
back burner, as I could always run the driver I'm developing in a
pthread or an external process.
I hadn't seen anything in the mailing list archives about this occuring
before, but I didn't spend that long search either.
Leonid Timochouk <> scrawled:
> Hello Erlang users,
> I am using Erlang/OTP R8B-0 (and now R8B-1) on Debian Linux with glibc
> 2.2.5, kernel 2.4.18. In both cases, "beam" blocks immediately on start-up
> if invoked with a non-0 number of threads via the "+A" option, does not
> even display the initial "Erlang (BEAM) emulator version ..." message. It
> does create 3 threads, though, and the first of them can be observed with
> a debugger. It has the following call stack (blocked at "sigsuspend"):
> #0 0x400daa0e in sigsuspend () from /lib/libc.so.6
> #1 0x400a0629 in __pthread_wait_for_restart_signal ()
> from /lib/libpthread.so.0
> #2 0x4009fe2c in pthread_create@@GLIBC_2.1 () from /lib/libpthread.so.0
> #3 0x0809b33a in erts_thread_create (tpp=0x83b3498,
> func=0x809abac <async_main>, arg=0x83b3490, detached=0)
> at sys/unix/sys_threads.c:226
> #4 0x0809b029 in init_async (hndl=4) at beam/erl_async.c:90
> #5 0x080b5f74 in async_drv_start (port_num=1, name=0x80e38bc "async",
> opts=0xbffff750) at sys/unix/sys.c:1798
> #6 0x08070098 in open_driver (driver=0x8102540, pid=7,
> name=0x80e38bc "async", opts=0xbffff750) at beam/io.c:285
> #7 0x080b6515 in sys_init_io (buf=0x8134700 "", size=65536)
> at sys/unix/sys.c:2175
> #8 0x08070e0e in init_io () at beam/io.c:725
> #9 0x0805b8c9 in erl_init () at beam/erl_init.c:200
> #10 0x0805c171 in erl_start (argc=10, argv=0xbffffb04) at
> #11 0x0805b82b in main (argc=10, argv=0xbffffb04) at
> #12 0x400ca65f in __libc_start_main () from /lib/libc.so.6
> Anyone has an idea what's going on?
> Best regards,
> Leonid Timochouk
> Computing Laboratory
> University of Kent at Canterbury
Why do I like Perl? Because ``in accordance with Unix tradition Perl
gives you enough rope to hang yourself with.''
Why do I dislike Java? Because ``the class ROPE that should contain the
method HANG to do the hanging doesn't exist because there is too much
'security' built into the base language.''
More information about the erlang-questions