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 with CPython 3.5.4 and vmprof 0.4.11 on linux #169

Open
CrazyCasta opened this issue Feb 26, 2018 · 3 comments
Open

Segmentation Fault with CPython 3.5.4 and vmprof 0.4.11 on linux #169

CrazyCasta opened this issue Feb 26, 2018 · 3 comments

Comments

@CrazyCasta
Copy link

Not really sure what's causing this. It's a somewhat complicated project with numpy and scipy and other modules. I can share the code if that's helpful. Here's a stack trace of the crash.

$ gdb -args `which python` -m vmprof --web test3.py 
GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/crazycasta/code/GPS4/ve_cpython35/bin/python...(no debugging symbols found)...done.
(gdb) c
The program is not being run.
(gdb) start
Temporary breakpoint 1 at 0x4008a0
Starting program: /home/crazycasta/code/GPS4/ve_cpython35/bin/python -m vmprof --web test3.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Temporary breakpoint 1, 0x00000000004008a0 in main ()
(gdb) c
Continuing.
[New Thread 0x7fffeefed700 (LWP 16280)]
[New Thread 0x7fffee7ec700 (LWP 16281)]
[New Thread 0x7fffebfeb700 (LWP 16282)]
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
[New Thread 0x7fffe77ea700 (LWP 16283)]
[New Thread 0x7fffe4fe9700 (LWP 16284)]
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
[New Thread 0x7fffe27e8700 (LWP 16285)]
[New Thread 0x7fffdffe7700 (LWP 16286)]
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737194673920), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737152726784), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737203066624), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737035278080), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140737077225216), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736993330944), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140736951383808), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
least_squares(1280)

Thread 1 "python" received signal SIGSEGV, Segmentation fault.
_ULx86_64_dwarf_eval_expr (c=c@entry=0x7fffffffa890, 
    addr=addr@entry=0x7fffffffa1a0, len=<optimized out>, 
    valp=valp@entry=0x7fffffffa1b8, 
    is_register=is_register@entry=0x7fffffffa1b0) at dwarf/Gexpr.c:369
369	dwarf/Gexpr.c: No such file or directory.
(gdb) 

Let me know anything else I can do to help debug this issue.

@planrich
Copy link
Contributor

would be interesting to try out the test program. can you share it? (planrichi [at] gmail (dot) com if you do not want that publically.

@CrazyCasta
Copy link
Author

No problem sharing. Here's the setup for it:

$ hg clone https://meb-1325-05.ece.utah.edu/hg/GPS/
$ cd GPS/
$ virtualenv -p python3.5 ve
$ . ve/bin/activate
(ve) $ pip install .
(ve) $ pip install vmprof
(ve) $ pip install numpy scipy sympy
(ve) $ mkdir tmp
(ve) $ cd tmp
(ve) $ cat <<END > test3.py
from math import sqrt
from gps.subsample_delay import (CosineDelayEstimator,
                                 LeastSquaresDelayEstimator,
                                 ParabolicDelayEstimator)
from codes.gps_codes import gps_code_waveforms
from util.monte_carlo.sampling import Parameters, DelayEstimatorTester

cycles_per_chip = 240

runs = []
params1 = Parameters()
params1.snr = 10
params1.resample_length = 8192
params1.cycles_per_chip = cycles_per_chip

params2 = Parameters()
params2.snr = 10
params2.resample_length = 4096
params2.cycles_per_chip = cycles_per_chip

params3 = Parameters()
params3.snr = 10
params3.resample_length = 1280
params3.cycles_per_chip = cycles_per_chip

estimator1 = CosineDelayEstimator(cycles_per_chip=cycles_per_chip)
estimator2 = LeastSquaresDelayEstimator(cycles_per_chip=cycles_per_chip)
estimator3 = ParabolicDelayEstimator(cycles_per_chip=cycles_per_chip)

runs.append(("least_squares(1280)", params3, estimator2))
runs.append(("cosine(8192)", params1, estimator1))
runs.append(("cosine(4096)", params2, estimator1))
runs.append(("parabolic(8192)", params1, estimator3))
runs.append(("parabolic(4096)", params2, estimator3))

snrs = [10, 100, 1000]

for run_name, params, estimator in runs:
    print(run_name)
    for snr in [10, 100, 1000]:
        params.snr = snr
        tester = DelayEstimatorTester(params, gps_code_waveforms[0], estimator)
        results = tester.brute_monte_carlo(100)
        print(snr, sqrt(sum([_*_ for _ in results])/len(results)),
              tester.linear_estimate())
END
(ve) $ python -m vmprof test3.py
WARNING: cannot find thread state (for thread id 140343207388928), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
WARNING: cannot find thread state (for thread id 140343064762112), sample will be thrown away
WARNING: get_stack_trace, current is NULL
...
...
WARNING: cannot find thread state (for thread id 140343115101952), sample will be thrown away
WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
least_squares(1280)
Segmentation fault
(ve) $ time python test3.py
least_squares(1280)
10 0.004228056460717026 0.004477968293931014
100 0.0016020077354351146 0.0014832102583945187
1000 4.2973251284513695e-07 1.560351379325753e-05
cosine(8192)
10 0.010532790908825895 0.0109960085332442
100 0.003173261427046141 0.003713053002335839
1000 0.00150231475489191 0.0013312263921906136
cosine(4096)
10 0.008186102380107921 0.008272451391049013
100 0.003773110977804113 0.003856250161326919
1000 0.003750022134296412 0.003723432894354233
parabolic(8192)
10 0.009965264294097768 0.011075602355206833
100 0.004061086379206456 0.003942533260190826
1000 0.0022047812869729374 0.0022476987750208333
parabolic(4096)
10 0.009745155010240059 0.009837890734725883
100 0.00648181892170268 0.006574121704181684
1000 0.006052384286943214 0.00602983952045022

real	0m44.113s
user	0m44.202s
sys	0m0.746s

The second run just showing that it does indeed run w/o vmprof and about how long it should take. To reiterate, it uses scipy code that has some sort of backend to either C or Fortran if I recall correct and has some of my own code using CFFI. Also, it'll require fftw3 with headers to compile since that's required for the CFFI module.

@CrazyCasta
Copy link
Author

A tidbit more info: I sped the program up a bit and it gets a bit further before segfaulting.

WARNING: get_stack_trace, current is NULL
WARNING: canceled buffer, no stack trace was written
least_squares(1280)
10 0.004854228813482722 0.004477968293931014
100 0.0015064449851126332 0.0014832102583945187
Segmentation fault

Just guessing that the segfault is somehow based on time/number of operations.

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