Qian,
Le dim. 24 sept. 2023 à 02:20, Qian Yun <
oldk...@gmail.com> a écrit :
[snip]
> diff --git a/src/interp/util.lisp b/src/interp/util.lisp
> index ffce3d1f..3dab3e77 100644
> --- a/src/interp/util.lisp
> +++ b/src/interp/util.lisp
> @@ -330,6 +330,7 @@
> (defun spad-save (save-file do-restart)
> (setq |$SpadServer| nil)
> (setq $openServerIfTrue t)
> + (setq $spadroot "")
> (FRICAS-LISP::save-core-restart save-file
> (if do-restart #'boot::fricas-restart nil))
> )
NICE!
Of course more tests are eventually needed but with this patch that's
even better than when I removed /home/greg/Tmp/fricas.
See my previous mail.
When I removed this directory, at startup, the banner displayed paths
with something like "../../ etc"
Now:
Checking for foreign routines
FRICAS="/usr/local/lib/fricas/target/x86_64-linux-gnu"
spad-lib="/usr/local/lib/fricas/target/x86_64-linux-gnu/lib/libspad.so"
foreign routines found
openServer result -2
FriCAS Computer Algebra System
Version: FriCAS 2023-06-17
Timestamp: Sun Sep 24 04:20:25 AM CEST 2023
-----------------------------------------------------------------------------
Issue )copyright to view copyright notices.
Issue )summary for a summary of useful system commands.
Issue )quit to leave FriCAS and return to shell.
-----------------------------------------------------------------------------
(1) -> )version
"FriCAS 2023-06-17 compiled at Sun Sep 24 04:20:25 AM CEST 2023"
(1) -> )lisp (lisp-implementation-type)
Value = "sbcl"
'lsof' shows that "gmp_wrap.so" is the good one.
Thanks again ;)
__
Greg
>
> On 9/23/23 23:16, Waldek Hebisch wrote:
> > On Sat, Sep 23, 2023 at 04:27:36PM +0200, Grégory Vanuxem wrote:
> >> UPDATE
> >>
> >> if I delete the build directory, home/greg//Tmp/fricas, all is right.
> >>
> > <snip>
> >>> └─$ /usr/local/lib/fricas/target/x86_64-linux-gnu/bin/FRICASsys
> >>> Checking for foreign routines
> >>> FRICAS="/home/greg/Tmp/fricas/target/x86_64-linux-gnu"
> >>> spad-lib="/home/greg/Tmp/fricas/target/x86_64-linux-gnu/lib/libspad.so"
> >
> > Unfortunately, this is expected effect of our current logic.
> > We probably should reset $spadroot to NIL when dumping an image.
> > Or maybe we should do this at image startup.
> >
> > Security folks consider hardcoded paths to build directories
> > as voulnerability: when FriCAS is installed systemwide person
> > who can write to hardcoded location can cause other folks
> > to execute arbitrary program instead of FriCAS.
> >
>
> --
> You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
fricas-devel...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/82eb62bf-4503-40b2-8137-425c44949791%40gmail.com.