#12282: Fix strcmp() with NULL argument in termcap library
------------------------+---------------------------------------------------
Reporter: jdemeyer | Owner: tbd
Type: defect | Status: needs_review
Priority: blocker | Milestone: sage-4.8
Component: packages | Keywords: sd35.5
Work_issues: | Upstream: Reported upstream. Little or no
feedback.
Reviewer: | Author: Jeroen Demeyer
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by jdemeyer):
Replying to [comment:17 leif]:
> Replying to [ticket:12282 jdemeyer]:
> > If the environment variable `TERMCAP` is set and `TERM` is not set,
then calling `tgetent()` from the termcap library produces a Segmentation
Fault because it calls `strcmp()` with a NULL argument. Sage hits this
problem because of readline, see #11970.
>
> Two further remarks:
>
> * `TERMCAP` is incidentally set by `$SAGE_ROOT/spkg/install` (like a
couple of other "abused" environment variables).
Very true. Luckily, this problem is restricted to the Sage installation
scripts, and not to running Sage (which would be a much more serious
problem).
> * readline isn't supposed to use ''Sage's'' termcap;
Why not? My guess is that we ship `termcap` precisely because `readline`
might need it.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12282#comment:18>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.