GNU Scientific Library - Bugs: bug #58763, gsl_root_fsolver_bren produces...
You are not allowed to post comments on this tracker with your current authentication level.
bug #58763: gsl_root_fsolver_bren produces wrong results when run under valgrind
Submitter: | Sergei Ossokine <sergei1387> | ||
Submitted: | Tue 14 Jul 2020 09:25:00 AM UTC | ||
Category: | Runtime error | Severity: | 3 - Normal |
Operating System: | Status: | None | |
Assigned to: | None | Open/Closed: | Open |
Release: | 2.5 |
Attached Files
file #49481: demo.c added by sergei1387 (1KiB - application/octet-stream - demo.c is the main file demo_fn.* define the quadratic function being used for root finding)
file #49482: demo_fn.c added by sergei1387 (666B - application/octet-stream - demo.c is the main file demo_fn.* define the quadratic function being used for root finding)
file #49483: demo_fn.h added by sergei1387 (228B - application/octet-stream - demo.c is the main file demo_fn.* define the quadratic function being used for root finding)
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2020-07-14 | sergei1387 | Attached File | - | ![]() |
Added demo.c, #49481 |
Attached File | - | ![]() |
Added demo_fn.c, #49482 | ||
Attached File | - | ![]() |
Added demo_fn.h, #49483 |
When running with valgrind to check for memory leaks, the solver incorrectly sets x_lower and x_upper which results in it exiting immediately without finding a root. This happens even with the basic demo program for 1D root-finding. This does not happen for the other 2 types of solvers, namely gsl_root_fsolver_bisection and gsl_root_fsolver_falsepos.
Here is the example of the expected program output (no valgrind):
And here is running with valgrind:
The code was compiled with
using gcc version 10.1.0