<br><br><div class="gmail_quote">On Sat, Apr 30, 2011 at 7:37 PM, Charles R Harris <span dir="ltr"><<a href="mailto:charlesr.harris@gmail.com">charlesr.harris@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><br><div class="gmail_quote"><div class="im">On Sat, Apr 30, 2011 at 6:50 PM, Christoph Gohlke <span dir="ltr"><<a href="mailto:cgohlke@uci.edu" target="_blank">cgohlke@uci.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><br>
<br>
On 4/30/2011 4:58 PM, Charles R Harris wrote:<br>
><br>
><br>
> On Sat, Apr 30, 2011 at 5:53 PM, Charles R Harris<br>
</div><div><div></div><div>> <<a href="mailto:charlesr.harris@gmail.com" target="_blank">charlesr.harris@gmail.com</a> <mailto:<a href="mailto:charlesr.harris@gmail.com" target="_blank">charlesr.harris@gmail.com</a>>> wrote:<br>


><br>
>     <snip><br>
><br>
><br>
>         I get a null pointer access violation during numpy.test() with all<br>
>         msvc9/MKL builds for win32 (not win-amd64). The crash occurs during<br>
>         test_result_type() in test_numeric.py and can be reduced to the<br>
>         following code:<br>
><br>
>         > >> import numpy as np<br>
>         > >> np.result_type(np.array([np.float32(0)]), np.complex128(0))<br>
><br>
>         np.float64(0) and np.float16(0) also crash. Unfortunately the debug<br>
>         builds do not crash.<br>
><br>
>     This is new, right?<br>
><br>
><br>
> Does it depend on the optimization level?<br>
><br>
> Chuck<br>
><br>
<br>
</div></div>Yes it's new. The pure msvc9 builds without MKL also crash. The crash<br>
disapperars When compiling with /Od (disable optimization) instead of<br>
/Ox (maximum optimization; the default for distutils).<br>
<div><div></div><div><br></div></div></blockquote></div><div><br>So all of np.float16(0), np.float32(0), np.float64(0), etc crash? Does it depend at all on 0 as the argument, or is it the same for 1, 0.0, etc. What about string arguments like  np.float64("0"). I want to pin the location down a bit more. Too bad it doesn't crash in the debugger.<br>

<br></div></div></blockquote><div><br>I'm suspecting 566ace25f63985e0739bcc600c35336d3c66508c in master, just because it looks like the last commit to touch the right files.<br><br>Chuck <br></div></div>