[SciPy-user] [OpenOpt] Segmentation fault

Nils Wagner nwagner@iam.uni-stuttgart...
Mon Jul 14 12:21:45 CDT 2008


On Mon, 14 Jul 2008 19:06:47 +0200
  Emanuele Olivetti <emanuele@relativita.com> wrote:
> Emanuele Olivetti wrote:
>> Dear all,
>>
>> Whenever I run example 'nlp_1.py' of OpenOpt (both 
>>tarball 0.18
>> and svn) on both my linux boxes I get "Segmentation 
>>fault"!
>> Or better, I get it 9 times out of ten (due to random
>> initialization without fixed seed, I guess).
>>
>> My configuration:
>> box1: Ubuntu Gutsy, amd64 (Intel C2D)
>> box2: Ubuntu Hardy, amd64 (Intel QuadCore)
>>
>> Python, Numpy, Scipy, Matplotlib etc. are standard 
>>versions
>> from Ubuntu repositories.
>>
>> Can anyone confirm/reproduce this behavior?
>>
>> I've a report that in i386 debian it seems to work 
>>flawlessly.
>>
>>   
> 
> Here is the a full log on box1:
> ----
> /usr/lib/python2.5/site-packages/scikits/openopt/examples# 
>python nlp_1.py
> OpenOpt checks user-supplied gradient df (shape: (150,) 
>)
> according to prob.diffInt = [  1.00000000e-07]
> lines with 1 - info_user/info_numerical greater than 
>maxViolation = 0.01
> will be shown
> max(abs(df_user - df_numerical)) = 1.72111294887e-05
> (is registered in df number 67)
> ========================
> OpenOpt checks user-supplied gradient dc (shape: (2, 
>150) )
> according to prob.diffInt = [  1.00000000e-07]
> lines with 1 - info_user/info_numerical greater than 
>maxViolation = 0.01
> will be shown
> max(abs(dc_user - dc_numerical)) = 8.42460444801e-05
> (is registered in dc number 0)
> ========================
> OpenOpt checks user-supplied gradient dh (shape: (2, 
>150) )
> according to prob.diffInt = [  1.00000000e-07]
> lines with 1 - info_user/info_numerical greater than 
>maxViolation = 0.01
> will be shown
> max(abs(dh_user - dh_numerical)) = 0.00043945014113
> (is registered in dh number 149)
> ========================
> -----------------------------------------------------
> solver: ralg   problem: unnamed   goal: minimum
> iter    objFunVal    log10(maxResidual)  
>    0  8.596e+03               3.91
> Segmentation fault (core dumped)
> ----
> 
> The core dump is available here:
> http://sra.fbk.eu/people/olivetti/tmp/core.bz2
> 
> 
> HTH,
> 
> Emanuele
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user

Hi Emanuele,

I am using  r1129 of openopt and r5410 (numpy) on a 64 bit 
linux bos (open SuSe 10.2).
nlp_1.py works for me but nlp_3.py segfaults within the 
algencan part. IIRC this is a known issue.
solver: algencan   problem: nlp3   goal: maximum
  iter    objFunVal    log10(maxResidual)
     0  -1.640e+02               0.81

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47292235252112 (LWP 5534)]
0x00002b0314b4af03 in free () from /lib64/libc.so.6
(gdb) bt
#0  0x00002b0314b4af03 in free () from /lib64/libc.so.6
#1  0x00002b032a717bd9 in memFree () from 
/home/nwagner/TANGO/ALGENCAN/pywrapper.so
#2  0x00002b032a719b1b in pywrapper_solver () from 
/home/nwagner/TANGO/ALGENCAN/pywrapper.so

Nils



More information about the SciPy-user mailing list