[issue14374] Compiling Python 2.7.2 on HP11i PA-RISC ends with segmentation fault in Python executable

2012-03-20 Thread donchen

New submission from donchen :

Hello,
I am compiling Python2.7 on a HP11i PA-RISC machine and received a segmentation 
fault.

Platform Information
   "uname -a" = HP-UX hpdev2 B.11.11 U 9000/800 2280874925 unlimited-user 
license
 
Steps
1) uncompress Python tgz file
2) run "configure CC=aCC CXX=aCC"
3) make

Result: Segmentation fault at library generation time.
$> ranlib libpython2.7.a
   aCC -Ae  -Wl,-E -Wl,+s -o python \
   Modules/python.o \
   libpython2.7.a -lnsl -lrt -ldld  -lpthread   -lm
sh[3]: 15168 Bus error(coredump)
*** Error exit code 138
 
Analysis: core file generated by Python executable
$> file python
   python: PA-RISC2.0 shared executable dynamically linked -not stripped
$> file libpython2.7.a
   libpython2.7.a: archive file -PA-RISC2.0 relocatable library
$> strings core|more
http://mail.python.org/pipermail/python-bugs-list/2010-July/104448.html) with 
a similar topic but the compiler generated segmentation fault instead. In this 
case the core file seems
to be from Python itself. I have attached Makefile for your reference.
 
Thank you for your help!

--
components: Library (Lib)
files: Makefile
messages: 156420
nosy: donchen
priority: normal
severity: normal
status: open
title: Compiling Python 2.7.2 on HP11i PA-RISC ends with segmentation fault in 
Python executable
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file24967/Makefile

___
Python tracker 
<http://bugs.python.org/issue14374>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14374] Compiling Python 2.7.2 on HP11i PA-RISC ends with segmentation fault in Python executable

2012-03-20 Thread donchen

donchen  added the comment:

Taking away -O options in makefile still generates the crash. I have attached 
the stack below.

Can you inform me what python executable is doing at this time? From the make I 
see it is linking python so why would it be running?

Thanks

