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

It doesn't work on python 2.6.6 #90

Closed
jaychoww opened this issue Feb 15, 2019 · 3 comments
Closed

It doesn't work on python 2.6.6 #90

jaychoww opened this issue Feb 15, 2019 · 3 comments

Comments

@jaychoww
Copy link

jaychoww commented Feb 15, 2019

env:
centos 6.9 + python 2.6.6

[root@local ~]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.9 (Final)
Release: 6.9
Codename: Final

[root@local ~]# python --version
Python 2.6.6

[root@local ~]# pip install py-spy
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting py-spy
/usr/lib/python2.6/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/lib/python2.6/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
/usr/lib/python2.6/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
/usr/lib/python2.6/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading https://files.pythonhosted.org/packages/26/c2/bacd6ff83b43e1eff51d0d93a1fc930daad02fa93c0499d6facece57f786/py_spy-0.1.10-py2.py3-none-manylinux1_x86_64.whl (2.9MB)
100% |████████████████████████████████| 2.9MB 64kB/s
Installing collected packages: py-spy
Successfully installed py-spy-0.1.10
/usr/lib/python2.6/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
/usr/lib/python2.6/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
You are using pip version 9.0.1, however version 19.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

[root@local ~]# RUST_BACKTRACE=1 py-spy --pid 25210
thread 'main' panicked at 'Failed to find BSS section header in ELF binary', libcore/option.rs:1008:5
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::print
at libstd/sys_common/backtrace.rs:71
at libstd/sys_common/backtrace.rs:59
2: std::panicking::default_hook::{{closure}}
at libstd/panicking.rs:211
3: std::panicking::default_hook
at libstd/panicking.rs:227
4: std::panicking::rust_panic_with_hook
at libstd/panicking.rs:476
5: std::panicking::continue_panic_fmt
at libstd/panicking.rs:390
6: rust_begin_unwind
at libstd/panicking.rs:325
7: core::panicking::panic_fmt
at libcore/panicking.rs:77
8: core::option::expect_failed
at libcore/option.rs:1008
9: py_spy::binary_parser::parse_binary
10: py_spy::python_spy::PythonSpy::new
11: py_spy::python_spy::PythonSpy::retry_new
12: py_spy::pyspy_main
13: py_spy::main
14: std::rt::lang_start::{{closure}}
15: std::panicking::try::do_call
at libstd/rt.rs:59
at libstd/panicking.rs:310
16: __rust_maybe_catch_panic
at libpanic_unwind/lib.rs:102
17: std::rt::lang_start_internal
at libstd/panicking.rs:289
at libstd/panic.rs:392
at libstd/rt.rs:58
18: main

@jaychoww
Copy link
Author

is this the reason?

[root@local ~]# readelf -h /usr/bin/python2.6 --all |grep bss
[25] .bss PROGBITS 0000000000600af8 00000af8
03 .ctors .dtors .jcr .dynamic .got .got.plt .data .bss .dynstr .gnu.conflict
12: 0000000000600af4 0 NOTYPE GLOBAL DEFAULT ABS __bss_start

readelf /usr/bin/python2.7 --all|grep bss
[26] .bss NOBITS 00000000009542c0 003542b4
03 .init_array .fini_array .jcr .dynamic .got .got.plt .data .bss
674: 00000000009542b4 0 NOTYPE GLOBAL DEFAULT 26 __bss_start

@benfred
Copy link
Owner

benfred commented Feb 16, 2019

Hmm - I don't think it's the progbits vs nobits difference ... I just tested this out in a centos 6.9 docker container, and py-spy worked for me (and it seems like the BSS address of the main python binary is the same on our two systems).

[root@86d37e232cad /]# lsb_release -a
LSB Version:	:base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID:	CentOS
Description:	CentOS release 6.9 (Final)
Release:	6.9
Codename:	Final
[root@86d37e232cad /]# python --version
Python 2.6.6
[root@86d37e232cad /]# readelf -h /usr/bin/python2.6 --all |grep bss
  [25] .bss              NOBITS           0000000000600af8  00000af4
   03     .ctors .dtors .jcr .dynamic .got .got.plt .data .bss 
    12: 0000000000600af4     0 NOTYPE  GLOBAL DEFAULT  ABS __bss_start
