Skip to content

Various bug fixes - #185

Merged
xiaoyeli merged 4 commits into
xiaoyeli:masterfrom
gruenich:feature/opus-identified-bugs
Oct 23, 2026
Merged

xiaoyeli merged 4 commits into
xiaoyeli:masterfrom
gruenich:feature/opus-identified-bugs

Conversation

@gruenich

@gruenich gruenich commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

I asked Claude to identify top bugs which are certain, small fix, and easy to verify. I selected the ones I was able to confirm and added some additional changes.

@xiaoyeli

Copy link
Copy Markdown
Owner

For this one: adc88b6

It's simpler just to change definition of 'void input_error()' to 'int input_error' and return 0. I can do this manually. Can you remove this PR item?

@gruenich

gruenich commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor Author

But the patch is the right approach. Returning int that does not transport any information is semantically wrong. I would prefer it the way it is now.

What is your concern? The work is done and touching many files is not necessarily a bad thing.

If you insist, I am going to adapt the commit. It provides improvements for Doxygen comments in input_error.c.

marker[perm[i]] was read before testing perm[i] >= n, and negative
entries were never rejected, so an invalid permutation caused an
out-of-bounds read instead of the intended error message.
input_error() is defined as void in input_error.c, but slu_util.h,
sp_ienv.c and the bundled CBLAS sources declared it as returning int.
Calling a function through a declaration with a different return type
is undefined behaviour. No caller uses the return value.
fp was only set by parse_command_line when -f was given, so running a
driver with a non-LA matrix type and no -f passed an uninitialized
FILE pointer to *readhb.
A debugging leftover switched dlinsolx to dreadMM, so it rejected the
Harwell-Boeing input (g20.rua) that the comment, the other precisions
and the README use.
@gruenich
gruenich force-pushed the feature/opus-identified-bugs branch from 2d0c3f8 to a58484b Compare October 22, 2026 21:13
@xiaoyeli
xiaoyeli merged commit fd13473 into xiaoyeli:master Oct 23, 2026
5 checks passed
@gruenich
gruenich deleted the feature/opus-identified-bugs branch October 23, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants