Re: Executable redefined ?

Olivier Sallou <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 10/11/2013 11:20 AM, Jan Wielemaker wrote:
> Hard to say.  If executing a script destroys the installation and
> reinstalling helps, my hypothesis is that you are running your script
> as root?  In that case run it as a normal user and you'll hopefully get
> a permission error ...  RPM also has a tool that verifies the integrety
> of the package by checking and comparing the checksum of each installed
> file.  See "man rpm" (just a guess).
>
> Hope this helps.  If it does, it might be a good lesson not to do
> regular work as root :-)
Unfortunatly, it occured again even as non root.

It seems that, for an unknown reason while testing my app, all
predicates are redefined or removed. Indeed when problem occurs, my
predicates raises unknown errors.
And all subsequent calls do the same.

If I look at exe file, it is untouched (same date than install time).

Exe is build with swipl-ld with prolog and C files. It runs fine...
until the problem occurs.

>        
>         --- Jan
>
> On 10/11/2013 10:48 AM, Olivier Sallou wrote:
>> Hi,
>> I have generated a swi-pl executable from my C and prolog files.
>>
>> Everything was working fine.
>>
>> I executed a script that went wrong (don't know what, but well... this
>> is my problem to fix). My exe takes as argument a prlog script which it
>> loads and execute on a specific predicate.
>>
>> Since this problem, all my runs fail (even the one that were fine
>> before).
>>
>> When I look at the logs, prolog says that a predicate does not exists
>> (and it did as it used to work).
>>
>> I have to reinstall my whole application (rpm packaged, on a Fedora 19,
>> swipl 6.2.6, 64 bits) to get it worked again. It looks like a "context"
>> is saved somewhere... but where and how ?
>>
>> My application do not explicitly do any "save" of the context.
>>
>> I have no idea how to debug this.
>>
>> Thanks
>>
>> Olivier
>>
>> gpg key id: 4096R/326D8438  (keyring.debian.org)
>> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
>>
>> _______________________________________________
>> SWI-Prolog mailing list
>> [email protected]
>> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>>
>
>
>

-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.