[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linrad] Re: Linrad 02.05 part II, svgalib version.



Ramiro Aceves wrote:
leif@xxxxxxxxxx wrote:

Hi Ramiro,

The way I locate this kind of errors is th change "DUMPFILE",
now in vernr.h, to 1.


Hello Leif,

I have done the debugging you suggested.

After some "compilation and xz iterations", I have found that the funcion that completly crashes my computer is mlockall(), called from function lir_lock_mem() in lsys.c.

lir_lock_mem() is called from main() in lmain.c


The call to mlockall() never returns and crashes the computer.



I do not undertand why this happens,  because I chose "N" to the question:
"use mlockall to prevent swapping ? (Y/N) " -----> "N"



Hi Leif,

Forgot to post the debugging "xz":


int lir_lock_mem(void)
{
int i,k;

xz("lir_lock_mem_1");


i= mlockall(MCL_CURRENT);

xz("lir_lock_mem_2");

if(i==0)return 0;
k=errno;
munlockall();
errno=k;
return i;

}


I only saw "lir_lock_mem_1" in "dmp" file.

"lir_lock_mem_2" never appeard.

Hope this helps.

Ramiro.


#############################################################
This message is sent to you because you are subscribed to
 the mailing list <linrad@xxxxxxxxxxxxxxxxxxxxx>.
To unsubscribe, E-mail to: <linrad-off@xxxxxxxxxxxxxxxxxxxxx>
To switch to the DIGEST mode, E-mail to <linrad-digest@xxxxxxxxxxxxxxxxxxxxx>
To switch to the INDEX mode, E-mail to <linrad-index@xxxxxxxxxxxxxxxxxxxxx>
Send administrative queries to  <linrad-request@xxxxxxxxxxxxxxxxxxxxx>

LINRADDARNIL