Skip to content

Conversation

@stolk
Copy link

@stolk stolk commented Sep 25, 2025

This MR adds a toggle to run the vbe_test program with FP exceptions enabled.

This MR also fixes issues #2090 #2091 #2092 that were found with this facility:

This MR also fixes a division by zero.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 25, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@stolk stolk force-pushed the fpe branch 2 times, most recently from 5d72ffd to df7aa5d Compare October 11, 2025 03:22
@stolk
Copy link
Author

stolk commented Oct 11, 2025

Can someone please approve workflows?

Also, I've addressed the MR feedback, I think this is ready to get merged.

@stolk
Copy link
Author

stolk commented Nov 6, 2025

@danrbailey @Idclip @kmuseth

Hello, this MR solves real bugs, and I have revised the MR according to feedback.

Can one of you please approve the MR?

Thanks.

@stolk stolk changed the title Fixes several issues with FP exceptions, like overflows, NaN, etc. Fixes several issues with FP exceptions, like domain errors, div-by-zero, NaN, etc. Nov 11, 2025
@stolk
Copy link
Author

stolk commented Nov 25, 2025

Ping

stolk added 2 commits January 7, 2026 23:35
To catch FP exceptions, build as:

$ cmake -D OPENVDB_TESTS_FPE=ON ...

And to get callstacks in debugger, use:

$ gdb --args ./openvdb/openvdb/unittest/vdb_test --gtest_catch_exceptions=0

This toggle will let you reproduce issues AcademySoftwareFoundation#2090 AcademySoftwareFoundation#2091 AcademySoftwareFoundation#2092

Signed-off-by: Bram Stolk <b.stolk@gmail.com>
@stolk stolk changed the title Fixes several issues with FP exceptions, like domain errors, div-by-zero, NaN, etc. Fixes issue with FP exceptions, ~~like domain errors~~, div-by-zero, ~~NaN, etc~~. Jan 8, 2026
@stolk stolk changed the title Fixes issue with FP exceptions, ~~like domain errors~~, div-by-zero, ~~NaN, etc~~. Fixes div by zero. Adds FPE to tests. Jan 8, 2026
Copy link
Contributor

@danrbailey danrbailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you for making those changes. We'll try and get this merged in soon.

@jmlait jmlait self-requested a review January 14, 2026 21:27
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.

4 participants