$ gdb python core
HP gdb 5.7 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 5.7 (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 10, Bus error.

#0  0x12c674 in sre_match (state=0x4010b4f0, pattern=0x0)
at ./Modules/_sre.c:846
846 switch (*ctx->pattern++) {
(gdb) where
#0  0x12c674 in sre_match (state=0x4010b4f0, pattern=0x0)
at ./Modules/_sre.c:846
#1  0x13023c in pattern_match (self=0xaad83cc4, args=0xaad83cc4, kw=0x4013ac25)
at ./Modules/_sre.c:1888
#2  0xa87d0 in PyCFunction_Call (func=0x40105c00, arg=0x4018a2bc,
kw=0x4013acd1) at Objects/methodobject.c:85
#3  0x5274c in call_function (pp_stack=0x4014de90, oparg=1074097960)
at Python/ceval.c:4013
#4  0x4fb9c in PyEval_EvalFrameEx (f=0x4018a128, throwflag=0)
at Python/ceval.c:2666
#5  0x50d30 in PyEval_EvalCodeEx (co=0x401486f0, globals=0x0,
locals=0x40056f28, args=0x401481fc, argcount=2, kws=0x401486bc, kwcount=0,
defs=0x40109d5c, defcount=1, closure=0x0) at Python/ceval.c:3253
#6  0x52974 in fast_function (func=0x0, pp_stack=0x40148398, n=384,
na=1074152536, nk=0) at Python/ceval.c:4109
#7  0x52824 in call_function (pp_stack=0x0, oparg=0) at Python/ceval.c:4034
#8  0x4fb9c in PyEval_EvalFrameEx (f=0x40148560, throwflag=0)
at Python/ceval.c:2666
#9  0x52a94 in fast_function (func=0x0, pp_stack=0x40148390, n=1075032760,
na=1075086160, nk=0) at Python/ceval.c:4099
#10 0x52824 in call_function (pp_stack=0x4010c260, oparg=1074650600)
at Python/ceval.c:4034
#11 0x4fb9c in PyEval_EvalFrameEx (f=0x40148218, throwflag=0)
at Python/ceval.c:2666
#12 0x50d30 in PyEval_EvalCodeEx (co=0x40068530, globals=0x40014258,
locals=0x8, args=0x401424b4, argcount=0, kws=0x401481f0, kwcount=0,
defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253
#13 0x52974 in fast_function (func=0x785d4ea0, pp_stack=0x785cc6e0, n=344,
na=1074152536, nk=0) at Python/ceval.c:4109
#14 0x52824 in call_function (pp_stack=0x0, oparg=1075062292)
at Python/ceval.c:4034
#15 0x4fb9c in PyEval_EvalFrameEx (f=0x401480b0, throwflag=0)
at Python/ceval.c:2666
#16 0x52a94 in fast_function (func=0x785d4ea0, pp_stack=0x0, n=344,
na=1074152536, nk=0) at Python/ceval.c:4099
#17 0x52824 in call_function (pp_stack=0x4, oparg=1074364576)
at Python/ceval.c:4034
#18 0x4fb9c in PyEval_EvalFrameEx (f=0x401424d0, throwflag=0)
at Python/ceval.c:2666
#19 0x52a94 in fast_function (func=0x785d4ea0, pp_stack=0x, n=364,
na=1074152536, nk=0) at Python/ceval.c:4099
---Type  to continue, or q  to quit---
#20 0x52824 in call_function (pp_stack=0x0, oparg=1075028952)
at Python/ceval.c:4034
#21 0x4fb9c in PyEval_EvalFrameEx (f=0x40147f30, throwflag=0)
at Python/ceval.c:2666
#22 0x52a94 in fast_function (func=0x785d4ea0, pp_stack=0x4013a3d8, n=356,
na=1074152536, nk=0) at Python/ceval.c:4099
#23 0x52824 in call_function (pp_stack=0x4, oparg=1074364576)
at Python/ceval.c:4034
#24 0x4fb9c in PyEval_EvalFrameEx (f=0x4013a830, throwflag=0)
at Python/ceval.c:2666
#25 0x52a94 in fast_function (func=0x1208e051, pp_stack=0xc941ef15,
n=1074568539, na=1074898960, nk=0) at Python/ceval.c:4099
#26 0x52824 in call_function (pp_stack=0x40137970, oparg=1073899304)
at Python/ceval.c:4034
#27 0x4fb9c in PyEval_EvalFrameEx (f=0x4011a6d8, throwflag=0)
at Python/ceval.c:2666
#28 0x52a94 in fast_function (func=0x0, pp_stack=0x400c2148, n=1074565502,
na=1074536776, nk=0) at Python/ceval.c:4099
#29 0x52824 in call_function (pp_stack=0x4, oparg=1074364896)
at Python/ceval.c:4034
#30 0x4fb9c in PyEval_EvalFrameEx (f=0x400c2010, throwflag=0)
at Python/ceval.c:2666
#31 0x50d30 in PyEval_EvalCodeEx (co=0x14, globals=0x0, locals=0x4867e2c0,
args=0x4000f144, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0,
closure=0x0) at Python/ceval.c:3253
#32 0x4c04c in PyEval_EvalCode (co=0x785c3dfe, globals=0x0, locals=0x785d4d40)
at Python/ceval.c:667
#33 0x636ec in PyImport_ExecCodeModuleEx (name=0x785cb460 "", co=0xeccd053d,
pathname=0x400242a8 "@\bP") at Python/import.c:681
#34 0x63fa0 in load_source_module (
name=0x400101d8 " Do not enter it in sys.modules.\nThe module name must 
include the full package name, if any.", pathname=0x785e0f48 "", fp=0x785e0f44)
at Python/import.c:1021
#35 0x64e80 in load_module (name=0x0, fp=0x0, pathname