[Scilab-users] fullpath * crashes 6.1.1

Clément David Clement.David at esi-group.com
Mon Jul 26 09:26:07 CEST 2021


Hello all,

Thanks for the early report, could you please report the issue on bugzilla.scilab.org to allow a quick fix with a non-regression test ?

Regards,
Clément

From: users <users-bounces at lists.scilab.org> On Behalf Of Stéphane Mottelet
Sent: Friday, July 23, 2021 9:46 PM
To: users at lists.scilab.org
Subject: Re: [Scilab-users] fullpath * crashes 6.1.1


Hi,

It seems specific to Windows (the following test is done on macOS) :

--> fullpath("SCI\modules\core\macros\*.sci")
 ans  =

  "/Applications/scilab-6.1.1.app/Contents/share/scilab/modules/core/macros/*.sci"

Really weird, since now we have exactly the same code for Windows and others.

S.
Le 23/07/2021 à 18:54, Samuel Gougeon a écrit :
Hello,

Le 10/07/2021 à 23:37, Samuel Gougeon a écrit :
Le 10/07/2021 à 16:11, Samuel Gougeon a écrit :

Hello Federico,

I confirm this issue. It appeared in Scilab 6.1.0 and  occurs only when pwd() and the filename are on the same disk.
It comes from a change of behavior of mopen(), and so may occurs for many other functions using mopen().

Regards
Samuel


fullpath() -- that was changed in january 2020 -- is the final guilty:

--> pwd
 ans  =
  "D:\Softs"

--> fullpath("D:\test.wav")
 ans  =
  "D:\Softs\test.wav"



unlike Scilab 6.1.0, Scilab 6.1.1 on Windows crashes with

fullpath("SCI\modules\core\macros\*.sci")

The crash occurs only a) when the path exists, AND b) * is used in the filename.
It was still not the case with the dev branch of 2021-07-07, that is the last build available for windows, 7 days before fullpath was fixed for the hereabove issue.

This noticeably kills uman(), at least its refresh "r" option that is also run automatically at initialization and every change of the local ATOMS list.

And i guess many other codes.

Samuel





_______________________________________________

users mailing list

users at lists.scilab.org<mailto:users at lists.scilab.org>

http://lists.scilab.org/mailman/listinfo/users

--

Stéphane Mottelet

Ingénieur de recherche

EA 4297 Transformations Intégrées de la Matière Renouvelable

Département Génie des Procédés Industriels

Sorbonne Universités - Université de Technologie de Compiègne

CS 60319, 60203 Compiègne cedex

Tel : +33(0)344234688

http://www.utc.fr/~mottelet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210726/3e21da11/attachment.htm>


More information about the users mailing list