On Thu, Jul 1, 2010 at 3:18 PM, Dr. David Kirkby
<david.kir...@onetel.net> wrote:
> When Sage starts on my OpenSolaris machine it crashes, with a segfault and a
> message about "...or is not properly wrapped with _sig_on, _sig_off"
>
> Having a look in the source code, I believe _sig_on and _sig_off should be
> in pairs - is that correct?

They should be *called* in pairs.

> If so, should there not be an equal number of
> _sig_on's and _sig_off's in any one file?

No.   Here is an example of _sig_on and _sig_off's, which are called
in pairs, but for which there is one _sig_off and two _sig_on's.

cdef foo():
    _sig_off


def f1():
   _sig_on
   2+2
   foo()



def f2():
   _sig_on
   2+3
   foo()

> Does this indicate a problem, or am I worrying about nothing?

I'm sure we should worry more about _sig_on / _sig_off.  However, the
worries are more subtle.

William

>
> Dave
>
>
> drkir...@hawk:~/serial/sage-4.5.alpha1/spkg/standard/sage-4.5.alpha1$ ggrep
> -cR _sig_on * > /tmp/on
> drkir...@hawk:~/serial/sage-4.5.alpha1/spkg/standard/sage-4.5.alpha1$ ggrep
> -cR _sig_off * > /tmp/off
> drkir...@hawk:~/serial/sage-4.5.alpha1/spkg/standard/sage-4.5.alpha1$ diff
> /tmp/on /tmp/off
> 133c133
> < doc/en/developer/coding_in_other.rst:3
> ---
>> doc/en/developer/coding_in_other.rst:2
> 1124c1124
> < doc/output/html/en/developer/_sources/coding_in_other.txt:3
> ---
>> doc/output/html/en/developer/_sources/coding_in_other.txt:2
> 3607c3607
> < sage/plot/plot3d/index_face_set.pyx:5
> ---
>> sage/plot/plot3d/index_face_set.pyx:6
> 3610c3610
> < sage/plot/plot3d/parametric_surface.pyx:1
> ---
>> sage/plot/plot3d/parametric_surface.pyx:2
> 3884c3884
> < sage/matrix/matrix_sparse.pyx:2
> ---
>> sage/matrix/matrix_sparse.pyx:3
> 3914c3914
> < sage/matrix/matrix_rational_dense.pyx:25
> ---
>> sage/matrix/matrix_rational_dense.pyx:26
> 3992c3992
> < sage/rings/padics/padic_ZZ_pX_FM_element.pyx:6
> ---
>> sage/rings/padics/padic_ZZ_pX_FM_element.pyx:5
> 4096c4096
> < sage/rings/finite_rings/element_givaro.pyx:4
> ---
>> sage/rings/finite_rings/element_givaro.pyx:5
> 4120c4120
> < sage/rings/complex_double.pyx:6
> ---
>> sage/rings/complex_double.pyx:5
> 4662c4662
> < sage/libs/mpmath/ext_main.pyx:1
> ---
>> sage/libs/mpmath/ext_main.pyx:0
> 4680c4680
> < sage/libs/mwrank/mwrank.pyx:21
> ---
>> sage/libs/mwrank/mwrank.pyx:16
> 4687c4687
> < sage/libs/pari/gen.pyx:332
> ---
>> sage/libs/pari/gen.pyx:33
> 4721c4721
> < sage/libs/ntl/ntl_ZZ_pEX.pyx:29
> ---
>> sage/libs/ntl/ntl_ZZ_pEX.pyx:28
> 4728c4728
> < sage/libs/ntl/ntl_ZZ_pE.pyx:9
> ---
>> sage/libs/ntl/ntl_ZZ_pE.pyx:8
> 4738c4738
> < sage/libs/ntl/ntl_ZZ.pyx:7
> ---
>> sage/libs/ntl/ntl_ZZ.pyx:8
> 4744,4745c4744,4745
> < sage/libs/ntl/ntl_ZZX.pyx:23
> < sage/libs/ntl/ntl_ZZ_pX.pyx:31
> ---
>> sage/libs/ntl/ntl_ZZX.pyx:7
>> sage/libs/ntl/ntl_ZZ_pX.pyx:32
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to
> sage-devel+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to