[root@86d37e232cad /]# py-spy -- /usr/bin/python2.6 -c 'import time; time.sleep(1)'


Collecting samples from '/usr/bin/python2.6 -c import time; time.sleep(1)' (python v2.6.6)
Total Samples 100
GIL: 0.00%, Active: 100.00%, Threads: 1

  %Own   %Total  OwnTime  TotalTime  Function (filename:line)                                                                                                                        
100.00% 100.00%    1.00s     1.00s   <module> (<string>:1)

Can you try enabling logging and pasting the output (something like RUST_LOG=info py-spy -- python 'while True: pass ) ?

Also i think with this os/python it might be failing to parse /usr/lib64/libpython2.6.so.1.0 instead of /usr/bin/python2.6

@jaychoww
Copy link
Author

[root@local ~]# RUST_LOG=info RUST_BACKTRACE=1 py-spy --pid 15229               
 INFO 2019-02-16T12:53:22Z: py_spy::config: Command line args: ArgMatches { args: {"duration": MatchedArg { occurs: 0, indices: [4], vals: ["2"] }, "pid": MatchedArg { occurs: 1, indices: [2], vals: ["15229"] }, "rate": MatchedArg { occurs: 0, indices: [3], vals: ["100"] }}, subcommand: None, usage: Some("USAGE:\n    py-spy [FLAGS] [OPTIONS] --pid <pid> [python_program]...") }
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: Got virtual memory maps from pid 15229:
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 0000000000400000-0000000000401000 r-x /usr/bin/python
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 0000000000600000-0000000000602000 rw- /usr/bin/python
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 000000329f800000-000000329f820000 r-x /lib64/ld-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 000000329fa20000-000000329fa21000 r-- /lib64/ld-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 000000329fa21000-000000329fa22000 rw- /lib64/ld-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 000000329fa22000-000000329fa23000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 000000329fc00000-000000329fd8b000 r-x /lib64/libc-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 000000329fd8b000-000000329ff8a000 --- /lib64/libc-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 000000329ff8a000-000000329ff8e000 r-- /lib64/libc-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 000000329ff8e000-000000329ff90000 rw- /lib64/libc-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 000000329ff90000-000000329ff94000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0000000-00000032a0017000 r-x /lib64/libpthread-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0017000-00000032a0217000 --- /lib64/libpthread-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0217000-00000032a0218000 r-- /lib64/libpthread-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0218000-00000032a0219000 rw- /lib64/libpthread-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0219000-00000032a021d000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0400000-00000032a0402000 r-x /lib64/libdl-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0402000-00000032a0602000 --- /lib64/libdl-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0602000-00000032a0603000 r-- /lib64/libdl-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0603000-00000032a0604000 rw- /lib64/libdl-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0800000-00000032a0807000 r-x /lib64/librt-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0807000-00000032a0a06000 --- /lib64/librt-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0a06000-00000032a0a07000 r-- /lib64/librt-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0a07000-00000032a0a08000 rw- /lib64/librt-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0c00000-00000032a0c83000 r-x /lib64/libm-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0c83000-00000032a0e82000 --- /lib64/libm-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0e82000-00000032a0e83000 r-- /lib64/libm-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a0e83000-00000032a0e84000 rw- /lib64/libm-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a1000000-00000032a1015000 r-x /lib64/libz.so.1.2.3
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a1015000-00000032a1214000 --- /lib64/libz.so.1.2.3
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a1214000-00000032a1215000 r-- /lib64/libz.so.1.2.3
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a1215000-00000032a1216000 rw- /lib64/libz.so.1.2.3
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a1800000-00000032a181d000 r-x /lib64/libselinux.so.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a181d000-00000032a1a1c000 --- /lib64/libselinux.so.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a1a1c000-00000032a1a1d000 r-- /lib64/libselinux.so.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a1a1d000-00000032a1a1e000 rw- /lib64/libselinux.so.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a1a1e000-00000032a1a1f000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a1c00000-00000032a1c16000 r-x /lib64/libresolv-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a1c16000-00000032a1e16000 --- /lib64/libresolv-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a1e16000-00000032a1e17000 r-- /lib64/libresolv-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a1e17000-00000032a1e18000 rw- /lib64/libresolv-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032a1e18000-00000032a1e1a000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032acc00000-00000032acd5d000 r-x /usr/lib64/libpython2.6.so.1.0
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032acd5d000-00000032acf5c000 --- /usr/lib64/libpython2.6.so.1.0
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032acf5c000-00000032acf98000 rw- /usr/lib64/libpython2.6.so.1.0
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032acf98000-00000032acfa6000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ad000000-00000032ad003000 r-x /lib64/libcom_err.so.2.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ad003000-00000032ad202000 --- /lib64/libcom_err.so.2.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ad202000-00000032ad203000 r-- /lib64/libcom_err.so.2.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ad203000-00000032ad204000 rw- /lib64/libcom_err.so.2.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ad800000-00000032ad8dc000 r-x /lib64/libkrb5.so.3.3
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ad8dc000-00000032adadb000 --- /lib64/libkrb5.so.3.3
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032adadb000-00000032adae5000 r-- /lib64/libkrb5.so.3.3
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032adae5000-00000032adae7000 rw- /lib64/libkrb5.so.3.3
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032adc00000-00000032adc29000 r-x /lib64/libk5crypto.so.3.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032adc29000-00000032ade29000 --- /lib64/libk5crypto.so.3.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ade29000-00000032ade2a000 r-- /lib64/libk5crypto.so.3.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ade2a000-00000032ade2b000 rw- /lib64/libk5crypto.so.3.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ade2b000-00000032ade2c000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ae000000-00000032ae00a000 r-x /lib64/libkrb5support.so.0.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ae00a000-00000032ae209000 --- /lib64/libkrb5support.so.0.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ae209000-00000032ae20a000 r-- /lib64/libkrb5support.so.0.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ae20a000-00000032ae20b000 rw- /lib64/libkrb5support.so.0.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ae400000-00000032ae402000 r-x /lib64/libkeyutils.so.1.3
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ae402000-00000032ae601000 --- /lib64/libkeyutils.so.1.3
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ae601000-00000032ae602000 r-- /lib64/libkeyutils.so.1.3
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032ae602000-00000032ae603000 rw- /lib64/libkeyutils.so.1.3
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032af000000-00000032af041000 r-x /lib64/libgssapi_krb5.so.2.2
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032af041000-00000032af241000 --- /lib64/libgssapi_krb5.so.2.2
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032af241000-00000032af242000 r-- /lib64/libgssapi_krb5.so.2.2
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032af242000-00000032af244000 rw- /lib64/libgssapi_krb5.so.2.2
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032af400000-00000032af5ba000 r-x /usr/lib64/libcrypto.so.1.0.1e
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032af5ba000-00000032af7ba000 --- /usr/lib64/libcrypto.so.1.0.1e
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032af7ba000-00000032af7d5000 r-- /usr/lib64/libcrypto.so.1.0.1e
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032af7d5000-00000032af7e1000 rw- /usr/lib64/libcrypto.so.1.0.1e
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032af7e1000-00000032af7e5000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032b0800000-00000032b0802000 r-x /lib64/libutil-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032b0802000-00000032b0a01000 --- /lib64/libutil-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032b0a01000-00000032b0a02000 r-- /lib64/libutil-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032b0a02000-00000032b0a03000 rw- /lib64/libutil-2.12.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032b0c00000-00000032b0c62000 r-x /usr/lib64/libssl.so.1.0.1e
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032b0c62000-00000032b0e62000 --- /usr/lib64/libssl.so.1.0.1e
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032b0e62000-00000032b0e66000 r-- /usr/lib64/libssl.so.1.0.1e
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00000032b0e66000-00000032b0e6c000 rw- /usr/lib64/libssl.so.1.0.1e
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03c9dfb000-00007f03c9dff000 r-x /usr/lib64/python2.6/lib-dynload/_localemodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03c9dff000-00007f03c9fff000 --- /usr/lib64/python2.6/lib-dynload/_localemodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03c9fff000-00007f03ca000000 rw- /usr/lib64/python2.6/lib-dynload/_localemodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ca000000-00007f03ca400000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ca5ed000-00007f03ca5f0000 r-x /usr/lib64/python2.6/lib-dynload/_heapq.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ca5f0000-00007f03ca7f0000 --- /usr/lib64/python2.6/lib-dynload/_heapq.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ca7f0000-00007f03ca7f2000 rw- /usr/lib64/python2.6/lib-dynload/_heapq.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ca7f2000-00007f03ca7f3000 r-x /usr/lib64/python2.6/lib-dynload/_weakref.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ca7f3000-00007f03ca9f3000 --- /usr/lib64/python2.6/lib-dynload/_weakref.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ca9f3000-00007f03ca9f4000 rw- /usr/lib64/python2.6/lib-dynload/_weakref.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ca9f4000-00007f03ca9f9000 r-x /usr/lib64/python2.6/lib-dynload/zlibmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ca9f9000-00007f03cabf8000 --- /usr/lib64/python2.6/lib-dynload/zlibmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cabf8000-00007f03cabfa000 rw- /usr/lib64/python2.6/lib-dynload/zlibmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cabfa000-00007f03cabfc000 r-x /usr/lib64/python2.6/lib-dynload/grpmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cabfc000-00007f03cadfb000 --- /usr/lib64/python2.6/lib-dynload/grpmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cadfb000-00007f03cadfc000 rw- /usr/lib64/python2.6/lib-dynload/grpmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cadfc000-00007f03cadff000 r-x /usr/lib64/python2.6/lib-dynload/_bytesio.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cadff000-00007f03caffe000 --- /usr/lib64/python2.6/lib-dynload/_bytesio.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03caffe000-00007f03cb000000 rw- /usr/lib64/python2.6/lib-dynload/_bytesio.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cb000000-00007f03cb400000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cb582000-00007f03cb586000 r-x /usr/lib64/python2.6/lib-dynload/_fileio.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cb586000-00007f03cb785000 --- /usr/lib64/python2.6/lib-dynload/_fileio.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cb785000-00007f03cb787000 rw- /usr/lib64/python2.6/lib-dynload/_fileio.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cb787000-00007f03cb78a000 r-x /usr/lib64/python2.6/lib-dynload/_json.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cb78a000-00007f03cb989000 --- /usr/lib64/python2.6/lib-dynload/_json.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cb989000-00007f03cb98a000 rw- /usr/lib64/python2.6/lib-dynload/_json.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cb98a000-00007f03cb98e000 r-x /usr/lib64/python2.6/lib-dynload/selectmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cb98e000-00007f03cbb8e000 --- /usr/lib64/python2.6/lib-dynload/selectmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cbb8e000-00007f03cbb90000 rw- /usr/lib64/python2.6/lib-dynload/selectmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cbb90000-00007f03cbb92000 r-x /usr/lib64/python2.6/lib-dynload/_bisectmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cbb92000-00007f03cbd91000 --- /usr/lib64/python2.6/lib-dynload/_bisectmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cbd91000-00007f03cbd92000 rw- /usr/lib64/python2.6/lib-dynload/_bisectmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cbd92000-00007f03cbd9a000 r-x /usr/lib64/python2.6/lib-dynload/arraymodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cbd9a000-00007f03cbf99000 --- /usr/lib64/python2.6/lib-dynload/arraymodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cbf99000-00007f03cbf9c000 rw- /usr/lib64/python2.6/lib-dynload/arraymodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cbf9c000-00007f03cbf9f000 r-x /usr/lib64/python2.6/lib-dynload/_hashlib.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cbf9f000-00007f03cc19e000 --- /usr/lib64/python2.6/lib-dynload/_hashlib.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc19e000-00007f03cc1a0000 rw- /usr/lib64/python2.6/lib-dynload/_hashlib.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc1a0000-00007f03cc1a2000 r-x /usr/lib64/python2.6/lib-dynload/fcntlmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc1a2000-00007f03cc3a2000 --- /usr/lib64/python2.6/lib-dynload/fcntlmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc3a2000-00007f03cc3a4000 rw- /usr/lib64/python2.6/lib-dynload/fcntlmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc3a4000-00007f03cc3a7000 r-x /usr/lib64/python2.6/lib-dynload/_randommodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc3a7000-00007f03cc5a6000 --- /usr/lib64/python2.6/lib-dynload/_randommodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc5a6000-00007f03cc5a7000 rw- /usr/lib64/python2.6/lib-dynload/_randommodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc5a7000-00007f03cc5ab000 r-x /usr/lib64/python2.6/lib-dynload/binascii.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc5ab000-00007f03cc7ab000 --- /usr/lib64/python2.6/lib-dynload/binascii.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc7ab000-00007f03cc7ac000 rw- /usr/lib64/python2.6/lib-dynload/binascii.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc7ac000-00007f03cc7b1000 r-x /usr/lib64/python2.6/lib-dynload/mathmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc7b1000-00007f03cc9b0000 --- /usr/lib64/python2.6/lib-dynload/mathmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc9b0000-00007f03cc9b2000 rw- /usr/lib64/python2.6/lib-dynload/mathmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc9b2000-00007f03cc9b9000 r-x /usr/lib64/libffi.so.5.0.6
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cc9b9000-00007f03ccbb9000 --- /usr/lib64/libffi.so.5.0.6
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ccbb9000-00007f03ccbba000 rw- /usr/lib64/libffi.so.5.0.6
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ccbba000-00007f03ccbd4000 r-x /usr/lib64/python2.6/lib-dynload/_ctypes.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ccbd4000-00007f03ccdd3000 --- /usr/lib64/python2.6/lib-dynload/_ctypes.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ccdd3000-00007f03ccdd8000 rw- /usr/lib64/python2.6/lib-dynload/_ctypes.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ccdd8000-00007f03ccde8000 r-x /usr/lib64/python2.6/lib-dynload/datetime.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ccde8000-00007f03ccfe8000 --- /usr/lib64/python2.6/lib-dynload/datetime.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ccfe8000-00007f03ccfec000 rw- /usr/lib64/python2.6/lib-dynload/datetime.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ccfec000-00007f03ccff7000 r-x /usr/lib64/python2.6/site-packages/ujson.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ccff7000-00007f03cd1f6000 --- /usr/lib64/python2.6/site-packages/ujson.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cd1f6000-00007f03cd1f7000 rw- /usr/lib64/python2.6/site-packages/ujson.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cd1f7000-00007f03cd1fe000 r-x /usr/lib64/python2.6/lib-dynload/_struct.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cd1fe000-00007f03cd3fe000 --- /usr/lib64/python2.6/lib-dynload/_struct.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cd3fe000-00007f03cd400000 rw- /usr/lib64/python2.6/lib-dynload/_struct.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cd400000-00007f03cd800000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cd914000-00007f03cd925000 r-x /usr/lib64/python2.6/lib-dynload/cPickle.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cd925000-00007f03cdb25000 --- /usr/lib64/python2.6/lib-dynload/cPickle.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cdb25000-00007f03cdb26000 rw- /usr/lib64/python2.6/lib-dynload/cPickle.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cdb26000-00007f03cdb27000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cdb27000-00007f03cdb2e000 r-x /usr/lib64/python2.6/lib-dynload/_ssl.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cdb2e000-00007f03cdd2d000 --- /usr/lib64/python2.6/lib-dynload/_ssl.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cdd2d000-00007f03cdd2f000 rw- /usr/lib64/python2.6/lib-dynload/_ssl.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cdd2f000-00007f03cdd3a000 r-x /usr/lib64/python2.6/lib-dynload/_socketmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cdd3a000-00007f03cdf3a000 --- /usr/lib64/python2.6/lib-dynload/_socketmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cdf3a000-00007f03cdf3e000 rw- /usr/lib64/python2.6/lib-dynload/_socketmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cdf3e000-00007f03cdf41000 r-x /usr/lib64/python2.6/site-packages/setproctitle.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03cdf41000-00007f03ce140000 --- /usr/lib64/python2.6/site-packages/setproctitle.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce140000-00007f03ce141000 rw- /usr/lib64/python2.6/site-packages/setproctitle.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce141000-00007f03ce14a000 r-x /usr/lib64/python2.6/lib-dynload/itertoolsmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce14a000-00007f03ce34a000 --- /usr/lib64/python2.6/lib-dynload/itertoolsmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce34a000-00007f03ce34e000 rw- /usr/lib64/python2.6/lib-dynload/itertoolsmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce34e000-00007f03ce356000 r-x /usr/lib64/python2.6/lib-dynload/operator.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce356000-00007f03ce555000 --- /usr/lib64/python2.6/lib-dynload/operator.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce555000-00007f03ce557000 rw- /usr/lib64/python2.6/lib-dynload/operator.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce557000-00007f03ce55d000 r-x /usr/lib64/python2.6/lib-dynload/_collectionsmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce55d000-00007f03ce75c000 --- /usr/lib64/python2.6/lib-dynload/_collectionsmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce75c000-00007f03ce75e000 rw- /usr/lib64/python2.6/lib-dynload/_collectionsmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce75e000-00007f03ce760000 r-x /usr/lib64/python2.6/lib-dynload/_functoolsmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce760000-00007f03ce960000 --- /usr/lib64/python2.6/lib-dynload/_functoolsmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce960000-00007f03ce961000 rw- /usr/lib64/python2.6/lib-dynload/_functoolsmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce961000-00007f03ce965000 r-x /usr/lib64/python2.6/lib-dynload/cStringIO.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ce965000-00007f03ceb64000 --- /usr/lib64/python2.6/lib-dynload/cStringIO.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ceb64000-00007f03ceb66000 rw- /usr/lib64/python2.6/lib-dynload/cStringIO.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ceb66000-00007f03ceb6b000 r-x /usr/lib64/python2.6/lib-dynload/stropmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ceb6b000-00007f03ced6a000 --- /usr/lib64/python2.6/lib-dynload/stropmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ced6a000-00007f03ced6c000 rw- /usr/lib64/python2.6/lib-dynload/stropmodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03ced6c000-00007f03d4c00000 r-- /usr/lib/locale/locale-archive
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03d4c00000-00007f03d5400000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03d5548000-00007f03d554b000 r-x /usr/lib64/python2.6/lib-dynload/timemodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03d554b000-00007f03d574b000 --- /usr/lib64/python2.6/lib-dynload/timemodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03d574b000-00007f03d574d000 rw- /usr/lib64/python2.6/lib-dynload/timemodule.so
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03d574d000-00007f03d5752000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03d5760000-00007f03d5762000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03d5762000-00007f03d5793000 r-x /usr/lib64/libjemalloc.so.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03d5793000-00007f03d5993000 --- /usr/lib64/libjemalloc.so.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03d5993000-00007f03d5995000 rw- /usr/lib64/libjemalloc.so.1
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007f03d5995000-00007f03d5997000 rw- 
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007ffe4c1d5000-00007ffe4c1f6000 rw- [stack]
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: 00007ffe4c1fd000-00007ffe4c1fe000 r-x [vdso]
 INFO 2019-02-16T12:53:22Z: py_spy::python_spy: map: ffffffffff600000-ffffffffff601000 r-x [vsyscall]
 INFO 2019-02-16T12:53:22Z: remoteprocess::linux: Target process is running in same namespace - not changing
thread 'main' panicked at 'Failed to find BSS section header in ELF binary', libcore/option.rs:1008:5
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::print
             at libstd/sys_common/backtrace.rs:71
             at libstd/sys_common/backtrace.rs:59
   2: std::panicking::default_hook::{{closure}}
             at libstd/panicking.rs:211
   3: std::panicking::default_hook
             at libstd/panicking.rs:227
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:476
   5: std::panicking::continue_panic_fmt
             at libstd/panicking.rs:390
   6: rust_begin_unwind
             at libstd/panicking.rs:325
   7: core::panicking::panic_fmt
             at libcore/panicking.rs:77
   8: core::option::expect_failed
             at libcore/option.rs:1008
   9: py_spy::binary_parser::parse_binary
  10: py_spy::python_spy::PythonSpy::new
  11: py_spy::python_spy::PythonSpy::retry_new
  12: py_spy::pyspy_main
  13: py_spy::main
  14: std::rt::lang_start::{{closure}}
  15: std::panicking::try::do_call
             at libstd/rt.rs:59
             at libstd/panicking.rs:310
  16: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102
  17: std::rt::lang_start_internal
             at libstd/panicking.rs:289
             at libstd/panic.rs:392
             at libstd/rt.rs:58
  18: main

@jaychoww jaychoww changed the title Can not work on python 2.6.6 It doesn't work on python 2.6.6 Feb 16, 2019
benfred added a commit that referenced this issue Jun 8, 2019
In certain cases we were failling to parse the binary using goblin, and
panicing (#90). Instead lets return
an error, which mentions the filename that failed to parse.
@jaychoww jaychoww closed this as completed Oct 9, 2022
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