-
Notifications
You must be signed in to change notification settings - Fork 4k
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 while calling singlejar_local with pureconfig-core_2.12-0.14.1.jar #13943
Comments
FWIW,
It also shows
so this doesn't rule out JAR file containing bad data. |
FYI @cushon |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out to the triage team ( |
Is @bazelbuild/triage reachable publicly? https://github.com/orgs/bazelbuild/teams is not open. This is a report of segfault during |
@bazelbuild/triage just in case |
I'm facing same issue with the Jetty
There are no issues with Jetty |
Description of the problem / feature request:
When building a deploy JAR (über JAR) with pureconfig-core_2.12-0.14.1.jar, singlejar_local fails with a "Segmentation fault".
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
WORKSPACE
BUILD
App.java
What operating system are you running Bazel on?
macOS
What's the output of
bazel info release
?What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?Any other information, logs, or outputs that you want to share?
Please see pureconfig/pureconfig#1142.
It seems like either the JAR contains a faulty extra field size, or singlejar is parsing it wrong? Either case, from the point of view of
OutputJar::AppendToDirectoryBuffer
currently it appears to parse as follows:Likely
ef_size
should have been9
, but it reports11
, and that overruns theef->palyload_size()
into next segment and end up with nonsensical49135
. I think it would be more robust to ignore faulty fields by trying not to go over the ef_size boundary while calculating the payload_size instead of seg faulting.bazel/src/tools/singlejar/output_jar.cc
Lines 758 to 767 in 3ada002
The text was updated successfully, but these errors were encountered: