Hi Stefano, and Hi Greg, On 21 January 2008 at 15:17, Stefano Costa wrote: | Package: python-rpy | Version: 1.0.1-1 | Severity: normal | | | The "small example" from python-rpy-doc | /usr/share/doc/python-rpy-doc/rpy_html/Small-example.html | | fails with a segfault: | | | | >>> from rpy import * | >>> | >>> degrees = 4 | >>> grid = r.seq(0, 10, length=100) | >>> values = [r.dchisq(x, degrees) for x in grid] | >>> r.par(ann=0) | >>> r.plot(grid, values, type='lines') | Warning message: | In plot.xy(xy, type, ...) : | plot type 'lines' will be truncated to first character | >>> Error during wrapup: C stack usage is too close to the limit | | *** caught segfault *** | address 0xb496d6cc, cause 'invalid permissions' | | | | The entire python session becomes unusable (ctrl+d, ctrl+c don't work). | Is this a bug or I'm missing something?
It is a bug, and I am stunned. Same here on Debian testing with [EMAIL PROTECTED]:~> COLUMNS=78 dpkg -l r-base-core python-rpy python2.4 python2.5 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii python-rpy 1.0.1-1 Python interface to the GNU R language and e ii python2.4 2.4.4-7 An interactive high-level object-oriented la ii python2.5 2.5.1-6 An interactive high-level object-oriented la ii r-base-core 2.6.1-1 GNU R core of statistical computing language so everything should be current. I don't know what's going on -- so forwarding to Greg. On the other hand, running the 'animation.py' and 'chisquared.py' examples still work. Faithful.py is missing its .dat file. Also, running the regression tests seem to work. So with that I turned back to the example. Removing the "type='lines'" makes it work: [EMAIL PROTECTED]:~/src/debian/Python/rpy-1.0.1/tests> cat /tmp/rpybug.py from rpy import * degrees = 4 grid = r.seq(0, 10, length=100) values = [r.dchisq(x, degrees) for x in grid] r.par(ann=0) r.plot(grid, values) [EMAIL PROTECTED]:~/src/debian/Python/rpy-1.0.1/tests> python /tmp/rpybug.py [EMAIL PROTECTED]:~/src/debian/Python/rpy-1.0.1/tests> So back to Greg: what is that make plot kill python over the type argument? Cheers, Dirk | | Best, | Steko | | --- System information. --- | Architecture: i386 | Kernel: Linux 2.6.23-1-686 | | Debian Release: lenny/sid | 500 unstable ftp.it.debian.org | 500 testing www.debian-multimedia.org | 500 testing security.eu.debian.org | 500 testing ftp.it.debian.org | 500 testing debian.gfoss.it | | --- Package information. --- | Depends (Version) | Installed | =============================-+-=========== | libc6 (>= 2.7-1) | 2.7-6 | python (<< 2.6) | 2.4.4-6 | python (>= 2.4) | 2.4.4-6 | python-central (>= 0.5.8) | 0.5.15-0.1 | python-numpy | 1:1.0.4-5 | r-base-core (>= 2.6.1) | 2.6.1-2 | | | | -- Three out of two people have difficulties with fractions. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

