Python tests fails on HP-UX 11.11 and core dumps
Hello Experts, I tried python -4.2.1 on a HP-UX 11.11 PA machine. I was able to python. Gmake passes, gmake test results in error. The python reported that test_pty fails,when running this test alone. Can anyone help to find why core dumps at running the test_subprocess.py test. Also how can I solve it? Have anyone faced the same problem earlier. The details are given below; # ../../python test_pty.py Calling master_open() Got master_fd '3', slave_name '/dev/pts/0' Calling slave_open('/dev/pts/0') Got slave_fd '4' Traceback (most recent call last): File "test_pty.py", line 58, in ? test_basic_pty() File "test_pty.py", line 29, in test_basic_pty if not os.isatty(slave_fd): File "test_pty.py", line 50, in handle_sig raise TestFailed, "isatty hung" test.test_support.TestFailed: isatty hung # # ../../python test_subprocess.py test_args_string (__main__.ProcessTestCase) ... ok test_call_kwargs (__main__.ProcessTestCase) ... ok test_call_seq (__main__.ProcessTestCase) ... ok test_call_string (__main__.ProcessTestCase) ... ok test_communicate (__main__.ProcessTestCase) ... ok test_communicate_pipe_buf (__main__.ProcessTestCase) ... ok test_communicate_returns (__main__.ProcessTestCase) ... ok test_cwd (__main__.ProcessTestCase) ... ok test_env (__main__.ProcessTestCase) ... ok test_exceptions (__main__.ProcessTestCase) ... ok test_executable (__main__.ProcessTestCase) ... ok test_invalid_args (__main__.ProcessTestCase) ... ok test_invalid_bufsize (__main__.ProcessTestCase) ... ok test_list2cmdline (__main__.ProcessTestCase) ... ok test_no_leaking (__main__.ProcessTestCase) ... ok test_poll (__main__.ProcessTestCase) ... ok test_preexec (__main__.ProcessTestCase) ... ok test_run_abort (__main__.ProcessTestCase) ... ok test_shell_sequence (__main__.ProcessTestCase) ... ok test_shell_string (__main__.ProcessTestCase) ... ok test_stderr_filedes (__main__.ProcessTestCase) ... ok test_stderr_fileobj (__main__.ProcessTestCase) ... ok test_stderr_none (__main__.ProcessTestCase) ... ok test_stderr_pipe (__main__.ProcessTestCase) ... ok test_stdin_filedes (__main__.ProcessTestCase) ... ok test_stdin_fileobj (__main__.ProcessTestCase) ... ok test_stdin_none (__main__.ProcessTestCase) ... ok test_stdin_pipe (__main__.ProcessTestCase) ... ok test_stdout_filedes (__main__.ProcessTestCase) ... ok test_stdout_fileobj (__main__.ProcessTestCase) ... ok this bit of output is from a test of stdout in a different process ... test_stdout_none (__main__.ProcessTestCase) ... ok test_stdout_pipe (__main__.ProcessTestCase) ... ok test_stdout_stderr_file (__main__.ProcessTestCase) ... ok test_stdout_stderr_pipe (__main__.ProcessTestCase) ... ok test_universal_newlines (__main__.ProcessTestCase) ... ok test_universal_newlines_communicate (__main__.ProcessTestCase) ... ok test_wait (__main__.ProcessTestCase) ... ok test_writes_before_communicate (__main__.ProcessTestCase) ... ok ---------------------------------------------------------------------- Ran 38 tests in 8.171s Analysing the core file through GDB; # gdb ../../python core HP gdb 4.5 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00 and target hppa1.1-hp-hpux11.00. Copyright 1986 - 2001 Free Software Foundation, Inc. Hewlett-Packard Wildebeest 4.5 (based on GDB) is covered by the GNU General Public License. Type "show copying" to see the conditions to change it and/or distribute copies. Type "show warranty" for warranty/support. .. Core was generated by `python'. Program terminated with signal 6, Aborted. #0 0xc020bad0 in kill+0x10 () from /usr/lib/libc.2 (gdb) bt #0 0xc020bad0 in kill+0x10 () from /usr/lib/libc.2 #1 0xc01a655c in raise+0x24 () from /usr/lib/libc.2 #2 0xc01e69a8 in abort_C+0x160 () from /usr/lib/libc.2 #3 0xc01e6a04 in abort+0x1c () from /usr/lib/libc.2 #4 0xffbe4 in posix_abort (self=0x40029098, noargs=0x0) at ./Modules/posixmodule.c:7158 #5 0xc9b7c in PyEval_EvalFrame (f=0x40028e54) at Python/ceval.c:3531 #6 0xc01a655c in raise+0x24 () from /usr/lib/libc.2 #7 0x475b0 in freechildren (n=0x0) at Parser/node.c:131 (gdb) Build Environment; GCC - gcc version 3.4.3 HP-UX omega B.11.11 U 9000/800 ./configure --prefix=/opt/iexpress/python --disable-ipv6 --with-signal-module --with-threads Earlier, I faced problem while gmake, and make changes as per the following link; https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1071597&group_id=5470 And I was able to build Python succesfully. Also, the overall result of tests are; 250 tests OK. 1 test failed: test_pty 39 tests skipped: test_aepack test_al test_applesingle test_bsddb test_bsddb185 test_bsddb3 test_bz2 test_cd test_cl test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses test_dl test_gdbm test_gl test_imgfile test_largefile test_linuxaudiodev test_locale test_macfs test_macostools test_nis test_normalization test_ossaudiodev test_pep277 test_plistlib test_scriptpackages test_socket_ssl test_socketserver test_sunaudiodev test_tcl test_timeout test_urllib2net test_urllibnet test_winreg test_winsound 2 skips unexpected on hp-ux11: test_tcl test_bz2 gmake: *** [test] Error 1
Hi Experts, I am pretty new to Python. I have been trying to compile python on HP-UX 11.23 IPF machine. I tried to build with following configure option. ./configure --prefix=/opt/iexpress/python --enable-ipv6 --with-signal-module --with-threads machine info : HP-UX beta B.11.23 U ia64 gcc : gcc version 3.4.3 While configure, I faced the following pbm, checking ipv6 stack type... ./configure[13033]: /usr/xpg4/bin/grep: not found. unknown Then I checked the config.log to find the entires for IPV6; configure:12811: checking if --enable-ipv6 is specified configure:12822: result: yes configure:12954: checking ipv6 stack type conftest.c:78:22: features.h: No such file or directory conftest.c:78:48: /usr/local/v6/include/sys/v6config.h: No such file or directory configure:13111: result: unknown But, configure didnot produce any error mesage. So plz advice whether Python supports the IPV6 option on HP-UX. Bez, I know ipv6 differs from linux and HP-UX. If I no need to worry about this and build python. How to check whether IPV6 option works well with my python. Anyone please help to how to test the IPV6 functionality test. Is there any specific IPV6 test available with python. I could not find any specific testsuit for IPV6 under test directory. Plz share ur comments Advance Thanks, Senthil Prabu.S
On Wednesday 13 April 2005 21:11, Senthil Prabu.S wrote:
Hi Experts, I am pretty new to Python. I have been trying to compile python on HP-UX 11.23 IPF machine. I tried to build with following configure option.
./configure --prefix=/opt/iexpress/python --enable-ipv6 --with-signal-module --with-threads machine info : HP-UX beta B.11.23 U ia64 gcc : gcc version 3.4.3 While configure, I faced the following pbm,
Last time I tried, gcc on HPUX/ia64 was completely unable to build a working
version of Python - this was not the fault of Python, but simply that gcc on
that platform was utterly broken. Please try with the HP compiler instead, see
if that is any better.
Anthony
--
Anthony Baxter
Senthil Prabu.S wrote:
I tried python -4.2.1 on a HP-UX 11.11 PA machine. I was able to python. Gmake passes, gmake test results in error. The python reported that test_pty fails,when running this test alone.
Can anyone help to find why core dumps at running the *test_subprocess.py* test. Also how can I solve it?
Please understand that python-dev is not the place to get free consulting. If you are willing to investigate somewhat further, try to understand the problem, and propose patches, then I would be willing to review the patches, comment on their correctness, and perhaps integrate them into the Python CVS. As it stands, I can personally take no more time to help with HP-UX problems for the near future (say, ten years :-) I do recall that there are serious problems with pseudo-terminals in Python and HP-UX, so yes, we have heard of this before. If I knew a solution, it were applied to Python already. Please understand that this perhaps hostile-sounding response is just my personal view; if somebody else responds more gracefully, just ignore me. Regards, Martin
participants (3)
-
"Martin v. Löwis"
-
Anthony Baxter
-
Senthil Prabu.S