Linux x86-64 wheel: overlapping ELF load pages in prophet_model.bin on Linux 4.18 kernels
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 66/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- linux, python
- Domain
- build-system, release
Research direction
Start by reading the wheel build configuration and the cibuildwheel image or patchelf version used for Prophet 1.5.0; the issue does not name the configuration file. Check whether the packaged prophet_model.bin has overlapping PT_LOAD pages and compare the build tool versions mentioned here. Done means a rebuilt Linux x86-64 wheel avoids the overlapping pages and runs directly on the reported Linux 4.18 kernel.
Written by the indexing model from the issue text.
Description
The published Prophet 1.5.0 wheel’s prophet_model.bin has two PT_LOAD segments sharing the 4 KiB virtual page at 0x404000. On a AlmaLinux 8 server, direct execution of prophet_model.bin help segfaults, while invoking it through /lib64/ld-linux-x86-64.so.2 prints help.
I suspect the overlapping segments interact with the kernel ELF loading behavior discussed in this Linux commit. A Docker container on a newer host kernel may not reproduce the crash.
My understanding is that this is due to prophet using pypa/[email protected] at its wheel building step, which itself pulls patchelf 0.17.2, which produces those wheels.
Using the latest pypa/cibuildwheel available image (4.3.5 as of this writing) would pull patchelf 0.19.1 which fixes, or alternatively explicitely requiring patchelf 0.19.X (0.19.3 is the current latest) would also fix.
- Dominant language
- Python
- Stars
- 20.5k
- Forks
- 4.6k
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
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.
More from facebook/prophet
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
make_future_dataframe returns 1970 dates when `ds` is an integer columnPossibly taken @k0nnect claimed this 10 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
model_to_json drops the fitted regressor predictor; deserialized model can't predictPossibly taken @caiotheodoro claimed this 10 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
plot_components fails for logistic models with minmax scaling and no floorPossibly taken @RaphaelFakhri claimed this 38 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
All issues in facebook/prophet
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
available bug good first issue tooling
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Nixitov/Riptide-Native#816 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
SpikeInterface/spikeinterface#5008 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
teng-lin/notebooklm-py#2593 ·
Maintainers usually reply within 1 day
-
claimed-by:collie role:small-fix status:running
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Beovulfo/herd-sdlc#325 · 1 comment ·
Maintainers usually reply within 1 day