ai incercat: gdb + backtrace? iti spune cam pe unde crapa.<br><br><div class="gmail_quote">2008/5/11 George Dita <<a href="mailto:george.dita@gmail.com">george.dita@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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><font color="#888888">George Dita
</font><br>_______________________________________________<br>
so mailing list<br>
<a href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br>
<a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Alexandru Mošoi<br><a href="http://alexandru.mosoi.googlepages.com">http://alexandru.mosoi.googlepages.com</a><br><br>Please avoid sending me Word or PowerPoint attachments.<br>
See <a href="http://www.gnu.org/philosophy/no-word-attachments.html">http://www.gnu.org/philosophy/no-word-attachments.html</a>