Coder Social home page Coder Social logo

Comments (5)

ianlancetaylor avatar ianlancetaylor commented on August 16, 2024

When using backtrace_full from libbacktrace you get the debugging info. In your case there is no debugging info for the startup code. You can get information similar to glibc backtrace by calling the libbacktrace function backtrace_syminfo.

from libbacktrace.

nagarajsherigar avatar nagarajsherigar commented on August 16, 2024

When using backtrace_full from libbacktrace you get the debugging info. In your case there is no debugging info for the startup code. You can get information similar to glibc backtrace by calling the libbacktrace function backtrace_syminfo.

yes.i can use that function.still it will not show from which module it is picking,like ex /lib/x86_64-linux-gnu/libc.so.6

also couple more queries

  1. is it safe to use backtrace_full in SIGSEGV signal handler ?
  2. In backtrace_syminfo_callback what does symval and symsize mean?

from libbacktrace.

ianlancetaylor avatar ianlancetaylor commented on August 16, 2024

It is safe to use backtrace_full in a signal handler.

In the backtrace_syminfo_callback function symval is the address of the symbol in memory. symsize is the size of the symbol as recorded in the executable's symbol table. This is normally the size of the function or the variable.

from libbacktrace.

nagarajsherigar avatar nagarajsherigar commented on August 16, 2024

It is safe to use backtrace_full in a signal handler.

In the backtrace_syminfo_callback function symval is the address of the symbol in memory. symsize is the size of the symbol as recorded in the executable's symbol table. This is normally the size of the function or the variable.

backtrace_full uses mmap.mmap is not in async safe list of functions,so just wanted to understand,how it is safe?

from libbacktrace.

ianlancetaylor avatar ianlancetaylor commented on August 16, 2024

mmap is async-signal-safe in practice.

from libbacktrace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.