Hi Pablo, I'm facing the same problem by compiling and running on kernel 4.15. Calls to __sync_fetch_and_add keeps returning the same value while the actual value has been incremented. Also I add __sync_val_compare_and_swap to your list of primitives generating compiling errors.
I Investigated a bit but I have no clue on how this can be fixed. Daniel On Wed, Jul 18, 2018 at 1:46 PM, Pablo Alvarez via Lists.Iovisor.Org < [email protected]> wrote: > Hi all, > > A while ago, I filed a bug with LLVM about __sync_add_and_fetch as > compiled into eBPF code. > > https://bugs.llvm.org/show_bug.cgi?id=36573 > > Both it and __sync_fetch_and_add fail to return the correct value of the > item being incremented, returning instead the increment (or double the > increment). This means I end up with race conditions. Has anyone else run > into this, and do you have a workaround for it? > > The bug report, sadly, has not been touched by anyone else. > > Best > > Pablo Alvarez > > > > > > -- Daniel Zozin, Dr. Research Engineer RiSING - Robust and Secure Distributed Computing ---------------------------------------- CREATE-NET Research Center Fondazione Bruno Kessler (FBK) via alla Cascata 56D <https://www.openstreetmap.org/search?query=46.07056%2C11.15092#map=19/46.07056/11.15092&layers=N> 38123 Povo, Trento (Italy) Tel.: +39 0461 312480 e-mail: [email protected] www: https://create-net.fbk.eu/ GPG KEY: 0x6F66193EC7034588 -- -- Le informazioni contenute nella presente comunicazione sono di natura privata e come tali sono da considerarsi riservate ed indirizzate esclusivamente ai destinatari indicati e per le finalità strettamente legate al relativo contenuto. Se avete ricevuto questo messaggio per errore, vi preghiamo di eliminarlo e di inviare una comunicazione all’indirizzo e-mail del mittente. -- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1381): https://lists.iovisor.org/g/iovisor-dev/message/1381 Mute This Topic: https://lists.iovisor.org/mt/23670176/21656 Group Owner: [email protected] Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
