This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nobody
Recipients
Date 2001-04-05.17:51:32
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: NO 

With an updated version of gcc it (python2.1b1) still fails
with -O2 but in a different place.

% gcc --version
2.95.3
% uname -a
HP-UX wvenus B.10.20 A 9000/782 2009382447 two-user license
% gdb
GNU gdb 5.0
(gdb) run
Starting program:
/tmp_mnt/net/roti/wssg/hpux10x/usrlocal/packages/python2.1/Python-2.1b1/./python 
warning: Unable to find __d_pid symbol in object file.
warning: Suggest linking with /opt/langtools/lib/end.o.
warning: GDB will be unable to track shl_load/shl_unload
calls

Program received signal SIGSEGV, Segmentation fault.
0x4d984 in PyNumber_CoerceEx (pv=0x7b03c4b4, pw=0x7b03c4b0)
    at Objects/object.c:1175
1175            if (v->ob_type->tp_as_number &&
v->ob_type->tp_as_number->nb_coerce) {


If I remove the -O2 when compiling Objects/object.o then
python builds without a crash.
% gcc -c -g -Wall -Wstrict-prototypes -I. -I./Include
-DHAVE_CONFIG_H  -o Objects/object.o Objects/object.c
History
Date User Action Args
2007-08-23 13:53:28adminlinkissue406792 messages
2007-08-23 13:53:28admincreate