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

Bug#1008135: ITP: libbacktrace -- Backtrace library (for C/C++ apps)



I packaged this as a ststic library, but it's policy to provide a
dynamic library too if appropriate. So I asked upstream about this.

The discussion took place primarily as an upstream github issue:
https://github.com/ianlancetaylor/libbacktrace/issues/85

Here is a summary:
Wookey:
Firstly, I see that it only builds a static library. Is that a
technical limitation to do with the backtracing or the way it is
intended to be used, (or something to do with there being no
ABI-stability guarantees like libiberty) or just a 'no-one asked for a                            
dynamic version yet' thing?

Obviously in distro-world we'd normally build a dynamic version (and a
static version) and use them as required. So I'm just wondering if                                
there is a reason why I shouldn't do that?

Ian Lance taylor:
I would be a bit surprised if libbacktrace  works as a dynamic
library, but maybe it does.  I haven't tried it.

Discussion continued in issue #85 on github:
https://github.com/ianlancetaylor/libbacktrace/issues/85

Ian Lance taylor:
The libbacktrace library explicitly supports being invoked from a
signal handler, but that most likely won't work if it is linked in as
a dynamic library.  So in normal use, without additional information,
it should be linked statically.

My concern is that lazy PLT calls may not work reliably if invoked via
a signal handler.  I don't know whether this concern is completely
valid.  It can be obviated by using `-Wl,-z,now` when linking.

Carlos Galvez also asked about dynamic linking the library from
Boost.Stacktrace, so there are other possible users.

(end of summary)

It's easy to build the dynamic version of the library as well, but I'm
not yet sure if that's a good idea for the debian package, as we use
-z,relro by default in debian.

I will uploaded a dynamic-only version for now as this has already stalled for more than a year. 

Wookey
-- 
Principal hats:  Debian, Wookware, ARM
http://wookware.org/

Attachment: signature.asc
Description: PGP signature


Reply to: