#13960: nef.x segfaults on Cygwin
----------------------------------------------+-----------------------------
       Reporter:  jpflori                     |         Owner:  tbd             
 
           Type:  defect                      |        Status:  positive_review 
 
       Priority:  major                       |     Milestone:  sage-5.7        
 
      Component:  packages                    |    Resolution:                  
 
       Keywords:  palp nef.x cygwin segfault  |   Work issues:                  
 
Report Upstream:  N/A                         |     Reviewers:  Jean-Pierre 
Flori
        Authors:  Dmitrii Pasechnik           |     Merged in:                  
 
   Dependencies:                              |      Stopgaps:                  
 
----------------------------------------------+-----------------------------
Changes (by {'newvalue': u'Dmitrii Pasechnik', 'oldvalue': ''}):

  * status:  needs_review => positive_review
  * reviewer:  => Jean-Pierre Flori
  * author:  => Dmitrii Pasechnik


Old description:

> On my Windows 7 x64 install of 5.6.rc0 I get segfaults in nef.x.
>
> After rebuilding with CFLAGS="-g -O0" I get the following backtrace
> {{{
> Program received signal SIGSEGV, Segmentation fault.
> __chkstk_ms () at ../../../src/libgcc/config/i386/cygwin.S:173
> 173     ../../../src/libgcc/config/i386/cygwin.S: No such file or
> directory.
> (gdb) bt
> #0  __chkstk_ms () at ../../../src/libgcc/config/i386/cygwin.S:173
> #1  0x004320e5 in part_nef (_P=0x686a0008, _V=0x20064a38, _E=0x20064b40,
>     _OUT_PTL=0x6b470008, _codim=0x280c0c, _F=0x22fb7c) at Nefpart.c:774
> #2  0x0042e421 in Make_E_Poly (outFILE=0x61187720, _W=0x280de8,
>     _CP=0x7c1e0008, _CV=0x2003a0d0, _CE=0x2003a1d8, _codim=0x280c0c,
>     _F=0x28ab70, _D=0x280c10) at E_Poly.c:1327
> #3  0x00402061 in main (narg=2, fn=0x28ac40) at nef.c:291
> }}}
> on the file
> {{{
> $ cat ../nef.bug
> 3 6
>  1  0  0 -1  0  0
>  0  1  0  0 -1  0
>  0  0  1  0  0 -1
> }}}
>
> To fix this, we need to specify the stack size explicitly on Cygwin. This
> is done in the updated spkg.
>
> '''install'''
> http://boxen.math.washington.edu/home/dima/packages/palp-2.1.p1.spkg

New description:

 On my Windows 7 x64 install of 5.6.rc0 I get segfaults in nef.x.

 After rebuilding with CFLAGS="-g -O0" I get the following backtrace
 {{{
 Program received signal SIGSEGV, Segmentation fault.
 __chkstk_ms () at ../../../src/libgcc/config/i386/cygwin.S:173
 173     ../../../src/libgcc/config/i386/cygwin.S: No such file or
 directory.
 (gdb) bt
 #0  __chkstk_ms () at ../../../src/libgcc/config/i386/cygwin.S:173
 #1  0x004320e5 in part_nef (_P=0x686a0008, _V=0x20064a38, _E=0x20064b40,
     _OUT_PTL=0x6b470008, _codim=0x280c0c, _F=0x22fb7c) at Nefpart.c:774
 #2  0x0042e421 in Make_E_Poly (outFILE=0x61187720, _W=0x280de8,
     _CP=0x7c1e0008, _CV=0x2003a0d0, _CE=0x2003a1d8, _codim=0x280c0c,
     _F=0x28ab70, _D=0x280c10) at E_Poly.c:1327
 #3  0x00402061 in main (narg=2, fn=0x28ac40) at nef.c:291
 }}}
 on the file
 {{{
 $ cat ../nef.bug
 3 6
  1  0  0 -1  0  0
  0  1  0  0 -1  0
  0  0  1  0  0 -1
 }}}

 To fix this, we need to specify the stack size explicitly on Cygwin. This
 is done in the updated spkg.

 '''install'''
 http://boxen.math.washington.edu/home/jpflori/palp-2.1.p1.spkg

--

Comment:

 Here comes a reviewer version of the spkg.
 Fixed typos mentioned above, have tested this works as expected,
 everything looks clean.
 I'm putting this as positive review.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13960#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to