Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #111897

Re: NumPy frombuffer giving nonsense values when reading C float array on Windows

From Christian Gollwitzer <auriocus@gmx.de>
Newsgroups comp.lang.python
Subject Re: NumPy frombuffer giving nonsense values when reading C float array on Windows
Date 2016-07-26 17:36 +0200
Organization A noiseless patient Spider
Message-ID <nn801l$4it$1@dont-email.me> (permalink)
References <4481593b-69fe-4314-aca8-50b783847212@googlegroups.com> <nn7rjt$e2j$1@ger.gmane.org> <mailman.127.1469542860.22221.python-list@python.org> <a51f7704-b5ac-40c4-8100-6ac65cb60938@googlegroups.com>

Show all headers | View raw


Am 26.07.16 um 17:09 schrieb sth:
> it's difficult to test a .dylib / .so using valgrind

Why is it difficult? If you have a python script such that

	python mytests.py

loads the .so and runs the tests, then

	valgrind --tool=memcheck python mytests.py

should work. This should immediately spit out an error in case that 
numpy accesses deleted memory.

Of course debug information should be enabled when compiling the .so for 
more useful output, and it could be helpful to have it for numpy/python, 
too, but that's not a requirement.

	Christian

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

NumPy frombuffer giving nonsense values when reading C float array on Windows urschrei@gmail.com - 2016-07-26 05:06 -0700
  Re: NumPy frombuffer giving nonsense values when reading C float array on Windows Peter Otten <__peter__@web.de> - 2016-07-26 16:20 +0200
    Re: NumPy frombuffer giving nonsense values when reading C float array on Windows sth <urschrei@gmail.com> - 2016-07-26 08:09 -0700
      Re: NumPy frombuffer giving nonsense values when reading C float array on Windows Christian Gollwitzer <auriocus@gmx.de> - 2016-07-26 17:36 +0200
        Re: NumPy frombuffer giving nonsense values when reading C float array on Windows sth <urschrei@gmail.com> - 2016-07-26 09:47 -0700
  Re: NumPy frombuffer giving nonsense values when reading C float array on Windows eryk sun <eryksun@gmail.com> - 2016-07-26 18:09 +0000
    Re: NumPy frombuffer giving nonsense values when reading C float array on Windows sth <urschrei@gmail.com> - 2016-07-26 11:31 -0700
      Re: NumPy frombuffer giving nonsense values when reading C float array on Windows eryk sun <eryksun@gmail.com> - 2016-07-26 22:42 +0000

csiph-web