<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Ubuntu has a much shorter cycle of updates than Fedora, indeed.<br>
<br>
On 03/10/2010 06:27 AM, Charles R Harris wrote:
<blockquote
 cite="mid:e06186141003092127s6a419d9x6f4e6489a21fe203@mail.gmail.com"
 type="cite"><br>
  <br>
  <div class="gmail_quote">On Tue, Mar 9, 2010 at 5:52 PM, Johann
Cohen-Tanugi <span dir="ltr"><<a moz-do-not-send="true"
 href="mailto:cohen@lpta.in2p3.fr">cohen@lpta.in2p3.fr</a>></span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div text="#000000" bgcolor="#ffffff">more fun :<br>
[cohen@jarrett tests]$ pwd<br>
/home/cohen/sources/python/numpy/numpy/core/tests<br>
[cohen@jarrett tests]$ python -c 'import test_ufunc'
    <div class="im"><br>
python: Modules/gcmodule.c:277: visit_decref: Assertion
`gc->gc.gc_refs != 0' failed.<br>
Aborted (core dumped)<br>
    <br>
    </div>
and in the debugger:<br>
(gdb) run<br>
Starting program: /usr/bin/python <br>
warning: .dynamic section for "/lib/libpthread.so.0" is not at the
expected address
    <div class="im"><br>
warning: difference appears to be caused by prelink, adjusting
expectations<br>
    </div>
warning: .dynamic section for "/lib/libdl.so.2" is not at the expected
address
    <div class="im"><br>
warning: difference appears to be caused by prelink, adjusting
expectations<br>
    </div>
warning: .dynamic section for "/lib/libc.so.6" is not at the expected
address
    <div class="im"><br>
warning: difference appears to be caused by prelink, adjusting
expectations<br>
    </div>
[Thread debugging using libthread_db enabled]
    <div class="im"><br>
Python 2.6.2 (r262:71600, Jan 25 2010, 18:46:45) <br>
    </div>
[GCC 4.4.2 20091222 (Red Hat 4.4.2-20)] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import test_ufunc
    <div class="im"><br>
>>> <br>
>>> <br>
python: Modules/gcmodule.c:277: visit_decref: Assertion
`gc->gc.gc_refs != 0' failed.<br>
    <br>
    </div>
    <div class="im">Program received signal SIGABRT, Aborted.<br>
    </div>
0x00aab416 in __kernel_vsyscall ()<br>
Missing separate debuginfos, use: debuginfo-install
atlas-3.8.3-12.fc12.i686 libgcc-4.4.3-4.fc12.i686
libgfortran-4.4.3-4.fc12.i686<br>
(gdb) bt<br>
#0  0x00aab416 in __kernel_vsyscall ()<br>
#1  0x00159a91 in raise (sig=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64<br>
#2  0x0015b35a in abort () at abort.c:92<br>
#3  0x00152be8 in __assert_fail (assertion=<value optimized out>,
file=<value optimized out>, line=<value optimized out>,
function=<value optimized out>) at assert.c:81<br>
#4  0x0050931e in visit_decref (op=<value optimized out>,
data=<value optimized out>) at Modules/gcmodule.c:277<br>
#5  0x0047c8c2 in dict_traverse (op=<value optimized out>,
visit=<value optimized out>, arg=<value optimized out>) at
Objects/dictobject.c:2003<br>
#6  0x00509af3 in subtract_refs (generation=<value optimized
out>) at Modules/gcmodule.c:296
    <div class="im"><br>
#7  collect (generation=<value optimized out>) at
Modules/gcmodule.c:817<br>
    </div>
#8  0x0050a640 in PyGC_Collect () at Modules/gcmodule.c:1292<br>
#9  0x004fb0f0 in Py_Finalize () at Python/pythonrun.c:424<br>
#10 0x0050868f in Py_Main (argc=<value optimized out>,
argv=<value optimized out>) at Modules/main.c:625<br>
#11 0x080485c8 in main (argc=<value optimized out>,
argv=<value optimized out>) at Modules/python.c:23<br>
    <br>
which looks identical to the bt I sent to Robert earlier on.<br>
    <br>
HTH,<br>
    <font color="#888888">Johann</font>
    <div>
    <div class="h5"><br>
    <br>
On 03/10/2010 12:43 AM, Johann Cohen-Tanugi wrote:
    <blockquote type="cite"> <br>
      <br>
