#11918: `sage --valgrind` etc. apparently broken
-----------------------+----------------------------------------------------
   Reporter:  leif     |          Owner:  tbd                              
       Type:  defect   |         Status:  new                              
   Priority:  major    |      Milestone:  sage-4.7.2                       
  Component:  scripts  |       Keywords:  --memcheck sage.supp suppressions
Work_issues:           |       Upstream:  N/A                              
   Reviewer:           |         Author:                                   
     Merged:           |   Dependencies:                                   
-----------------------+----------------------------------------------------
Description changed by leif:

Old description:

> As reported on the IRC, running `sage --valgrind` (alias `sage
> --memcheck`) is apparently broken because the suppressions file is
> missing (and its directory, `$SAGE_LOCAL/lib/valgrind/`, doesn't exist).
>
> Both `sage-valgrind` and `sage-doctest` seem to hardcode
> `$SAGE_LOCAL/lib/valgrind/sage.supp`.

New description:

 As reported on the IRC, running `sage --valgrind` (alias `sage
 --memcheck`) is apparently broken because the suppressions file is missing
 (and its directory, `$SAGE_LOCAL/lib/valgrind/`, doesn't exist).

 Both `sage-valgrind` and `sage-doctest` seem to hardcode
 `$SAGE_LOCAL/lib/valgrind/sage.supp`.

 ----

 Unless we again(?) create and ship this file, we could at least add
 {{{
 #!sh
 if [[ ! -f "$SAGE_LOCAL"/lib/valgrind/sage.supp ]]; then
    mkdir -p "$SAGE_LOCAL"/lib/valgrind
    touch "$SAGE_LOCAL"/lib/valgrind/sage.supp
 fi
 }}}
 to `sage-valgrind`.

 Using variables (perhaps also specifiable by the user) for both the
 directory and the filename would be better of course.

 And / or only pass `--suppressions=...` if the file really exists.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11918#comment:2>
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.

Reply via email to