Conversation
Encountered this error:
Error: Failed to parse python binary
Reason: Malformed entity: Section 106 size (4277144) + addr (120) is out of bounds. Overflowed: false
(installed "python", which is Python 2.7.6, on an ubuntu:14.04 Docker).
I started looking in goblin, and found this commit 84062ff966c98d390
("Fix size check for section headers") which appears to fix this problem,
so I just upgraded to the newest goblin version available (although 0.3.x
also solves the issue).
|
yeah - it'd be great to keep remoteprocess / py-spy on the same version of goblin. It looks like the FreeBSD version is failing with the new version of goblin. We might need to keep FreeBSD on an older version of goblin (and file an issue with the goblin letting them know) ?. |
|
Created benfred/remoteprocess#21. I upgraded to 0.4.1, and I'll keep the py-spy freebsd goblin at 0.3.0 while letting remoteprocess use the newer one. Although, it might fail as well, we're not sure where the issue is... I'm downloading a FreeBSD image so I can test it. Alternatively, should I add in I'll also open an issue later (first trying the image to see if I can get any quick conclusions) |
|
I've set freebsd to use 0.3, and pointed remoteprocess to my branch (in fc83783) so we can see if CI passes with it. After that, we can merge the remoteprocess branch, then upgrade it here. |
|
@benfred I'm not sure what's going on anymore 😅 you can see the many tests I ran here; eventually I gave up and the last commit (d9d999c) actually undoes all of my changes and the CI still fails, although with a different error now (see https://cirrus-ci.com/task/4803482759725056). Also, in the logs we can see that it uses What do you suggest? |
Includes a yet merged fix from benfred/py-spy#407
|
I'm trying to fix the freebsd build here - #409 . I noticed that rbspy has changed from cirrus to github actions for their freebsd CI, and I'm trying the same here. |
|
hmmm - github actions also fails on freebsd https://github.com/benfred/py-spy/pull/409/checks?check_run_id=2918742055 (without any other changes). |
|
I built py-spy on a FreeBSD 13.0 machine, I get |
|
It seems like the last successful build with freebsd was just over 2 weeks ago: https://cirrus-ci.com/build/4522148225089536 . I'd like to get this working again if possible, since it hasn't been that long really. There haven't been any code changes here since then, and because we have dependencies locked in Cargo.lock we shouldn't be pulling in any new code in our dependencies either. I took a quick look comparing the latest failing build https://cirrus-ci.com/task/5692190895636480 to the last successful build and the only difference I could see was that the build switched from rust 1.52.1 to rust 1.53 . When you tested freebsd - what version of rust did you use? I'm wondering if something broke with the latest version of rust. Diff between the failing/working setup phases of those last two builds is: diff <(curl https://api.cirrus-ci.com/v1/task/5806808292917248/logs/setup.log) <(curl https://api.cirrus-ci.com/v1/task/5692190895636480/logs/setup.log)
7c7
< FreeBSD repository update completed. 30504 packages processed.
---
> FreeBSD repository update completed. 30513 packages processed.
82c82
< info: latest update on 2021-05-10, rust version 1.52.1 (9bc8c42bb 2021-05-09)
---
> info: latest update on 2021-06-17, rust version 1.53.0 (53cb7b09b 2021-06-17)
100c100
< stable-x86_64-unknown-freebsd installed - rustc 1.52.1 (9bc8c42bb 2021-05-09)
---
> stable-x86_64-unknown-freebsd installed - rustc 1.53.0 (53cb7b09b 2021-06-17)Looking at the build phase shows that we downloaded + built the same version of all dependencies - |
|
Very weird indeed.
I bootstrapped a new FreeBSD machine and used |
|
Thanks! I'm trying to switch the github actions CI to rust 1.52.1 to see what happens here https://github.com/benfred/py-spy/pull/409/checks?check_run_id=2922887307 . |
|
So - that github actions CI pr still failed - but with rust 1.52.1 the tests at least pass first |
|
Removed all commits but 4becdfe, so this PR is ready once we fix the FreeBSD issue |
|
that last commit there (that I just merged into this branch) seems to fix freebsd https://cirrus-ci.com/task/5296576210927616### |
Cool :) We can also merge benfred/remoteprocess#21 now |
* Includes a fix for py-spy from benfred/py-spy#407 * Bump gProfiler version to 1.1.3
Encountered this error:
(installed "python", which is Python 2.7.6, on an ubuntu:14.04 Docker).
I started looking in goblin, and found this commit 84062ff966c98d390
("Fix size check for section headers") which appears to fix this problem,
so I just upgraded to the newest goblin version available (although 0.3.x
also solves the issue).
Possibly solves: #405 and #403.
@benfred , I see that
remoteprocessdepends ongoblin 0.3.0, so perhaps I can upgraderemoteprocessbefore this PR, and then we won't needremoteprocessto use a different version from py-spy?