RE: Memory profiling with 4.3a

"Ollagnon, Pierre-Francois" <[email protected]>
Newsgroups gmane.lisp.scheme.bigloo
Message-ID <[email protected]>
Hi,

I made some debug this morning and I am here:

Segfault occur in bgl_init_dload when making

__dload_noarch = string_to_symbol( "__dload_noarch" );

It seems to deal with the dynamic-load of libraries but I'm afraid it starts to be a bit complex for me to debug this.

Regards,
Pierre


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Sven Hartrumpf
Sent: Wednesday, December 07, 2016 1:52 PM
To: [email protected]
Subject: Re: [bigloo] Memory profiling with 4.3a

I wrote, 2016-12-07 08:10:
> Hi.
> 
> "Ollagnon, Pierre-Francois", 2016-12-06:
>> I am trying to profile memory with bglmemrun but I can't get it work.
>> Here is my little test:
>> 
>> test.scm:
>> -----------
>> (module main
>>         (main main))
>> (define (main argv)
>>   (print "Ok"))
>> 
>> Compilation
>> ---------------
>> bigloo test.scm -g2 -o test
> 
> You should add the option -pmem .

I must admit that this does not fix the problem.
I get a similar "Segmentation fault" in the bglmemrun step of the current beta - for all programs I tried.

Manuel, any ideas?

BTW:
bglmemrun has only an -u / -unsafe / --unsafe option, but as this is the default in file bde/bmem/lib/init.c one is stuck to unsafe libraries.
Could you change
 char *bglsafe = "_u";
to
 char *bglsafe = "_s";

Ciao
Sven
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.