Just ran into this issue while building / testing on Debian 8 amd64.
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 3
Description
Just ran into this issue while building / testing on Debian 8 amd64.
mikep@mv-tricolor:~/bcc/obj-x86_64-linux-gnu$ sudo /usr/bin/ctest --force-new-ctest-process -j1 -V
...
20: Test command: /home/mikep/bcc/obj-x86_64-linux-gnu/tests/wrapper.sh "py_uprobes" "sudo" "/home/mikep/bcc/tests/python/test_uprobes.py"
20: Test timeout computed to be: 9.99988e+06
20: Python 2.7.9
20: .Arena 0:
20: system bytes = 13799424
20: in use bytes = 2969696
20: Total (incl. mmap):
20: system bytes = 14589952
20: in use bytes = 3760224
20: max mmap regions = 4
20: max mmap bytes = 1589248
20: F
20: ======================================================================
20: FAIL: test_simple_library (__main__.TestUprobes)
20: ----------------------------------------------------------------------
20: Traceback (most recent call last):
20: File "/home/mikep/bcc/tests/python/test_uprobes.py", line 34, in test_simple_library
20: self.assertEqual(b["stats"][ctypes.c_int(0)].value, 2)
20: AssertionError: 0L != 2
20:
20: ----------------------------------------------------------------------
20: Ran 2 tests in 0.217s
20:
20: FAILED (failures=1)
20: Failed
20/28 Test #20: py_uprobes .......................***Failed 0.29 sec
Looks like malloc_stats() is missing from this distro and version.
mikep@mv-tricolor:~$ python
Python 2.7.9 (default, Jun 29 2016, 13:08:31)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes.util import find_library
>>> find_library('malloc_stats')
>>> find_library('c')
'libc.so.6'
@rnav, would you mind doing the same check with python and find_library() on the host where you discovered this issue?
Originally posted by @mprzybylski in https://github.com/iovisor/bcc/issues/525#issuecomment-272028323
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/python/test_uprobes.py, especially test_simple_library, and reproduce the py_uprobes ctest failure on Debian 8 amd64. Check whether malloc_stats is available through Python's ctypes.util.find_library as shown. Done means identifying why the test reports 0 instead of 2 and defining a compatible resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- debian, linux, python
- Domain
- operating-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100