[SciPy-user] install problem on Mandrake-8.2

Gerard Vermeulen gvermeul at polycnrs-gre.fr
Tue May 21 15:39:28 EDT 2002


On Tuesday 21 May 2002 20:30, Pearu Peterson wrote:
> On Tue, 21 May 2002, Gerard Vermeulen wrote:
> > Segmentation fault
> > [packer at venus packer]$
> >
> > BTW:
> > (python -vv shows that the problem occurs, when:
> > # trying
> > /home/packer/lib/python2.2/site-packages/scipy/optimize/_minpack.so
> > dlopen("/home/packer/lib/python2.2/site-packages/scipy/optimize/_minpack.
> >so", 2);
> > Segmentation fault)
>
> Your environment as you reported looked good to me. Here follows some
> hints for diagnostics.
>
> Can you do
>
> cd /home/packer/lib/python2.2/site-packages/scipy/optimize/
> python -c 'import _minpack'
>
[packer at venus optimize]$ python -c 'import _minpack'
Segmentation fault
[packer at venus optimize]$
>
> If it craches again then try gdb. Something like
>
> $ gdb python
> (gdb) run
>
> >>> import _minpack
>
[packer at venus optimize]$ gdb python
GNU gdb 5.1.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-mandrake-linux"...
(no debugging symbols found)...
(gdb) run
Starting program: /usr/bin/python
(no debugging symbols found)...(no debugging symbols found)...[New Thread 
1024 (LWP 3971)]
Python 2.2.1 (#1, May  8 2002, 22:31:32)
[GCC 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)] on linux-i386
Type "help", "copyright", "credits" or "license" for more information.
>>> import _minpack

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 3971)]
_dl_relocate_object () at ../sysdeps/i386/dl-machine.h:436
436     ../sysdeps/i386/dl-machine.h: No such file or directory.
        in ../sysdeps/i386/dl-machine.h

I DID CONTROL-D HERE, BECAUSE I AM A NEWBIE WITH GDB

(gdb) The program is running.  Exit anyway? (y or n) y

Hmm, guess I have to rebuild Python with debugging information,
and where can I find "../sysdeps/i386/dl-machine.h"
>
> Also WAD
>
>   http://systems.cs.uchicago.edu/wad
>
> can be useful. Eg. if you have build libwadpy then doing
>
> >>> import libwadpy
>
> WAD Enabled
>
> >>> import _minpack
>
> should show a trace when craching.
>
[packer at venus optimize]$ python
Python 2.2.1 (#1, May  8 2002, 22:31:32)
[GCC 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)] on linux-i386
Type "help", "copyright", "credits" or "license" for more information.
>>> import libwadpy
WAD Enabled
>>> import _minpack.so
WAD: Collecting debugging information...
WAD: Segmentation fault.
#8   0x400b737a in _PyImport_GetDynLoadFunc()
#7   0x400fae53 in dlopen()
#6   0x400fb21b in ?()
#5   0x4000c745 in 
_dl_catch_error(objname=0x8093090,errstring=0x8093094,operate=0x400fae70,args=0xbfffe7d0) 
in 'dl-error.c', line 153
#4   0x400fae9b in ?()
#3   0x40250dcf in _dl_open()
#2   0x4000c745 in 
_dl_catch_error(objname=0xbfffe668,errstring=0xbfffe66c,operate=0x40250790,args=0xbfffe670) 
in 'dl-error.c', line 153
#1   0x40250c69 in ?()
#0   0x4000a819 in _dl_relocate_object() in 'dl-reloc.c', line 436
[packer at venus optimize]$
>
> Do you have other compilers on your system? What ldd _minpack.so is
> showing?
>
No, I do not have other compilers on my system (thinking about installing
2.95.3 because of Atlas, though) and
[packer at venus optimize]$ ldd _minpack.so
        libm.so.6 => /lib/libm.so.6 (0x40022000)
        libc.so.6 => /lib/libc.so.6 (0x40044000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
[packer at venus optimize]$ python -c 'import _minpack'


Thanks a lot for the quick response

Gerard



More information about the SciPy-User mailing list