On Thu, 2009-04-09 at 15:59 -0400, Mark Larsen wrote:
> I have an R function that returns a list of Matrices and Vectors.
> 
> I've been processing the return list like:
> 
> rpyRV = rpy2.robjects.r.someFunc()
> for property,rObj in zip([i for i in rpyRV.getnames()],[i for i in
> rpyRV]):
>   # do stuff with results
> 
> On my development box (64 bit, dual XEON) everything works correctly. 
> 
> On my production box (64 bit, dual AMDs) it segfaults:

Do you have identical distro, C compiler, libc, etc... on both
machines ?

> (Pdb) rpyRV = rpy2.robjects.r.someFunc()
> -> for property,rObj in zip([i for i in rpyRV.getnames()],[i for i in
> rpyRV]):
> (Pdb) [i for i in rpyRV.getnames()]
> ['Raw', 'DC', 'DN', 'SR', 'FPA', 'BC', 'EC', 'MOTA', 'PAT', 'MaxRFU',
> 'BgdVal']
> (Pdb) len(rpyRV)
> 11
> (Pdb) rpyRV[0]
> <RArray - Python:0x2aaaaf1b43f8 / R:0x40f3a00>
> (Pdb) rpyRV[1]
> <RArray - Python:0x2aaaaf1b4440 / R:0x4039cd0>
> (Pdb) rpyRV[2]
> <RArray - Python:0x2aaaaf1b4560 / R:0x4045100>
> (Pdb) rpyRV[3]
> <RArray - Python:0x2aaaaf1b4638 / R:0x4050530>
> (Pdb) rpyRV[4]
> Segmentation fault
> 
> Any ideas what's going on here?

A self-contained example would make the guessing easier.



L.




> Thanks,
> 
> Mark
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________ rpy-list mailing list 
> rpy-list@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/rpy-list


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to