On 03/10/2010 12:33 AM, Johann Cohen-Tanugi wrote:
      <blockquote type="cite"> <br>
        <br>
On 03/10/2010 12:07 AM, Pauli Virtanen wrote:
        <blockquote type="cite">
          <pre>ti, 2010-03-09 kello 21:14 +0100, Johann Cohen-Tanugi kirjoitti:
  </pre>
          <blockquote type="cite">
            <pre>thinking about it, this morning there was a fedora update to python, so 
I am using 2.6.2-4.fc12.
Looks like the problem is in python itself, hence this piece of info.
    </pre>
          </blockquote>
          <pre>That the problem would be in Python is not so clear to me. Can you try
running it with the previous Python shipped by Fedora? Do you see the
problem then? What's the previous version, btw?
  </pre>
        </blockquote>
2.6.2-1 IIRC. I would have to check, and I am not sure how to either
query this information or step back one update up with yum :(<br>
        <blockquote type="cite">
          <pre>Memory errors are somewhat difficult to debug. Can you try running only
a certain subset of the tests, first

        nosetests numpy.core
  </pre>
        </blockquote>
crash<br>
        <blockquote type="cite">
          <pre>Be sure to set Pythonpath so that you get the correct Numpy version. If
it segfaults, proceed to (under numpy/core/tests)

        nosetests test_multiarray.py
        nosetests test_multiarray.py:TestNewBufferProtocol
  </pre>
        </blockquote>
neither crash, so the problem is not there....<br>
      </blockquote>
I followed your lead and tried each script and ended up with :<br>
[cohen@jarrett tests]$ nosetests test_ufunc.py<br>
.............<br>
----------------------------------------------------------------------<br>
Ran 13 tests in 1.146s<br>
      <br>
OK<br>
python: Modules/gcmodule.c:277: visit_decref: Assertion
`gc->gc.gc_refs != 0' failed.<br>
Aborted (core dumped)<br>
      <br>
so test_ufunc.py seems to be at stake<br>
      <br>
      <blockquote type="cite">
        <blockquote type="cite">
          <pre>Since the crash occurs in cyclic garbage collection, I'm doubting a bit
the numpy/core/src/multiarray/numpymemoryview.c implementation, since
that's the only part in Numpy that supports that.

Alternatively, just replace numpymemoryview.c with the attached one
which has cyclic GC stripped, and see if you still get the crash.

Cheers,
Pauli


  </pre>
          <pre><fieldset></fieldset>
_______________________________________________
NumPy-Discussion mailing list
<a moz-do-not-send="true" href="mailto:NumPy-Discussion@scipy.org"
 target="_blank">NumPy-Discussion@scipy.org</a>
<a moz-do-not-send="true"
 href="http://mail.scipy.org/mailman/listinfo/numpy-discussion"
 target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a>
  </pre>
        </blockquote>
        <br>
-- <br>
This message has been scanned for viruses and <br>
dangerous content by <a moz-do-not-send="true"
 href="http://www.mailscanner.info/" target="_blank"><b>MailScanner</b></a>,
and
is <br>
believed to be clean.
        <pre><fieldset></fieldset>
_______________________________________________
NumPy-Discussion mailing list
<a moz-do-not-send="true" href="mailto:NumPy-Discussion@scipy.org"
 target="_blank">NumPy-Discussion@scipy.org</a>
<a moz-do-not-send="true"
 href="http://mail.scipy.org/mailman/listinfo/numpy-discussion"
 target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a>
  </pre>
      </blockquote>
      <br>
    </blockquote>
    </div>
    </div>
    </div>
  </blockquote>
  <div><br>
Python 2.6.2 is rather old by now, the bugfix releases are up to 2.6.4.
I don't know that that is related, but I haven't seen any crashes on
ubuntu with 2.6.4.<br>
  <br>
Chuck <br>
  </div>
  </div>
  <br>
-- <br>
This message has been scanned for viruses and
  <br>
dangerous content by
  <a moz-do-not-send="true" href="http://www.mailscanner.info/"><b>MailScanner</b></a>,
and is
  <br>
believed to be clean.
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
NumPy-Discussion mailing list
<a class="moz-txt-link-abbreviated" href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a>
<a class="moz-txt-link-freetext" href="http://mail.scipy.org/mailman/listinfo/numpy-discussion">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a>
  </pre>
</blockquote>
</body>
</html>