Skip to content

TID in the files and on the stack trace not matching #872

Open

Description

In the stack trace, we see something like this:

*** SIGSEGV (@0x149d) received by PID 22298 (TID 0x36087700) from PID 5277; stack trace: ***

In the files, we see:
I1107 17:38:43.965498 22378 xx.cc:nnn]

22378 is supposed to be the thread id and so is: 0x36087700. I skimmed over the code and seems like 2 different functions are used to compute the values:

(a)

pthread_t id = pthread_self();

(b)
pid_t GetTID() {

What is the relation between the two? How do I know which TID caused the crash?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions