Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Test failure #19

Closed
iger opened this issue Mar 11, 2012 · 4 comments
Closed

Test failure #19

iger opened this issue Mar 11, 2012 · 4 comments

Comments

@iger
Copy link

iger commented Mar 11, 2012

Tests fail with message free(): invalid pointer on i686-pc-linux-gnu ghc-7.0.4.

Provoking test is test (svdProp4 . cM)

dist/build/basic/basic
------ mult Double
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ mult Float
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ sub-trans
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ ctrans
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ lu
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ inv (linearSolve)
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ luSolve
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ cholSolve
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ luSolveLS
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests (5% trivial).
+++ OK, passed 100 tests (5% trivial).
------ pinv (linearSolveSVD)
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ det
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ svd
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
*** glibc detected *** dist/build/basic/basic: free(): invalid pointer: 0x09796790 ***
Aborted
@albertoruiz
Copy link
Collaborator

Thanks for the bug report.

Do you get this error both with interpreted and compiled code?

Could you please paste the output of ldd on the executable?

@iger
Copy link
Author

iger commented Mar 11, 2012

ldd output

    linux-gate.so.1 =>  (0xb7789000)
    libgsl.so.0 => /usr/lib/libgsl.so.0 (0xb75c7000)
    liblapack.so.0 => /usr/lib/liblapack.so.0 (0xb702e000)
    libblas.so.0 => /usr/lib/libblas.so.0 (0xb700f000)
    librt.so.1 => /lib/librt.so.1 (0xb7006000)
    libutil.so.1 => /lib/libutil.so.1 (0xb7001000)
    libdl.so.2 => /lib/libdl.so.2 (0xb6ffd000)
    libpthread.so.0 => /lib/libpthread.so.0 (0xb6fe3000)
    libgmp.so.10 => /usr/lib/libgmp.so.10 (0xb6f82000)
    libm.so.6 => /lib/libm.so.6 (0xb6f5b000)
    libc.so.6 => /lib/libc.so.6 (0xb6dcc000)
    libgslcblas.so.0 => /usr/lib/libgslcblas.so.0 (0xb6d9c000)
    libcblas.so.0 => //usr/lib/blas/atlas/libcblas.so.0 (0xb6d7b000)
    libatlas.so.0 => /usr/lib/libatlas.so.0 (0xb6b24000)
    libgfortran.so.3 => /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/libgfortran.so.3 (0xb6a53000)
    libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/libgcc_s.so.1 (0xb6a37000)
    /lib/ld-linux.so.2 (0xb778a000)

@iger
Copy link
Author

iger commented Mar 11, 2012

When I disabled all test prior to test (svdProp4 . cM) it gives the same error.

GHCi, version 7.0.4: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> :l tests
[1 of 4] Compiling Numeric.LinearAlgebra.Tests.Properties ( Numeric/LinearAlgebra/Tests/Properties.hs, interpreted )
[2 of 4] Compiling Numeric.LinearAlgebra.Tests.Instances ( Numeric/LinearAlgebra/Tests/Instances.hs, interpreted )
[3 of 4] Compiling Numeric.LinearAlgebra.Tests ( Numeric/LinearAlgebra/Tests.hs, interpreted )
[4 of 4] Compiling Main             ( tests.hs, interpreted )
Ok, modules loaded: Numeric.LinearAlgebra.Tests, Main, Numeric.LinearAlgebra.Tests.Instances, Numeric.LinearAlgebra.Tests.Properties.
*Main> runTests 20
Loading package extensible-exceptions-0.1.1.2 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package time-1.2.0.3 ... linking ... done.
Loading package random-1.0.0.3 ... linking ... done.
Loading package array-0.3.0.2 ... linking ... done.
Loading package containers-0.4.0.0 ... linking ... done.
Loading package pretty-1.0.1.2 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package QuickCheck-2.4.2 ... linking ... done.
Loading package HUnit-1.2.4.2 ... linking ... done.
Loading package bytestring-0.9.1.10 ... linking ... done.
Loading package binary-0.5.0.2 ... linking ... done.
Loading package unix-2.4.2.0 ... linking ... done.
Loading package filepath-1.2.0.0 ... linking ... done.
Loading package old-time-1.0.0.6 ... linking ... done.
Loading package directory-1.1.0.0 ... linking ... done.
Loading package process-1.0.1.5 ... linking ... done.
Loading package storable-complex-0.2.1 ... linking ... done.
Loading package primitive-0.4.0.1 ... linking ... done.
Loading package vector-0.9 ... linking ... done.
Loading package hmatrix-47.0 ... linking ... done.
*** glibc detected *** /usr/lib/ghc-7.0.4/ghc: free(): invalid pointer: 0x098db2a8 ***
Aborted

@iger
Copy link
Author

iger commented Mar 11, 2012

To get there, I have removed the #if MIN_VERSION_QuickCheck(2,x,y) alternatives,
because of:
Prelude> :l tests.hs

Numeric/LinearAlgebra/Tests/Instances.hs:37:0:
error: missing binary operator before token "("

Then, interactive tests failed on luSolve: test (linearSolveProp2 linearSolveLS . rConsist)

Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> :l tests
[1 of 4] Compiling Numeric.LinearAlgebra.Tests.Properties ( Numeric/LinearAlgebra/Tests/Properties.hs, interpreted )
[2 of 4] Compiling Numeric.LinearAlgebra.Tests.Instances ( Numeric/LinearAlgebra/Tests/Instances.hs, interpreted )
[3 of 4] Compiling Numeric.LinearAlgebra.Tests ( Numeric/LinearAlgebra/Tests.hs, interpreted )
[4 of 4] Compiling Main             ( tests.hs, interpreted )
Ok, modules loaded: Numeric.LinearAlgebra.Tests, Main, Numeric.LinearAlgebra.Tests.Instances, Numeric.LinearAlgebra.Tests.Properties.
_Main> runTests 20
Loading package extensible-exceptions-0.1.1.2 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package time-1.2.0.3 ... linking ... done.
Loading package random-1.0.0.3 ... linking ... done.
Loading package array-0.3.0.2 ... linking ... done.
Loading package containers-0.4.0.0 ... linking ... done.
Loading package pretty-1.0.1.2 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package QuickCheck-2.4.2 ... linking ... done.
Loading package HUnit-1.2.4.2 ... linking ... done.
Loading package bytestring-0.9.1.10 ... linking ... done.
Loading package binary-0.5.0.2 ... linking ... done.
Loading package unix-2.4.2.0 ... linking ... done.
Loading package filepath-1.2.0.0 ... linking ... done.
Loading package old-time-1.0.0.6 ... linking ... done.
Loading package directory-1.1.0.0 ... linking ... done.
Loading package process-1.0.1.5 ... linking ... done.
Loading package storable-complex-0.2.1 ... linking ... done.
Loading package primitive-0.4.0.1 ... linking ... done.
Loading package vector-0.9 ... linking ... done.
Loading package hmatrix-47.0 ... linking ... done.
------ mult Double
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ mult Float
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ sub-trans
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ ctrans
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ lu
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ inv (linearSolve)
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ luSolve
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ cholSolve
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
------ luSolveLS
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
 *_ On entry to Dgelqf parameter number  7 had an illegal value

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants