NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/38482: C compiler can generate non-restartable code within a RAS



The following reply was made to PR lib/38482; it has been noted by GNATS.

From: Alan Barrett <apb%cequrux.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: netbsd-bugs%NetBSD.org@localhost
Subject: Re: lib/38482: C compiler can generate non-restartable code within
        a RAS
Date: Tue, 22 Apr 2008 11:08:29 +0200

 On Mon, 21 Apr 2008, scw%NetBSD.org@localhost wrote:
 > I've recently noticed occasional SEGVs with threaded programs on ARM.
 > This turns out to be caused by dereferencing a bad pointer value in the
 > code between the RAS_START and RAS_END in
 > common/lib/libc/atomic/atomic_init_testset.c:_atomic_cas_up().
 
 Does it help to declare "volatile uint32_t ret;" ?
 
 --apb (Alan Barrett)
 


Home | Main Index | Thread Index | Old Index