You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running chalk insert on a .jar file with cosign enabled results in chalk hanging, suspected cause is file descriptor issue on read but not sure exactly.
Impact
Chalking java projects is def broken, so holding up all the zap work. Also may be some bigger bugs in the underlying file descriptor code that we are passing around when we call cosign.
Steps to Reproduce
build chalk latest
run chalk setup to generate keypairs (+ copy down the password)
CHALK_PASSWORD=[password] ./chalk insert --trace --config-file=cosign.c4m test_zap/zap-2.15.0-SNAPSHOT.jar (or whatever .jar file you happen to have handy. The files that I tested against were too large to be uploaded to github so ping me on slack if you need them because slack doesn't care.
and default cosign location found in PATH. Calling cosign manually with this input does NOT cause cosign to fail or hang, so this is not a cosign error.
After some debugging, it looks like we are hanging somewhere in sb_operate_switchboard function in nimutils/c/switchboard.c, so this looks likely to be a nimutils error. The select statement seems to be returning a -1 with bad file descriptor error.
The text was updated successfully, but these errors were encountered:
Description
Initially reported by @thc202, debugging with @miki725 and @indecisivedragon. @miki725 was unable to reproduce locally but I was.
Running
chalk insert
on a.jar
file with cosign enabled results in chalk hanging, suspected cause is file descriptor issue on read but not sure exactly.Impact
Chalking java projects is def broken, so holding up all the zap work. Also may be some bigger bugs in the underlying file descriptor code that we are passing around when we call cosign.
Steps to Reproduce
chalk setup
to generate keypairs (+ copy down the password)CHALK_PASSWORD=[password] ./chalk insert --trace --config-file=cosign.c4m test_zap/zap-2.15.0-SNAPSHOT.jar
(or whatever.jar
file you happen to have handy. The files that I tested against were too large to be uploaded to github so ping me on slack if you need them because slack doesn't care.Other Information
The arguments passed to cosign via chalk are:
with blob:
and default cosign location found in PATH. Calling
cosign
manually with this input does NOT cause cosign to fail or hang, so this is not a cosign error.After some debugging, it looks like we are hanging somewhere in
sb_operate_switchboard
function innimutils/c/switchboard.c
, so this looks likely to be a nimutils error. The select statement seems to be returning a-1
withbad file descriptor
error.The text was updated successfully, but these errors were encountered: