question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Segmentation fault on printing objects

See original GitHub issue

I am trying to debug MongoDB built from source, which is a very large binary. When I run gdb with dashboard, I am able to run the mongod program just fine, but when it reaches my breakpoint, it prints about half of the modules and then crashes with a segmentation fault. I have confirmed both that my gdb config works just fine on a smaller binary, and that gdb without dashboard works just fine on mongod.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:23 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
cyrus-andcommented, Aug 27, 2019

OK at least I can reproduce the segmentation fault, let me look into this.

1reaction
cyrus-andcommented, Aug 27, 2019

Actually, try it without the flag --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars

It works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Segmentation Fault when printing Struct Objects
segmentation falut is due to no memory allocation for the pointers. char *firstName; char *lastName;. these are just pointers not pointing ...
Read more >
20020 – GDB segfault on printing objects - sourceware.org
When gdb tries to print a "static constexpr", it > triggers a "error reading variable: Missing ELF symbol" exception and then > crashes...
Read more >
Why does c++ give a bare segmentation fault error ... - Reddit
Segmentation Fault just means that the OS killed your process for trying to reach outside its memory segment. There's no opportunity for your ......
Read more >
Identify what's causing segmentation faults (segfaults)
A segmentation fault (aka segfault) is a common condition that causes programs to crash; they are often associated with a file named core...
Read more >
Segmentation fault on print() · Issue #650 - GitHub
The print() was printing a normal string and was located in a regular view. Whenever i place print("test") somewhere in a view i...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found