Re: [Valgrind-users] Valgrind segfault when using VALGRIND_NON_SIMD_CALL0()

2009-07-27 Thread Nicholas Nethercote
On Mon, Jul 27, 2009 at 11:44 PM, Madhan Sadasivam wrote: > When is this release expected. > This solves a long standing problem for me. Mid-August, hopefully. Nick -- Let Crystal Reports handle the reporting - Free Crys

Re: [Valgrind-users] Valgrind segfault when using VALGRIND_NON_SIMD_CALL0()

2009-07-27 Thread Madhan Sadasivam
When is this release expected. This solves a long standing problem for me. Thanks, Madhan. On Mon, Jul 27, 2009 at 3:14 PM, Julian Seward wrote: > On Monday 27 July 2009, Patrick Smears wrote: > > On Fri, 24 Jul 2009, Patrick Smears wrote: > > > On Fri, 24 Jul 2009, Julian Seward wrote: > > >>>

Re: [Valgrind-users] Valgrind segfault when using VALGRIND_NON_SIMD_CALL0()

2009-07-27 Thread Julian Seward
On Monday 27 July 2009, Patrick Smears wrote: > On Fri, 24 Jul 2009, Patrick Smears wrote: > > On Fri, 24 Jul 2009, Julian Seward wrote: > >>> anyone change it between comparing it to A and setting it to B). > >>> Because of the way Valgrind works (simulating instructions), the atomic > >>> instruc

Re: [Valgrind-users] Valgrind segfault when using VALGRIND_NON_SIMD_CALL0()

2009-07-27 Thread Patrick Smears
On Fri, 24 Jul 2009, Patrick Smears wrote: > On Fri, 24 Jul 2009, Julian Seward wrote: > >> >>> anyone change it between comparing it to A and setting it to B). Because >>> of the way Valgrind works (simulating instructions), the atomic >>> instructions get broken up into separate loads/stores,

Re: [Valgrind-users] Valgrind segfault when using VALGRIND_NON_SIMD_CALL0()

2009-07-24 Thread Julian Seward
On Friday 24 July 2009, Jeroen N. Witmond [Bahco] wrote: > Julian Seward wrote: > > Not really. On x86 and amd64, all atomic instructions are translated > > using a loop, which fetches the old value, computes the new value, and > > uses a compare-and-swap to either stuff the new value in, or detec

Re: [Valgrind-users] Valgrind segfault when using VALGRIND_NON_SIMD_CALL0()

2009-07-24 Thread Jeroen N. Witmond [Bahco]
Julian Seward wrote: > > Not really. On x86 and amd64, all atomic instructions are translated > using a loop, which fetches the old value, computes the new value, and > uses a compare-and-swap to either stuff the new value in, or detect that > the old value has changed, in which case it starts ove

Re: [Valgrind-users] Valgrind segfault when using VALGRIND_NON_SIMD_CALL0()

2009-07-24 Thread Julian Seward
> > That's fixed now, in the trunk (not 3.4.x). If you put in atomic > > instructions then you should get out (something equivalent to) > > atomic instructions. So V should now play nice with other processes > > communicating via shared memory. > > Cool, that's good to know :) Is there a place I

Re: [Valgrind-users] Valgrind segfault when using VALGRIND_NON_SIMD_CALL0()

2009-07-24 Thread Patrick Smears
On Fri, 24 Jul 2009, Julian Seward wrote: > >> anyone change it between comparing it to A and setting it to B). Because >> of the way Valgrind works (simulating instructions), the atomic >> instructions get broken up into separate loads/stores, meaning that >> they're no longer atomic (i.e. it's

Re: [Valgrind-users] Valgrind segfault when using VALGRIND_NON_SIMD_CALL0()

2009-07-24 Thread Julian Seward
> anyone change it between comparing it to A and setting it to B). Because > of the way Valgrind works (simulating instructions), the atomic > instructions get broken up into separate loads/stores, meaning that > they're no longer atomic (i.e. it's possible for someone to change the > location in

Re: [Valgrind-users] Valgrind segfault when using VALGRIND_NON_SIMD_CALL0()

2009-07-24 Thread Patrick Smears
OK - to follow up on a blast from the past: On Tue, 11 Dec 2007, Patrick Smears wrote: > Hi all, > >> Sorry not to have been very inputful on this so far. >> >> I can't claim to have great insight into the robustness aspects >> of the NON_SIMD_CALL mechanism. However, looking at your original