haskell-numerics / hmatrix

Linear algebra and numerical computation
381 stars 104 forks source link

Tests give "Access violation in generated code when reading 0xffffffffffffffff" #311

Open chenyulue opened 4 years ago

chenyulue commented 4 years ago

My os is win 10, and I install hmatrix successfully. When I run hmatrix-tests by runTests 20, I get the following error messages:

------ index +++ OK, passed 100 tests. +++ OK, passed 100 tests. +++ OK, passed 100 tests. +++ OK, passed 100 tests. (4 tests) Access violation in generated code when reading 0xffffffffffffffff

Attempting to reconstruct a stack trace...

Frame Code address

  • 0x77cdd30 0x1014bd58 C:\sr\global-project.stack-work\install\f7aa4a34\lib\x86_64-windows-ghc-8.6.5\hmatrix-0.20.0.0-6e7rGtyZnFHGxVFxc9QIEM\HShmatrix-0.20.0.0-6e7rGtyZnFHGxVFxc9QIEM.o+0x29bc00 (conjugateC+0x140)
  • 0x77cdd38 0xfeeb63c C:\sr\global-project.stack-work\install\f7aa4a34\lib\x86_64-windows-ghc-8.6.5\hmatrix-0.20.0.0-6e7rGtyZnFHGxVFxc9QIEM\HShmatrix-0.20.0.0-6e7rGtyZnFHGxVFxc9QIEM.o+0x3b4e4 (hmatrixzm0zi20zi0zi0zm6e7rGtyZZnFHGxVFxc9QIEM_InternalziVectorizzed_czuconjugateQ_info+0x54)
  • 0x77cdd40 0xa31cb6ca076
  • 0x77cdd48 0x6cea630
  • 0x77cdd50 0x24
  • 0x77cdd58 0x6efe468
  • 0x77cdd60 0x49c38c36e2c

I'm a little confused about its occurrence. It's seems related to the generated code. Anyway, some test samples succeed.

idontgetoutmuch commented 4 years ago

Interesting bug - the tests in hmatrix give many false positives in any event and need a good overhaul.

HuwCampbell commented 4 years ago

Was this addressed by #325?