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
{{ message }}
Repository navigation
"crypto.createDecipher().end" results in an abort #38015
@EladKeyshawn First of all I'm not the one reporting the issue. Secondly, that's not how Node.js handles exceptions, as you said we usually try to throw an error that can be caught by the user in JavaScript. Here the program simply crashes (core dumped), which is why I labeled it as valid bug report.
I agree users should not be using it, however it's still a bug in the codebase. Maybe a solution would be to remove that deprecated API (it's deprecated since v10.0.0), but I suspect it outlines a bug in the stream implementation which is worth fixing IMHO.
@aduh95 I'm not sure it's in the stream implementation, since the error and consequently the abort is caused by the ASSERT used in string_bytes.cc, and the correct stacktrace is printed alright so it seems like the problem comes from the abort() implementation itself. More to note that this problem does not occur in OSX where I tested it.
Activity
aduh95 commentedon Apr 1, 2021
@EladKeyshawn First of all I'm not the one reporting the issue. Secondly, that's not how Node.js handles exceptions, as you said we usually try to throw an error that can be caught by the user in JavaScript. Here the program simply crashes (core dumped), which is why I labeled it as valid bug report.
EladKeyshawn commentedon Apr 1, 2021
@aduh95 what about the fact its deprecated ?
aduh95 commentedon Apr 1, 2021
I agree users should not be using it, however it's still a bug in the codebase. Maybe a solution would be to remove that deprecated API (it's deprecated since v10.0.0), but I suspect it outlines a bug in the stream implementation which is worth fixing IMHO.
EladKeyshawn commentedon Apr 1, 2021
@aduh95 I'm not sure it's in the stream implementation, since the error and consequently the abort is caused by the ASSERT used in
string_bytes.cc, and the correct stacktrace is printed alright so it seems like the problem comes from the abort() implementation itself. More to note that this problem does not occur in OSX where I tested it.aduh95 commentedon Apr 1, 2021
I'm able to reproduce on master (macOS x86_64), with both the
createDecipherandcreateDecipheriv:EladKeyshawn commentedon Apr 1, 2021
it does not reproduce on 14.x
aduh95 commentedon Apr 1, 2021
@EladKeyshawn what do you see when you run the above commands? FWIW I am able to reproduce on v14.16.0 and v15.13.0.
EladKeyshawn commentedon Apr 1, 2021
avivkeller commentedon Aug 8, 2024
#50973 removed these functions, resolving this issue.