Obtin un segmentation fault de la tester si se opreste tot la testul 3 partea de ram poisoning<br><br>test: init3.......................................................passed<br>test: ram_size....................................................passed<br>
test: swap_size...................................................passed<br>Trece!!!<br>Trece!!!<br>test: access......................................................passed<br>test: access......................................................passed<br>
test: access......................................................passed<br>test: access......................................................passed<br>test: access......................................................passed<br>
test: access......................................................passed<br>1.Trece!!!<br>Segmentation fault (core dumped)<br><br>Programul moare aici: <br><br>test_ram_swap (6, 3);<br> printf("Trece!!!\n");<br>
poison_ram_swap (6, 3);<br> printf("Trece!!!\n");<br> sig_handler_fault = 0;<br> set_signal ();<br><br> rand_pos = (rand () % (p_sz / 4 - 2)) * 4;<br><br> for (i = 0; i < 3; i++) {<br> _read (i, PAGE_FAULT, rand_pos);<br>
_read (i, NO_PAGE_FAULT, rand_pos + 4);<br> }<br> printf("1.Trece!!!\n");<br> ram_sync ();<br> printf("Trece!!!\n");<br> fflush(stdout);<br> check_ram0 (3);<br><br clear="all">
In traducere crapa cand executa mem_sync() functie care e testata si nu are de ce sa genereze o astfel de eroare. Inca o intrebare: fisierele trebuie sa aibe acces de read/write mereu? Si doar memoria virtuala sa aibe protection none, read_only etc?<br>
-- <br>George Dita