Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault RHEL6 #556

Closed
tsigian opened this issue Mar 8, 2016 · 3 comments
Closed

segfault RHEL6 #556

tsigian opened this issue Mar 8, 2016 · 3 comments
Assignees
Labels

Comments

@tsigian
Copy link

tsigian commented Mar 8, 2016

RPM VERSION: sysdig-0.8.0-1.x86_64
KERNEL: 2.6.32-431.el6.x86_64
OS: Red Hat Enterprise Linux Server release 6.5 (Santiago)

WHAT I DID:
sudo gdb --args sysdig -G 15 -W 2 -w /tmp/UNIX/testTrialRead.scap

(gdb) run
Starting program: /usr/bin/sysdig -G 15 -W 2 -w /tmp/UNIX/testTrialRead.scap
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0000003a14878fe4 in _int_malloc () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install sysdig-0.8.0-1.x86_64
(gdb)
(gdb) bt
#0 0x0000003a14878fe4 in _int_malloc () from /lib64/libc.so.6
#1 0x0000003a1487a6b1 in malloc () from /lib64/libc.so.6
#2 0x00000031b72bd09d in operator new(unsigned long) () from /usr/lib64/libstdc++.so.6
#3 0x00000031b729c3c9 in std::basic_string<char, std::char_traits, std::allocator >::Rep::S_create(unsigned long, unsigned long, std::allocator const&) () from /usr/lib64/libstdc++.so.6
#4 0x00000031b729d19b in std::basic_string<char, std::char_traits, std::allocator >::Rep::M_clone(std::allocator const&, unsigned long) () from /usr/lib64/libstdc++.so.6
#5 0x00000031b729d5ec in std::basic_string<char, std::char_traits, std::allocator >::reserve(unsigned long) () from /usr/lib64/libstdc++.so.6
#6 0x00000031b729dabf in std::basic_string<char, std::char_traits, std::allocator >::append(std::basic_string<char, std::char_traits, std::allocator > const&) () from /usr/lib64/libstdc++.so.6
#7 0x00000000005062d5 in sinsp_threadinfo::compute_program_hash() ()
#8 0x0000000000509630 in sinsp_thread_manager::add_thread(sinsp_threadinfo&, bool) ()
#9 0x00000000005034a7 in sinsp_parser::parse_clone_exit(sinsp_evt*) ()
#10 0x0000000000503f7b in sinsp_parser::process_event(sinsp_evt*) ()
#11 0x000000000050c530 in sinsp::next(sinsp_evt**) ()
#12 0x0000000000475ce6 in do_inspect(sinsp
, unsigned long, int, bool, bool, bool, bool, sinsp_filter
, std::vector<summary_table_entry, std::allocator<summary_table_entry> >
, sinsp_evt_formatter
) ()
#13 0x0000000000478e05 in sysdig_init(int, char**) ()
#14 0x0000000000461fd0 in main ()

@luca3m luca3m self-assigned this Mar 10, 2016
@luca3m
Copy link
Contributor

luca3m commented Mar 21, 2016

I wasn't able to replicate it. Does it happen on many hosts or only on a single one? Are you able to run valgrind and send us the output? Googling I found this kind of segfault on malloc may be due to heap corruption.

@tsigian
Copy link
Author

tsigian commented Mar 22, 2016

Ran it with basic valgrind and didn't last more than few minutes/seconds, please find attached.
This is a HP Z800 Workstation with 12 cores and 32G RAM.

sudo_valgrind_sysdig_-G15_-W2_-w.txt

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 27, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants