Closed jwnimmer-tri closed 3 months ago
Here's the write_data_filename
output from the program that was crashing 284.zip.
Thank you for letting me know @jwnimmer-tri ! I will fix this and cut a new release asap.
Works great, thanks for the quick new release!
Specifications
Description
Out-of-bounds read inside
norm_inf
. This was a regression introduced by https://github.com/cvxgrp/scs/pull/278.When running the latest SCS inside Drake under AddressSanitizer, it flags an out-of-bounds read. Investigating the situation, I can confirm that it is a true problem.
Here is a patch that fixes the problem, to help illustrate:
The change in https://github.com/cvxgrp/scs/pull/278 switched to
amax
instead oflange
, but failed to match thelange
behavior whenlen == 0
. In that caselange
is specified to return zero, but instead #278 accidentally returns the-1
th array value, which is undefined.How to reproduce
~I can extract this from our regression suite if necessary, but hopefully the bug is clear without this.~
Edit: See below.
Output
Here is the backtrace during the error: