Re: xeno-test failed due to cond_destroy error

2021-05-11 Thread Jan Kiszka via Xenomai
On 12.05.21 04:08, Fangsuo Wu wrote: > yes, to be more accurate, the issue is found in the libc file under > gcc-linaro-arm-linux-gnueabihf-4.9-2014.08_linux/arm-linux-gnueabihf/libc/usr/include/pthread.h. > > The glibc is accompanied with the gcc I downloaded from > https://releases.linaro.org/ar

Re: xeno-test failed due to cond_destroy error

2021-05-11 Thread Fangsuo Wu via Xenomai
yes, to be more accurate, the issue is found in the libc file under gcc-linaro-arm-linux-gnueabihf-4.9-2014.08_linux/arm-linux-gnueabihf/libc/usr/include/pthread.h. The glibc is accompanied with the gcc I downloaded from https://releases.linaro.org/archive/14.08/components/toolchain/binaries/. 20

Re: xeno-test failed due to cond_destroy error

2021-05-11 Thread Jan Kiszka via Xenomai
On 11.05.21 12:37, Fangsuo Wu wrote: > Hi, the issue seems related to the gcc compiler I > used(gcc-linaro-arm-linux-gnueabihf-4.9-2014.08_linux). Huh, that is... well "matured". > > I added some log and found the failure was from below code, line 155: > pthread_cond_destroy > -> cobalt_cond

Re: xeno-test failed due to cond_destroy error

2021-05-11 Thread Fangsuo Wu via Xenomai
Hi, the issue seems related to the gcc compiler I used(gcc-linaro-arm-linux-gnueabihf-4.9-2014.08_linux). I added some log and found the failure was from below code, line 155: pthread_cond_destroy -> cobalt_cond_autoinit_type: 149 static int __attribute__((cold)) 150 >---cobalt_cond_autoin

Re: xeno-test failed due to cond_destroy error

2021-05-10 Thread Fangsuo Wu via Xenomai
BTW, I just wrote an application which is exactly the same with autoinit_simple_conddestroy. And it can run successfully in my board. 1 #include 2 #include 3 int main(void) 4 { 5 >---pthread_cond_t cond = PTHREAD_COND_INITIALIZER; 6 >---if(pthread_cond_destroy(&cond) == 0)

Re: xeno-test failed due to cond_destroy error

2021-05-10 Thread Fangsuo Wu via Xenomai
Jan, I removed the CFLAGS and LDFLAGS, with configure command: ./configure --build=i686-pc-linux-gnu --host=arm-linux-gnueabihf --with-core=cobalt --enable-smp --enable-lazy-setsched --enable-debug=symbols But the issue still remains. I changed the failed test case as below, the issue still exist

Re: xeno-test failed due to cond_destroy error

2021-05-10 Thread Jan Kiszka via Xenomai
On 10.05.21 09:20, Fangsuo Wu wrote: > Jan, > Thanks for your reply. The environment I used is listed below. BTW, I > can run latency test successfully. > > 1. The revision of Xenomai: xenomai-3.1.tar.bz2 > 2. Soc: dual ARM cortex A7 > 3. How I built application libraries: > ./configure CFLAGS

Re: xeno-test failed due to cond_destroy error

2021-05-10 Thread Fangsuo Wu via Xenomai
Jan, Thanks for your reply. The environment I used is listed below. BTW, I can run latency test successfully. 1. The revision of Xenomai: xenomai-3.1.tar.bz2 2. Soc: dual ARM cortex A7 3. How I built application libraries: ./configure CFLAGS="-march=armv7-a -mfpu=vfp3" LDFLAGS="-march=armv7-a

Re: xeno-test failed due to cond_destroy error

2021-05-09 Thread Jan Kiszka via Xenomai
On 10.05.21 03:56, Fangsuo Wu via Xenomai wrote: > Hi, I met below errors when running xeno-test in my board: > > > > > > > > > > > > > > > > > > > > > *sh-4.4# ./xeno-testStarted child 209: /bin/sh > /usr/xenomai/bin/xeno-test-run-wrapper ./xeno-test++ echo 0++ > testdir=/usr/x

xeno-test failed due to cond_destroy error

2021-05-09 Thread Fangsuo Wu via Xenomai
Hi, I met below errors when running xeno-test in my board: *sh-4.4# ./xeno-testStarted child 209: /bin/sh /usr/xenomai/bin/xeno-test-run-wrapper ./xeno-test++ echo 0++ testdir=/usr/xenomai/bin++ /usr/xenomai/bin/smokey --run random_alloc_rounds=64 pattern_check_rounds=64arith OK