Date: Wed, 26 Jan 2011 15:47:47 GMT From: Michael Moll <kvedulv@kvedulv.de> To: freebsd-gnats-submit@FreeBSD.org Subject: arm/154306: named crashes with signal 11 Message-ID: <201101261547.p0QFllRj004170@red.freebsd.org> Resent-Message-ID: <201101261550.p0QFo7qe034449@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 154306 >Category: arm >Synopsis: named crashes with signal 11 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-arm >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 26 15:50:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Michael Moll >Release: CURRENT >Organization: >Environment: FreeBSD deskstar.kvedulv.de 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r217665: Sat Jan 22 20:15:50 CET 2011 mmoll@emperor.kvedulv.de:/usr/obj/arm.arm/usr/current/src/sys/DESKSTAR arm >Description: When starting named on a Seagate Dockstar it crashes with signal 11 >How-To-Repeat: >Fix: A patch taken form http://cooltrainer.org/projects/freebsd-kirkwood/building/#patching is attached. It fixes the problem for me. Patch attached with submission follows: Index: contrib/bind9/lib/isc/arm/include/isc/atomic.h =================================================================== --- contrib/bind9/lib/isc/arm/include/isc/atomic.h (revision 217884) +++ contrib/bind9/lib/isc/arm/include/isc/atomic.h (working copy) @@ -49,26 +49,22 @@ static inline isc_int32_t isc_atomic_cmpxchg(isc_int32_t *p, isc_int32_t cmpval, isc_int32_t val) { - register int done, ras_start; + register int done, ras_start = 0xffff1004; __asm __volatile("1:\n" "adr %1, 1b\n" - "mov %0, #0xe0000004\n" "str %1, [%0]\n" - "mov %0, #0xe0000008\n" "adr %1, 2f\n" - "str %1, [%0]\n" + "str %1, [%0, #4]\n" "ldr %1, [%2]\n" "cmp %1, %3\n" "streq %4, [%2]\n" "2:\n" "mov %3, #0\n" - "mov %0, #0xe0000004\n" "str %3, [%0]\n" "mov %3, #0xffffffff\n" - "mov %0, #0xe0000008\n" - "str %3, [%0]\n" - : "=r" (ras_start), "=r" (done) + "str %3, [%0, #4]\n" + : "+r" (ras_start), "=r" (done) ,"+r" (p), "+r" (cmpval), "+r" (val) : : "memory"); return (done); >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101261547.p0QFllRj004170>