On Thu, May 19, 2011 at 12:46 PM, Artur Wroblewski <wrob...@pld-linux.org> wrote: [...] > While the os.popen does not cause my app to crash with UCS4, still > my application segfaults... just in different place. I will try to narrow it > and provide some stack trace later this evening.
At the moment the segfault can be reproduced as follows (using UCS4 based build) 1. Start Python interactive shell. 2. Run >>> import rpy2.robjects as ro >>> ro.NA_Real Sometimes it will segv on import. If not then always when accessing NA_Real. I wrote "accessing" as it fails on the following code too >>> x = ro.FloatVector([ro.NA_Real, 1, 0, ro.NA_Real]) It will not segfault if you put above code into a script and run it. gdb session: $ gdb python3 GNU gdb (GDB) PLD Linux (7.2-1) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pld-linux". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/users/wrobell/opt/bin/python3...done. (gdb) r Starting program: /home/users/wrobell/opt/bin/python3 [Thread debugging using libthread_db enabled] Python 3.2 (r32:88445, May 18 2011, 23:54:16) [GCC 4.5.3 20110515 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import rpy2.robjects as ro Detaching after fork from child process 25710. >>> ro.NA_Real Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6d62908 in ?? () (gdb) bt #0 0x00007ffff6d62908 in ?? () #1 0x00007ffff7a47ac8 in PyObject_Repr (v=0x870a10) at Objects/object.c:384 #2 0x00007ffff7a2a989 in PyFile_WriteObject (v=0x870a10, f=<value optimized out>, flags=<value optimized out>) at Objects/fileobject.c:145 #3 0x00007ffff7ad3bd7 in sys_displayhook (self=<value optimized out>, o=0x870a10) at ./Python/sysmodule.c:158 #4 0x00007ffff7a09979 in PyObject_Call (func=0x7ffff6d7a200, arg=<value optimized out>, kw=<value optimized out>) at Objects/abstract.c:2149 #5 0x00007ffff7aa0327 in PyEval_CallObjectWithKeywords (func=0x7ffff6d7a200, arg=0x7791d0, kw=<value optimized out>) at Python/ceval.c:3755 #6 0x00007ffff7aa4d03 in PyEval_EvalFrameEx (f=<value optimized out>, throwflag=<value optimized out>) at Python/ceval.c:1832 #7 0x00007ffff7aa7fe6 in PyEval_EvalCodeEx (_co=<value optimized out>, globals=<value optimized out>, locals=<value optimized out>, args=<value optimized out>, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:3311 #8 0x00007ffff7aa823b in PyEval_EvalCode (co=<value optimized out>, globals=<value optimized out>, locals=<value optimized out>) at Python/ceval.c:761 #9 0x00007ffff7acd466 in run_mod (fp=<value optimized out>, filename=0x7ffff7b3d9f7 "<stdin>", flags=0x7fffffffe660) at Python/pythonrun.c:1760 #10 PyRun_InteractiveOneFlags (fp=<value optimized out>, filename=0x7ffff7b3d9f7 "<stdin>", flags=0x7fffffffe660) at Python/pythonrun.c:1148 #11 0x00007ffff7acd70e in PyRun_InteractiveLoopFlags (fp=0x7ffff71086c0, filename=0x7ffff7b3d9f7 "<stdin>", flags=0x7fffffffe660) at Python/pythonrun.c:1038 #12 0x00007ffff7acdc1c in PyRun_AnyFileExFlags (fp=0x7ffff71086c0, filename=0x7ffff7b3d9f7 "<stdin>", closeit=0, flags=0x7fffffffe660) at Python/pythonrun.c:1007 #13 0x00007ffff7ae30a1 in run_file (argc=<value optimized out>, argv=<value optimized out>) at Modules/main.c:297 #14 Py_Main (argc=<value optimized out>, argv=<value optimized out>) at Modules/main.c:692 #15 0x0000000000400aa9 in main (argc=1, argv=0x7fffffffe7d8) at ./Modules/python.c:59 (gdb) Best regards, Artur ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list