[erlang-questions] R12B-0 patch for SMP emu on *other* hw than x86, x86_64, sparc32, and powerpc32

Rickard Green <>
Thu Jan 3 14:45:20 CET 2008


OTP-7080  The runtime system with SMP support not using
           the native atomic integer implementation part
           of OTP could deadlock when run on a system with
           more than one logical processor. That is, only
           the runtime system with SMP support on other
           hardware platforms than x86, x86_64, sparc32,
           and powerpc32 are effected by this bug.

How to apply the attached patch (gnu tar and gnu patch is needed):
$ ls
otp_src_R12B-0-osp1.patch       otp_src_R12B-0_OTP-7080.patch
otp_src_R12B-0.tar.gz
$ gtar -zxf otp_src_R12B-0.tar.gz
$ gpatch -ZNp0 < otp_src_R12B-0_OTP-7080.patch
patching file otp_src_R12B-0/erts/emulator/beam/erl_process_lock.c
$ # If you want, also apply the
$ # http://www.erlang.org/download/otp_src_R12B-0-osp1.patch
$ # patch.
$ gpatch -ZNp0 < otp_src_R12B-0-osp1.patch
patching file otp_src_R12B-0/configure
patching file otp_src_R12B-0/configure.in
patching file otp_src_R12B-0/erts/aclocal.m4
patching file otp_src_R12B-0/erts/config.h.in
patching file otp_src_R12B-0/erts/configure
patching file otp_src_R12B-0/erts/configure.in
patching file otp_src_R12B-0/erts/include/internal/ethread.h
patching file 
otp_src_R12B-0/erts/include/internal/ethread_header_config.h.in
patching file otp_src_R12B-0/erts/lib_src/common/ethread.c
patching file otp_src_R12B-0/lib/compiler/src/v3_codegen.erl
patching file otp_src_R12B-0/lib/kernel/src/file.erl
$ # configure, make, and make install as usual...

BR,
Rickard Green, Erlang/OTP, Ericsson AB.

PS. Valentin Micic, Ognian Pantov et al: you need both patches.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: otp_src_R12B-0_OTP-7080.patch
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080103/8e281484/attachment.ksh>


More information about the erlang-questions mailing list