Hi Joël,On Wed, 2016-09-14 at 15:38 +0200, Joël Krähemann wrote:Hi
reproducing the critical parts in a unit test would be helpful
Something like in the attachment.install dependencies:apt-get install libcunit1-devCompile withgcc -g -o mutex_fail_test mutex_fail_test.c `pkg-config --cflags --libs cunit` -pthreadlaunch./mutex_fail_testThanks for that,Here are the results:$gcc -g -o mutex_fail_test mutex_fail_test.c `pkg-config --cflags --libs cunit` -pthread$./mutex_fail_test CUnit - A unit testing framework for C - Version 2.1-3 http://cunit.sourceforge.net/ Suite: MutexFailTest Test: test of pthread_mutex_lock concurrently with unassigned pointer ...Segmentation faultCheers, Abou Al Montacir
--