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

Re: Bug#837606: general: system freeze



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-dev

Compile with
gcc -g -o mutex_fail_test mutex_fail_test.c `pkg-config --cflags --libs cunit` -pthread

launch
./mutex_fail_test
Thanks 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 fault

--
Cheers, Abou Al Montacir

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: