On Wed, Jul 14, 2010 at 10:50:37AM +0200, Landry Breuil wrote:
> On Wed, Jun 23, 2010 at 08:06:02PM +0100, Federico G. Schwindt wrote:
> > Hi,
> >
> > Since the plan is to make 2.6 the default, some people have mentioned the
> > python update posted on ports@ some time ago, so below is the update as well
> > as moving the default.
> > I've not removed 2.5 for the time being as some have shown some concerns
> > and we can always kill it later.
> > So if you're interested in or using python please test the diff below,
> > specially on something else than i386 and amd64, although more testing on
> > those won't hurt.
> > I just tested it on i386 so far.
>
> Coming late to the party, but just a heads up... python 2.6 never built
> on hppa.ports.
>
> Compiling
> /usr/ports/pobj/Python-2.6.3/fake-hppa/usr/local/lib/python2.6/test/test_coercion.py
> ...
> Compiling
> /usr/ports/pobj/Python-2.6.3/fake-hppa/usr/local/lib/python2.6/test/test_collections.py
> ...
> Compiling
> /usr/ports/pobj/Python-2.6.3/fake-hppa/usr/local/lib/python2.6/test/test_colorsFloating
> point exception (core dumped)
> *** Error code 136
>
> Full build log in cvs:~landry/python-2.6.3p3.log
>
> Someone with a spare hppa and enough motivation should look into it. I
> wont.
Saw some weird warnigns while linking python binary :
c++ -pthread -L/usr/ports/pobj/Python-2.6.3/Python-2.6.3
-Wl,--export-dynamic -o python Modules/python.o libpython2.6.so.1.0
-pthread -lutil -lm
libpython2.6.so.1.0: warning: tmpnam() possibly used unsafely; consider using
mkstemp()
libpython2.6.so.1.0: warning: tempnam() possibly used unsafely; consider using
mkstemp()
libpython2.6.so.1.0: warning: strcpy() is almost always misused, please use
strlcpy()
libpython2.6.so.1.0: warning: strcat() is almost always misused, please use
strlcat()
libpython2.6.so.1.0: warning: sprintf() is often misused, please use snprintf()
lpython2.6 -pthread -lutil -lm
lpython2.6: not found
*** Error code 1 (ignored)
/usr/ports/pobj/Python-2.6.3/Python-2.6.3/Modules/mathmodule.c: In function
`math_fsum':
/usr/ports/pobj/Python-2.6.3/Python-2.6.3/Modules/mathmodule.c:574:
warning: passing arg 1 of `PyFPE_dummy' discards qualifiers from pointer target
type
cc: unrecognized option `-R/usr/local/lib'
Can someone explains me why it re-runs a configure script during make
fake ? python ports will always look deeply wrong to me.. compiling
stuff during fake.
This time, it exploded in a later test.. here's the full traceback.
Compiling
/usr/ports/pobj/Python-2.6.3/fake-hppa/usr/local/lib/python2.6/test/test_float.py
...
Floating point exception (core dumped)
*** Error code 136
Landry
Core was generated by `python'.
Program terminated with signal 8, Arithmetic exception.
#0 0x4f0b8480 in _Py_HashDouble (v=nan(0x4000000000000)) at
Objects/object.c:1066
1066 hipart = (long)v; /* take the top 32 bits */
#0 0x4f0b8480 in _Py_HashDouble (v=nan(0x4000000000000)) at
Objects/object.c:1066
intpart = -1.0000000000000001e+300
fractpart = nan(0x4000000000000)
expo = 1134398624
hipart = 2147483647
x = -967835650
#1 0x4f086284 in float_hash (v=0x43be6e48) at Objects/floatobject.c:739
No locals.
#2 0x4f0b8600 in PyObject_Hash (v=0x43be6e48) at Objects/object.c:1109
tp = (PyTypeObject *) 0x4f21976c
#3 0x4f0dd9d0 in tuplehash (v=0x4c5863f0) at Objects/tupleobject.c:299
x = -1992610770
y = -967835650
len = 6
p = (PyObject **) 0x4c586418
mult = 1495237
#4 0x4f0b8600 in PyObject_Hash (v=0x4c5863f0) at Objects/object.c:1109
tp = (PyTypeObject *) 0x4f2209f0
#5 0x4f068de0 in code_hash (co=0x4c58fc80) at Objects/codeobject.c:405
h = 1327765816
h0 = 1158909818
h1 = 736626187
h2 = 0
h3 = 1327391712
h4 = 1280901664
h5 = 1327765816
h6 = 64
#6 0x4f0b8600 in PyObject_Hash (v=0x4c58fc80) at Objects/object.c:1109
tp = (PyTypeObject *) 0x4f213c68
#7 0x4f0dd9d0 in tuplehash (v=0x4c58ebe8) at Objects/tupleobject.c:299
x = 3430008
y = 14
len = 1
p = (PyObject **) 0x4c58ebf8
mult = 1000003
#8 0x4f0b8600 in PyObject_Hash (v=0x4c58ebe8) at Objects/object.c:1109
tp = (PyTypeObject *) 0x4f2209f0
#9 0x4f0ad904 in PyDict_GetItem (op=0x40be7540, key=0x4c58ebe8) at
Objects/dictobject.c:636
hash = 2
mp = (PyDictObject *) 0x40be7540
ep = (PyDictEntry *) 0x4c58ebe8
tstate = (PyThreadState *) 0x4c58ebf4
#10 0x4f16b178 in compiler_add_o (c=0x78026588, dict=0x40be7540, o=0x4c58fc80)
at Python/compile.c:979
t = (PyObject *) 0x4c58ebe8
v = (PyObject *) 0x0
arg = 1327765816
p = (unsigned char *) 0x4 <Address 0x4 out of bounds>
q = (unsigned char *) 0x1 <Address 0x1 out of bounds>
z = {real = 1.7755497355625409e+73, imag = 1.7755501518034698e+73}
d = 6.2736689453751421e+59
real_part_zero = 0
imag_part_zero = 1280899792
#11 0x4f16b3c8 in compiler_addop_o (c=0x78026588, opcode=100, dict=0x40be7540,
o=0x4c58fc80) at Python/compile.c:1004
arg = 0
#12 0x4f16beec in compiler_make_closure (c=0x78026588, co=0x4c58fc80, args=0)
at Python/compile.c:1291
i = 1
free = 0
#13 0x4f16c79c in compiler_function (c=0x78026588, s=0x40214e68) at
Python/compile.c:1413
co = (PyCodeObject *) 0x4c58fc80
first_const = (PyObject *) 0x4f21cc50
args = 0x402147a0
decos = (asdl_seq *) 0x0
st = 0x40214e48
i = 4
n = 4
docstring = 0
#14 0x4f16fecc in compiler_visit_stmt (c=0x78026588, s=0x40214e68) at
Python/compile.c:2108
i = 0
n = 1
#15 0x4f16b8bc in compiler_body (c=0x78026588, stmts=0x42c22cb0) at
Python/compile.c:1195
i = 3
st = 0x46b83998
#16 0x4f16ccf0 in compiler_class (c=0x78026588, s=0x4144f4f8) at
Python/compile.c:1463
n = 1
i = 0
co = (PyCodeObject *) 0x4c58f2a8
str = (PyObject *) 0x42dd9e08
decos = (asdl_seq *) 0x0
#17 0x4f16fef0 in compiler_visit_stmt (c=0x78026588, s=0x4144f4f8) at
Python/compile.c:2110
i = 1
n = 1
#18 0x4f16b8bc in compiler_body (c=0x78026588, stmts=0x4c5a4010) at
Python/compile.c:1195
i = 22
st = 0x4c5a40a8
#19 0x4f16ba10 in compiler_mod (c=0x78026588, mod=0x43ddc030) at
Python/compile.c:1215
co = (PyCodeObject *) 0x41558780
addNone = 1
module = (PyObject *) 0x42e089c0
#20 0x4f168c2c in PyAST_Compile (mod=0x43ddc030, filename=0x4c5949c4
"/usr/local/lib/python2.6/test/test_float.py", flags=0x78026460,
arena=0x4486e360) at Python/compile.c:288
c = {c_filename = 0x4c5949c4
"/usr/local/lib/python2.6/test/test_float.py", c_st = 0x41558780, c_future =
0x4d98e690,
c_flags = 0x78026460, c_interactive = 0, c_nestlevel = 2, u = 0x42df1f00,
c_stack = 0x40bb5300, c_encoding = 0x0, c_arena = 0x4486e360}
co = (PyCodeObject *) 0x0
local_flags = {cf_flags = 1086259400}
merged = 0
#21 0x4f19ea90 in Py_CompileStringFlags (
str=0x4bc2f014 "\nimport unittest, struct\nimport os\nfrom test import
test_support\nimport math\nfrom math import isinf, isnan, copysign,
ldexp\nimport operator\nimport random, fractions\n\nINF = float(\"inf\")\nNAN =
float(\"na"...,
filename=0x4c5949c4 "/usr/local/lib/python2.6/test/test_float.py",
start=257, flags=0x78026460) at Python/pythonrun.c:1392
co = (PyCodeObject *) 0x4f21e198
mod = 0x43ddc030
arena = (PyArena *) 0x4486e360
#22 0x4f1517f4 in builtin_compile (self=0x0, args=0x4c581a80, kwds=0x0) at
Python/bltinmodule.c:546
str = 0x4bc2f014 "\nimport unittest, struct\nimport os\nfrom test
import test_support\nimport math\nfrom math import isinf, isnan, copysign,
ldexp\nimport operator\nimport random, fractions\n\nINF = float(\"inf\")\nNAN =
float(\"na"...
filename = 0x4c5949c4 "/usr/local/lib/python2.6/test/test_float.py"
startstr = 0x45849394 "exec"
mode = 0
dont_inherit = 0
supplied_flags = 0
cf = {cf_flags = 0}
result = (PyObject *) 0x0
cmd = (PyObject *) 0x4bc2f000
tmp = (PyObject *) 0x0
length = 34513
kwlist = {0x4f1f79c4 "source", 0x4f1f79cc "filename", 0x4f1f79d8
"mode", 0x4f1f79e0 "flags", 0x4f1f79e8 "dont_inherit", 0x0}
start = {257, 258, 256}
#23 0x4f0b3a28 in PyCFunction_Call (func=0x42df4a58, arg=0x4c581a80, kw=0x0) at
Objects/methodobject.c:85
f = (PyCFunctionObject *) 0x42df4a58
meth = @0x4f241b1a: 0
self = (PyObject *) 0x0
size = 0
#24 0x4f165440 in call_function (pp_stack=0x78026234, oparg=3) at
Python/ceval.c:3706
callargs = (PyObject *) 0x4c581a80
flags = 3
tstate = (PyThreadState *) 0x4b4a8100
na = 3
nk = 0
n = 3
pfunc = (PyObject **) 0x4dee7d74
func = (PyObject *) 0x42df4a58
x = (PyObject *) 0x1f
w = (PyObject *) 0x449a70a8
#25 0x4f160af4 in PyEval_EvalFrameEx (f=0x4dee7c10, throwflag=0) at
Python/ceval.c:2389
sp = (PyObject **) 0x4dee7d78
stack_pointer = (PyObject **) 0x4dee7d84
next_instr = (unsigned char *) 0x44848acb "}\a"
opcode = 131
oparg = 3
why = WHY_NOT
err = 0
x = (PyObject *) 0x45849380
v = (PyObject *) 0x42de6a70
w = (PyObject *) 0x4c5949b0
u = (PyObject *) 0x0
t = (PyObject *) 0x0
stream = (PyObject *) 0x0
fastlocals = (PyObject **) 0x4dee7d48
freevars = (PyObject **) 0x4dee7d74
retval = (PyObject *) 0x0
tstate = (PyThreadState *) 0x4b4a8100
co = (PyCodeObject *) 0x4c561218
instr_ub = -1
instr_lb = 0
instr_prev = -1
first_instr = (unsigned char *) 0x44848a14 "t"
names = (PyObject *) 0x42e10c00
consts = (PyObject *) 0x4c561270
#26 0x4f162ad0 in PyEval_EvalCodeEx (co=0x4c561218, globals=0x45f42390,
locals=0x0, args=0x427e0da0, argcount=4, kws=0x427e0db0,
kwcount=0, defs=0x4c565974, defcount=3, closure=0x0) at Python/ceval.c:2968
f = (PyFrameObject *) 0x4dee7c10
retval = (PyObject *) 0x0
fastlocals = (PyObject **) 0x4dee7d48
freevars = (PyObject **) 0x4dee7d74
tstate = (PyThreadState *) 0x4b4a8100
x = (PyObject *) 0x4f2110d8
u = (PyObject *) 0x0
#27 0x4f165954 in fast_function (func=0x4c578430, pp_stack=0x78025eb4, n=4,
na=4, nk=0) at Python/ceval.c:3802
co = (PyCodeObject *) 0x4c561218
globals = (PyObject *) 0x45f42390
argdefs = (PyObject *) 0x4c565968
d = (PyObject **) 0x4c565974
nd = 3
#28 0x4f1655c8 in call_function (pp_stack=0x78025eb4, oparg=4) at
Python/ceval.c:3727
na = 4
nk = 0
n = 4
pfunc = (PyObject **) 0x427e0d9c
func = (PyObject *) 0x4c578430
x = (PyObject *) 0x1ff
w = (PyObject *) 0x4ee9b8d0
#29 0x4f160af4 in PyEval_EvalFrameEx (f=0x427e0c10, throwflag=0) at
Python/ceval.c:2389
sp = (PyObject **) 0x427e0db0
stack_pointer = (PyObject **) 0x427e0db0
next_instr = (unsigned char *) 0x4d13bdd3 "}\021"
opcode = 131
oparg = 4
why = WHY_NOT
err = 0
x = (PyObject *) 0x4f2110d8
v = (PyObject *) 0x4c55e850
w = (PyObject *) 0x42dfb060
u = (PyObject *) 0x40be6980
t = (PyObject *) 0x0
stream = (PyObject *) 0x0
fastlocals = (PyObject **) 0x427e0d48
freevars = (PyObject **) 0x427e0d98
retval = (PyObject *) 0x0
tstate = (PyThreadState *) 0x4b4a8100
co = (PyCodeObject *) 0x45f363c8
instr_ub = -1
instr_lb = 0
instr_prev = -1
first_instr = (unsigned char *) 0x4d13bc14 "|\005"
names = (PyObject *) 0x42deb6b0
consts = (PyObject *) 0x4c5860d0
#30 0x4f162ad0 in PyEval_EvalCodeEx (co=0x45f363c8, globals=0x42e0b390,
locals=0x0, args=0x4b6e1ba0, argcount=6, kws=0x4b6e1bb8,
kwcount=0, defs=0x4c560f0c, defcount=5, closure=0x0) at Python/ceval.c:2968
f = (PyFrameObject *) 0x427e0c10
retval = (PyObject *) 0x0
fastlocals = (PyObject **) 0x427e0d48
freevars = (PyObject **) 0x427e0d98
tstate = (PyThreadState *) 0x4b4a8100
x = (PyObject *) 0x4a232b94
u = (PyObject *) 0x45f09410
#31 0x4f165954 in fast_function (func=0x4c578d70, pp_stack=0x78025b34, n=6,
na=6, nk=0) at Python/ceval.c:3802
co = (PyCodeObject *) 0x45f363c8
globals = (PyObject *) 0x42e0b390
argdefs = (PyObject *) 0x4c560f00
d = (PyObject **) 0x4c560f0c
nd = 5
#32 0x4f1655c8 in call_function (pp_stack=0x78025b34, oparg=6) at
Python/ceval.c:3727
na = 6
nk = 0
n = 6
pfunc = (PyObject **) 0x4b6e1b9c
func = (PyObject *) 0x4c578d70
x = (PyObject *) 0x1f
w = (PyObject *) 0x4cd1540c
#33 0x4f160af4 in PyEval_EvalFrameEx (f=0x4b6e1a10, throwflag=0) at
Python/ceval.c:2389
sp = (PyObject **) 0x4b6e1bb8
stack_pointer = (PyObject **) 0x4b6e1bb8
next_instr = (unsigned char *) 0x4d13bee2 "p\n"
opcode = 131
oparg = 6
why = WHY_NOT
err = 0
x = (PyObject *) 0x4a232b94
v = (PyObject *) 0x4a232b1c
w = (PyObject *) 0x4a232b88
u = (PyObject *) 0x4c569750
t = (PyObject *) 0x6d
stream = (PyObject *) 0x0
fastlocals = (PyObject **) 0x4b6e1b48
freevars = (PyObject **) 0x4b6e1b98
retval = (PyObject *) 0x0
tstate = (PyThreadState *) 0x4b4a8100
co = (PyCodeObject *) 0x45f363c8
instr_ub = -1
instr_lb = 0
instr_prev = -1
first_instr = (unsigned char *) 0x4d13bc14 "|\005"
names = (PyObject *) 0x42deb6b0
consts = (PyObject *) 0x4c5860d0
#34 0x4f162ad0 in PyEval_EvalCodeEx (co=0x45f363c8, globals=0x42e0b390,
locals=0x0, args=0x4cd15788, argcount=6, kws=0x4cd157a0,
kwcount=0, defs=0x4c560f0c, defcount=5, closure=0x0) at Python/ceval.c:2968
f = (PyFrameObject *) 0x4b6e1a10
retval = (PyObject *) 0x0
fastlocals = (PyObject **) 0x4b6e1b48
freevars = (PyObject **) 0x4b6e1b98
tstate = (PyThreadState *) 0x4b4a8100
x = (PyObject *) 0x4a232b94
u = (PyObject *) 0x4f241938
#35 0x4f165954 in fast_function (func=0x4c578d70, pp_stack=0x780257b4, n=6,
na=6, nk=0) at Python/ceval.c:3802
co = (PyCodeObject *) 0x45f363c8
globals = (PyObject *) 0x42e0b390
argdefs = (PyObject *) 0x4c560f00
d = (PyObject **) 0x4c560f0c
nd = 5
#36 0x4f1655c8 in call_function (pp_stack=0x780257b4, oparg=6) at
Python/ceval.c:3727
na = 6
nk = 0
n = 6
pfunc = (PyObject **) 0x4cd15784
func = (PyObject *) 0x4c578d70
x = (PyObject *) 0x1f
w = (PyObject *) 0x4cd1540c
#37 0x4f160af4 in PyEval_EvalFrameEx (f=0x4cd15610, throwflag=0) at
Python/ceval.c:2389
sp = (PyObject **) 0x4cd157a0
stack_pointer = (PyObject **) 0x4cd157a0
next_instr = (unsigned char *) 0x4d13b1be "p\n"
opcode = 131
oparg = 6
why = WHY_NOT
err = 0
x = (PyObject *) 0x4a232b94
v = (PyObject *) 0x45f3a700
w = (PyObject *) 0x4584d8b8
u = (PyObject *) 0x4a232ba0
t = (PyObject *) 0x780257d8
stream = (PyObject *) 0x0
fastlocals = (PyObject **) 0x4cd15748
freevars = (PyObject **) 0x4cd15780
retval = (PyObject *) 0x0
tstate = (PyThreadState *) 0x4b4a8100
co = (PyCodeObject *) 0x45f40698
instr_ub = -1
instr_lb = 0
instr_prev = -1
first_instr = (unsigned char *) 0x4d13b014 "d\001"
names = (PyObject *) 0x45f25cb0
consts = (PyObject *) 0x45f314e0
#38 0x4f165844 in fast_function (func=0x4c578570, pp_stack=0x78025534, n=0,
na=0, nk=0) at Python/ceval.c:3792
retval = (PyObject *) 0x0
fastlocals = (PyObject **) 0x4cd15748
i = 0
f = (PyFrameObject *) 0x4cd15610
tstate = (PyThreadState *) 0x4b4a8100
stack = (PyObject **) 0x4b71a550
co = (PyCodeObject *) 0x45f40698
globals = (PyObject *) 0x42e0b390
argdefs = (PyObject *) 0x0
d = (PyObject **) 0x0
nd = 0
#39 0x4f1655c8 in call_function (pp_stack=0x78025534, oparg=0) at
Python/ceval.c:3727
na = 0
nk = 0
n = 0
pfunc = (PyObject **) 0x4b71a54c
func = (PyObject *) 0x4c578570
x = (PyObject *) 0x4f2110d8
w = (PyObject *) 0xfffffffc
#40 0x4f160af4 in PyEval_EvalFrameEx (f=0x4b71a410, throwflag=0) at
Python/ceval.c:2389
sp = (PyObject **) 0x4b71a550
stack_pointer = (PyObject **) 0x4b71a550
next_instr = (unsigned char *) 0x45f10676 "\f\203\001"
opcode = 131
oparg = 0
why = WHY_NOT
err = 0
x = (PyObject *) 0x4c578570
v = (PyObject *) 0x42e0b390
w = (PyObject *) 0x45853160
u = (PyObject *) 0x4a232ba0
t = (PyObject *) 0x42dda050
stream = (PyObject *) 0x0
fastlocals = (PyObject **) 0x4b71a548
freevars = (PyObject **) 0x4b71a548
retval = (PyObject *) 0x0
tstate = (PyThreadState *) 0x4b4a8100
co = (PyCodeObject *) 0x45f40848
instr_ub = -1
instr_lb = 0
instr_prev = -1
first_instr = (unsigned char *) 0x45f105f4 "d"
names = (PyObject *) 0x4c586170
consts = (PyObject *) 0x4c586120
#41 0x4f162ad0 in PyEval_EvalCodeEx (co=0x45f40848, globals=0x42e0b390,
locals=0x42e0b390, args=0x0, argcount=0, kws=0x0, kwcount=0,
defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2968
f = (PyFrameObject *) 0x4b71a410
retval = (PyObject *) 0x0
fastlocals = (PyObject **) 0x4b71a548
freevars = (PyObject **) 0x4b71a548
tstate = (PyThreadState *) 0x4b4a8100
x = (PyObject *) 0x1
u = (PyObject *) 0x9
#42 0x4f15a788 in PyEval_EvalCode (co=0x45f40848, globals=0x42e0b390,
locals=0x42e0b390) at Python/ceval.c:522
No locals.
#43 0x4f19e6c8 in run_mod (mod=0x4685d298,
filename=0x780247c9
"/usr/ports/pobj/Python-2.6.3/fake-hppa/usr/local/lib/python2.6/compileall.py",
globals=0x42e0b390,
locals=0x42e0b390, flags=0x7802507c, arena=0x4486e3f0) at
Python/pythonrun.c:1335
co = (PyCodeObject *) 0x45f40848
v = (PyObject *) 0x4486e3f0
#44 0x4f19e608 in PyRun_FileExFlags (fp=0x4a0e3f50,
filename=0x780247c9
"/usr/ports/pobj/Python-2.6.3/fake-hppa/usr/local/lib/python2.6/compileall.py",
start=257, globals=0x42e0b390,
locals=0x42e0b390, closeit=1, flags=0x7802507c) at Python/pythonrun.c:1321
ret = (PyObject *) 0x0
mod = 0x4685d298
arena = (PyArena *) 0x4486e3f0
#45 0x4f19cb00 in PyRun_SimpleFileExFlags (fp=0x4a0e3f50,
filename=0x780247c9
"/usr/ports/pobj/Python-2.6.3/fake-hppa/usr/local/lib/python2.6/compileall.py",
closeit=1, flags=0x7802507c)
at Python/pythonrun.c:931
m = (PyObject *) 0x42e08950
d = (PyObject *) 0x42e0b390
v = (PyObject *) 0x4f006ad0
ext = 0x78024811 "l.py"
set_file_name = 1
ret = 1327765816
len = 76
#46 0x4f19bf8c in PyRun_AnyFileExFlags (fp=0x4a0e3f50,
filename=0x780247c9
"/usr/ports/pobj/Python-2.6.3/fake-hppa/usr/local/lib/python2.6/compileall.py",
closeit=1, flags=0x7802507c)
at Python/pythonrun.c:735
err = 0
#47 0x4f1b8c20 in Py_Main (argc=10, argv=0x780245e4) at Modules/main.c:599
c = -1
sts = -1
command = 0x0
filename = 0x780247c9
"/usr/ports/pobj/Python-2.6.3/fake-hppa/usr/local/lib/python2.6/compileall.py"
module = 0x0
fp = (FILE *) 0x4a0e3f50
p = 0x0
unbuffered = 0
skipfirstline = 0
stdin_is_interactive = 1
help = 0
version = 0
saw_unbuffered_flag = 0
cf = {cf_flags = 0}
#48 0x0000194c in main (argc=10, argv=0x780245e4) at Modules/python.c:23
No locals.