[Python-bugs-list] [ python-Bugs-510868 ] Solaris 2.7 make chokes.

noreply@sourceforge.net noreply@sourceforge.net
Fri, 01 Feb 2002 12:26:03 -0800


Bugs item #510868, was opened at 2002-01-30 11:33
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=510868&group_id=5470

Category: Installation
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Sharad Satsangi (sharadinfozen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Solaris 2.7 make chokes.

Initial Comment:
I'm building python2.2 on a Solaris2.7 box, an Ultra-
10.

I get a segmentation fault error at 'xreadlines' when 
I try the make.

I am not sure why.

Logs of the configuration script & make are attached. 
(in one concatenated file, I could not tell how to 
upload more than one file).

Any help will be greatly appreciated.

thanks!
-sharad.


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-02-01 12:26

Message:
Logged In: YES 
user_id=21627

Ok, gcc 3.0.3 itself could be a source of problems, but I
won't accuse that compiler prematurely (you might want to
try 2.95.x, though, if you have that readily available).

As for the gdb analysis: that it crashes is strlen is not
the problem; strlen is the innocent C library function that
computes the length of the string. Please invoke the command
"bt" when it crashes; that should tell you the backtrace
(i.e. where strlen is called from) - please report that.

If you want to investigate further: "up" brings you up a
stack-level, and "p varname" prints a variable.

This approach to debugging may take many more rounds, so I'd
understand if you are ready to give up (sunfreeware has
2.1.1 binaries). It's just that it builds fine for me (on
Solaris 8, using gcc 2.95.2), so I have no clue as to what
the problem might be. Did you pass any options to ./configure?

----------------------------------------------------------------------

Comment By: Sharad Satsangi (sharadinfozen)
Date: 2002-02-01 08:04

Message:
Logged In: YES 
user_id=443851

Thanks for the gdb tip, I've switched to the solaris7 pkg 
for gdb.  The version info for gcc does not explicitly list 
what flavor of Solaris it's built for, but the version 
number is 3.0.3, and it reads it's specs 
from /usr/local/lib/gcc-lib/sparc-sun-
solaris2.7/3.0.3/specs, which leads me to believe that it's 
built for solaris7.  

Anywho, after some freaking around with env var's & gdb, I 
got the following output (see gdbout).  It leads me to 
believe that the problem is in /usr/lib/libc.so.1, but I'm 
not sure how to replace/update this lib, or even if it is 
indeed the source of my python misery.

Any input or guidance would be appreciated.

thanks,
-sharad.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-02-01 02:36

Message:
Logged In: YES 
user_id=21627

It would be good if you could analyse this with gdb further.
I recommend to obtain a more recent copy of gdb (e.g. gdb
5.0), in particular one compiled for your system (the one
you have is compiled for Solaris 2.4). You can get get
binaries from sunfreeware.com (although they don't have gdb
5 for Solaris 7; you might want to try the 4.18 that they do
have).

The important thing is that you need to run the setup.py
under gdb. To do this, please invoke the setup.py line
manually. I.e. if the makefile invoke

ENV1=val1 ENV2=val2 python-command python-options arguments

you will need to perform the following commands

ENV1=val1
ENV2=val2
export ENV1 ENV2
gdb python-command
run python-options arguments

As a side point, what is the exact gcc version that you are
usingq (gcc -v)? If that also is not a gcc for Solaris 7, I
recommend to re-install the compiler, or use the system
compiler.

----------------------------------------------------------------------

Comment By: Sharad Satsangi (sharadinfozen)
Date: 2002-01-31 13:09

Message:
Logged In: YES 
user_id=443851

I did try gdb on the python binary, but got nothing 
interesting (you can see in the file gdbpyth).  

thanks,
-sharad.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-01-31 09:35

Message:
Logged In: YES 
user_id=21627

Can you attach to Python with gdb and see why it crashes?

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=510868&group_id=5470