-
Notifications
You must be signed in to change notification settings - Fork 122
readdir META-INF/versions/9: not implemented #12
Comments
No idea where the panic is coming from. Looks like it might actually be from the zip package?
Can you attach the JAR that's causing the "not implemented" to this issue? If not, can you run
|
I corrected the command you suggested (typo):
|
As crazy as this sounds, this might be a bug in archive/zip. We've hit those before. Lines 70 to 77 in edf4af1
Panic is coming from https://github.com/golang/go/blob/go1.17/src/archive/zip/reader.go#L800 Will probably need access to a reproducer to be able to debug further. |
Maybe catch the error, report it, and continue? |
Opened golang/go#50390 |
The code was changed to look for returned error messages, and did not include a try/catch, probably because Go does not support that construct. Consequently, the program still can blow up, like this just now:
|
The readdir error was fixed. Go has a recover() mechanism, but I don't think there's anything we want do about the panic without a reproducer. Again if you have a reproducer, upstream would be very interested, since archive/zip isn't supposed to panic. https://go.dev/blog/defer-panic-and-recover With #20, we've switched away from using fs.WalkDir which may also help. |
The text was updated successfully, but these errors were encountered: