[valgrind] [Bug 451327] Potential false positive when posting to stack allocated semaphore

2022-04-28 Thread Godmar Back
https://bugs.kde.org/show_bug.cgi?id=451327 --- Comment #8 from Godmar Back --- (In reply to Godmar Back from comment #7) > It's more reliable if you `NTHREADS` and `n` if you *increase* -- You are receiving this mail because: You are watching all bug changes.

[valgrind] [Bug 451327] Potential false positive when posting to stack allocated semaphore

2022-04-28 Thread Godmar Back
https://bugs.kde.org/show_bug.cgi?id=451327 --- Comment #7 from Godmar Back --- It's more reliable if you `NTHREADS` and `n` -- You are receiving this mail because: You are watching all bug changes.

[valgrind] [Bug 451327] Potential false positive when posting to stack allocated semaphore

2022-04-28 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=451327 --- Comment #6 from Paul Floyd --- OK, I've reopened this. The error is intermittent for me so I assume that there is some race. -- You are receiving this mail because: You are watching all bug changes.

[valgrind] [Bug 451327] Potential false positive when posting to stack allocated semaphore

2022-04-28 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=451327 Paul Floyd changed: What|Removed |Added Ever confirmed|0 |1 Resolution|NOT A BUG

[valgrind] [Bug 451327] Potential false positive when posting to stack allocated semaphore

2022-04-28 Thread Godmar Back
https://bugs.kde.org/show_bug.cgi?id=451327 --- Comment #5 from Godmar Back --- Created attachment 148434 --> https://bugs.kde.org/attachment.cgi?id=148434=edit test program that shows spurious warning even when threads are joined I've attached a larger example from the actual code to show

[valgrind] [Bug 451327] Potential false positive when posting to stack allocated semaphore

2022-04-28 Thread Godmar Back
https://bugs.kde.org/show_bug.cgi?id=451327 --- Comment #4 from Godmar Back --- The actual application in which the false positive occurs uses pthread_join properly. I created a minimum reproducible test case here for you to see the issue. Adding pthread_join introduces additional edges in the

[valgrind] [Bug 451327] Potential false positive when posting to stack allocated semaphore

2022-04-28 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=451327 Paul Floyd changed: What|Removed |Added Resolution|--- |NOT A BUG Status|REPORTED

[valgrind] [Bug 451327] Potential false positive when posting to stack allocated semaphore

2022-04-28 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=451327 --- Comment #2 from Paul Floyd --- Answering my own question. On Linux, if I add pthread_join: static void use_stack_allocated_semaphore(void) { sem_t sem; sem_init(, 0, 0); pthread_t t; pthread_create(, NULL, post_thread, );

[valgrind] [Bug 451327] Potential false positive when posting to stack allocated semaphore

2022-04-28 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=451327 Paul Floyd changed: What|Removed |Added CC||pjfl...@wanadoo.fr --- Comment #1 from Paul Floyd

[valgrind] [Bug 451327] Potential false positive when posting to stack allocated semaphore

2022-03-09 Thread Godmar Back
https://bugs.kde.org/show_bug.cgi?id=451327 Godmar Back changed: What|Removed |Added CC||god...@gmail.com -- You are receiving this mail