bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] Conditional jump or move depends on uninitialised value(s)


From: Nick Dowell
Subject: [Bug-gsl] Conditional jump or move depends on uninitialised value(s)
Date: Thu, 8 Aug 2019 15:07:19 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

Hi

GSL Version: 2.4 (ubuntu libgsl-dev 2.4+dfsg-6)
Hardware/OS: x86_64 GNU/Linux (Ubuntu 18.04)
Compiler: gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0

DESCRIPTION OF BUG:
The Valgrind memory checker reports the use of uninitialized variables
in the gsl_multifit_nlinear_driver function.

Otherwise the functions work as expected and the fittings produce
expected output.

SHORT EXAMPLE PROGRAM:
Use the exponential fitting example from:

https://www.gnu.org/software/gsl/doc/html/nls.html#exponential-fitting-example

For convenience this code is attached to this email.

Compile with:
gcc -o example example.c -lgsl -lgslcblas -lm

Valgrind gives warnings:
==15216== Conditional jump or move depends on uninitialised value(s)
==15216==    at 0x4EE59E8: ??? (in
/usr/lib/x86_64-linux-gnu/libgsl.so.23.0.0)
==15216==    by 0x4EEC8A2: gsl_linalg_QRPT_rcond (in
/usr/lib/x86_64-linux-gnu/libgsl.so.23.0.0)
==15216==    by 0x109561: callback (in
/home/bsms1623/src/c/bbblar/example/example)
==15216==    by 0x4F3819E: gsl_multifit_nlinear_driver (in
/usr/lib/x86_64-linux-gnu/libgsl.so.23.0.0)
==15216==    by 0x109A69: main (in
/home/bsms1623/src/c/bbblar/example/example)
==15216==
==15216== Conditional jump or move depends on uninitialised value(s)
==15216==    at 0x4EE59EA: ??? (in
/usr/lib/x86_64-linux-gnu/libgsl.so.23.0.0)
==15216==    by 0x4EEC8A2: gsl_linalg_QRPT_rcond (in
/usr/lib/x86_64-linux-gnu/libgsl.so.23.0.0)
==15216==    by 0x109561: callback (in
/home/bsms1623/src/c/bbblar/example/example)
==15216==    by 0x4F3819E: gsl_multifit_nlinear_driver (in
/usr/lib/x86_64-linux-gnu/libgsl.so.23.0.0)
==15216==    by 0x109A69: main (in
/home/bsms1623/src/c/bbblar/example/example)
==15216==

Best wishes,
Nick

Attachment: example.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]