Re: Svante Signell 2016-02-20 <1455964084.2888.73.ca...@gmail.com>
> No, that was not the correct solution. For some, yet unknown reason,
> the test code returns with an error, even for systems with a working
> sem_timedwait. An updated test case will follow soon. Thank you for
> your patience.

Hi Svante,

I just came to the same conclusion. For the record, configure on arm64
is still hanging at "checking for a working sem_timedwait...", the
backtrace is:

Attaching to process 6084
Reading symbols from /home/myon/libqb/libqb-0.17.2.real/conftest...done.
Reading symbols from /lib/aarch64-linux-gnu/libpthread.so.0...(no debugging 
symbols found)...done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Reading symbols from /lib/aarch64-linux-gnu/libdl.so.2...(no debugging symbols 
found)...done.
Reading symbols from /lib/aarch64-linux-gnu/librt.so.1...(no debugging symbols 
found)...done.
Reading symbols from /lib/aarch64-linux-gnu/libc.so.6...(no debugging symbols 
found)...done.
Reading symbols from /lib/ld-linux-aarch64.so.1...(no debugging symbols 
found)...done.
0x0000007fa4714fc0 in do_futex_wait () from 
/lib/aarch64-linux-gnu/libpthread.so.0
(gdb) bt
#0  0x0000007fa4714fc0 in do_futex_wait () from 
/lib/aarch64-linux-gnu/libpthread.so.0
#1  0x0000007fa471508c in __new_sem_wait_slow () from 
/lib/aarch64-linux-gnu/libpthread.so.0
#2  0x0000007fa4715198 in sem_timedwait () from 
/lib/aarch64-linux-gnu/libpthread.so.0
#3  0x0000000000400688 in main () at conftest.c:115
(gdb) f 3
#3  0x0000000000400688 in main () at conftest.c:115
115     if(sem_timedwait(&sem, &ts)==-1) return -1;
(gdb) l
110     main ()
111     {
112     sem_t sem;
113     struct timespec ts;
114     if (sem_init(&sem, 0, 0) == -1) return -1;
115     if(sem_timedwait(&sem, &ts)==-1) return -1;
116       ;
117       return 0;
118     }
(gdb) p sem
$1 = {
  __size = 
"\000\000\000\000\001\000\000\000\000\000\000\000\177\000\000\000|9[\244\177\000\000\000\b\b@\000\000\000\000",
 __align = 4294967296}
(gdb) p ts
$2 = {tv_sec = 548218288480, tv_nsec = 4196360}


Thank you as well,
Christoph
-- 
c...@df7cb.de | http://www.df7cb.de/

Reply via email to