Open rappdw opened 7 years ago
Could I get my hands on the profile? You can send it privately to planrichi [at] gmail [dot] com
if you are not allowed to share it in public.
Sent privately... (the profile was for the docker environment)
Can you try to do pip install --pre vmprof
to install 0.4.5.dev0 and try again? The profile is broken though, you need to rerun the docker container...
This fixes the issue when running in the Debian docker container.
On OSX, however, I still see: No stack trace has been recorded (profile is empty)! Did your program not run long enough?
As a quick test you could try to run python -m vmprof --no-native ...
and see if it works. I'm investigating.
adding the --no-native
option did produce a profile usable by vmprofshow on OSX
I suspect that there is some libunwind issue. I have added a check that turns off native profiling if libunwind reports that it cannot initialize the library. (a warning is printed in this case).
Can you try 0.4.5.dev2? Does your osx have the developer command line tools?
I do have developer command line tools installed.
I installed: git+git://github.com/vmprof/vmprof-python@334bc18a0713364e8611f71863afe5540f6b3021
I don't see any warning message printed.
I still see
vmprofshow profile.osx.log
No stack trace has been recorded (profile is empty)!
uh, I'm a bit clue less. I have one or two theories, but that would be too much to ask... Is there a way so that I can reproduce the issue on my osx machine?
Hmm... I can't think of a way to easily reproduce this (running a mix of proprietary and opensource code against sensitive data).
Ok, I have scattered some warnings in the commit 8569d4b. Could I pester you to try that commit and report the warnings that are printed? Thanks.
I installed 8569d4b and it now works (without any warnings being displayed).
I rolled back to 334bc18 and verified that it does not work.
That can have two reasons:
1) If libunwind cannot walk back the stack (there needs to be just one stack entry that is not well formed), no stack was recorded in 334bc18 2) The matching between C frame <-> Python level did not succeed, and previously no stack was returned either...
I'm seeing the following in multiple executions:
8569d4b consistently succeeds (without any warnings) 334bc18 consistently fails
With v0.4.4, running
python -m vmprof -o output.log ...
results in:unknown marker 0x0
Running vmprofshow against output.log results in:
(This is running in a debian docker container.)
When running on OSX, there is no
unknown marker
message, rather the following message occurs when running vmprofshow:And this despite the program running for 70 seconds or so.