backtrace
---------

LSB specification:
 https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-backtrace-1.html

Documentation:

  * Backtraces (libc),

  * man backtrace.

Gnulib module: execinfo

Portability problems fixed by Gnulib:

  * This function is missing on many platforms: musl libc, FreeBSD 9.3, NetBSD 6.1, OpenBSD 6.9, Minix 3.1.8, AIX 5.1, HP-UX 11, Solaris 10, Cygwin 2.9, mingw, MSVC 14, Android API level 32.

Portability problems not fixed by Gnulib:

  * The second argument is of type size_t, not int, on some platforms: FreeBSD, NetBSD, OpenBSD.

  * The return value may be (size_t)(-1) instead of 0 on some platforms: FreeBSD 12.4/i386.

  * The returned stack trace is empty if it would not entirely fit into the provided buffer on some platforms: FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.5.

  * The returned stack trace is always empty on some platforms: FreeBSD 11.0/i386, FreeBSD 12.2/sparc64.

  * On platforms where the function is missing, the Gnulib substitute implementation is just a stub, and does nothing.