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

Segmentation Fault on OpenBSD 6.2 #11

Closed
mzch opened this issue Jan 27, 2018 · 1 comment
Closed

Segmentation Fault on OpenBSD 6.2 #11

mzch opened this issue Jan 27, 2018 · 1 comment

Comments

@mzch
Copy link

mzch commented Jan 27, 2018

Hi,

I tried to run istatserver on OpenBSD 6.2 RELEASE, however, it fails to start with Segmentation Fault.

-- gdb becktrace
(gdb) r
Starting program: /usr/local/bin/istatserver
Opened database
Database valid

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 506829]
kvm_getprocs (kd=0x8, op=The value of variable 'op' is distributed across several
locations, and GDB cannot access its value.

) at /usr/src/lib/libkvm/kvm_proc2.c:393
393 /usr/src/lib/libkvm/kvm_proc2.c: No such file or directory.
in /usr/src/lib/libkvm/kvm_proc2.c
(gdb) bt
0 kvm_getprocs (kd=0x8, op=The value of variable 'op' is distributed across several
locations, and GDB cannot access its value.

) at /usr/src/lib/libkvm/kvm_proc2.c:393
1 0x00000d1620e4c165 in StatsProcesses::update (this=0x7f7ffffd81b0, sampleID=Variable "sampleID" is not available.
) at ./stats/StatsProcesses.cpp:217
2 0x00000d1620e2897a in Stats::startStats (this=0x7f7ffffd6858) at Stats.cpp:231
3 0x00000d1620e27e59 in start_stats_thread (a=Variable "a" is not available.
) at Stats.cpp:55
4 0x00000d1876f6dcae in _rthread_start (v=Variable "v" is not available.
) at /usr/src/lib/librthread/rthread.c:96
5 0x00000d18eae8e6cb in __tfork_thread () at /usr/src/lib/libc/arch/amd64/sys/tfork_thread.S:75
6 0x0000000000000000 in ?? ()

@mzch
Copy link
Author

mzch commented Jan 28, 2018

Hm, it seems that kvm_open(NULL, NULL, NULL, O_RDONLY, NULL) returns NULL.

bjango-b added a commit that referenced this issue Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants