This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

microblaze: pthread_cancel problem


Hi,

When running a simple pthread_cancel application from
http://man7.org/linux/man-pages/man3/pthread_cancel.3.html
in Qemu, you are getting:
/cancel
thread_func(): started; cancellation disabled
main(): sending cancellation request
libgcc_s.so.1 must be installed for pthread_cancel to work
Aborted

It seems my gcc 5.4.0 cross-compiler uses SJLJ exceptions,
which is not supported by GNU libc:
nm libgcc_s.so.1 |grep SjLj
0000d858 T _Unwind_SjLj_ForcedUnwind
0000d1d4 t _Unwind_SjLj_GetContext
0000d75c T _Unwind_SjLj_RaiseException
0000d41c T _Unwind_SjLj_Register
0000d8e4 T _Unwind_SjLj_Resume
0000d968 T _Unwind_SjLj_Resume_or_Rethrow
0000d33c t _Unwind_SjLj_SetContext
0000d4c8 T _Unwind_SjLj_Unregister

I found this thread:
https://www.sourceware.org/ml/libc-alpha/2015-08/msg00552.html

Did this ever got resolved? Are there any testsuite results for 
GNU libc on Microblaze for the current version?
How to force gcc to use Dwarf?
I tried to configure gcc with --disable-sjlj-exceptions, but this
didn't worked.

Thanks in advance,
 Waldemar


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]