man swapcontext:masalapianta ha scritto:[
la cosa piu' sicura e' non dare ascolto alle leggende o ai teoremi costruiti su una deduzione arbitraria basata su 3 casi (le cui cause non sono state accertate); se sei a conoscenza di un bug della virtual memory, scrivi al mainteiner dettagliando il codice incriminato, altrimenti evita di mettere in giro leggende metropolitane.
When this context is later activated (using setcontext() or swapcontext()) the function func is called, and passed the series of integer (int) arguments that follow argc; the caller must specify the number of these arguments in argc. When this function returns, the successor context is activated.
The interpretation of ucp->uc_stack is just as in sigaltstack(2), namely, this struct contains the start and length of a memory area to be used as the stack, regardless of the direction of growth of the stack. Thus, it is not necessary for the user program to worry about this direction.
man sigaltstack:
Exceeding the allocated size of the alternate signal stack will lead to unpredictable results.
Non e` un bug della VM del kernel,
ma delle utilities usate per swappare,
conoscono l'inizio e la lunghezza,
ma non se ci sta alla destinazione.
Con le memorie attuali, e` improbabile di eccedere lo spazio swap.
Intellegentia, reagisci e metti lo swap a fine HD, non si sa mai ...
Il tutto molto riproducibile >10 anni fa con
Intel P133, 16MB RAM, HD SCSI 1GB, Slackware 96
