<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Buna seara!<div class=""><br class=""></div><div class="">Ma confrunt cu urmatoarele probleme referitoare la testele de memorie:</div><div class=""><br class=""></div><div class="">La rularea pe masina virtuala cu valgrind a testelor 15 si 19 (14 si 18 pe vmchecker), obtin 2 erori similare:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">==4684== 288 bytes in 1 blocks are possibly lost in loss record 2 of 2</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">==4684== at 0x4C3204A: calloc (vg_replace_malloc.c:762)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">==4684== by 0x40134A6: allocate_dtv (dl-tls.c:286)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">==4684== by 0x40134A6: _dl_allocate_tls (dl-tls.c:530)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">==4684== by 0x5049227: allocate_stack (allocatestack.c:627)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">==4684== by 0x5049227: pthread_create@@GLIBC_2.2.5 (pthread_create.c:644)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">==4684== by 0x4E3E65B: so_fork (in /home/student/l3-so-assignments/4-scheduler/checker-lin/libscheduler.so)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">==4684== by 0x10ABDE: test_sched_handler_15 (test_exec.c:282)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">==4684== by 0x4E3E47E: start_thread (in /home/student/l3-so-assignments/4-scheduler/checker-lin/libscheduler.so)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">==4684== by 0x50486DA: start_thread (pthread_create.c:463)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">==4684== by 0x538188E: clone (clone.S:95)</span></div></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">==4684== possibly lost: 576 bytes in 2 blocks</span></div><div class=""><pre style="font-size: small; font-variant-ligatures: normal; orphans: 2; widows: 2;" class=""><div style="font-size: 12px; white-space: normal;" class=""><div style="font-family: Menlo; margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">==4684== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)</span></div><div style="font-family: Menlo; margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="font-family: Menlo; margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;" class="">Nu reusesc sa-mi dau seama de la ce ar putea fi cele doua erori si de ce se manifesta doar la aceste doua teste.</div><div style="font-family: Menlo; margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;" class="">Mentionez ca astept terminarea thread-urilor cu pthread_join, care ar trebui sa efectueze eliberarea resurselor din structura pthread_t.</div><div style="font-family: Menlo; margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;" class="">In plus, la testul 16 (15 vmchecker), se pare ca valgrind ocupa mult prea multa memorie locala, iar ca urmare este omorat.</div><div style="font-family: Menlo; margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class=""><b class=""><br class=""></b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;" class=""><font face="Menlo" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class="">student@vagrant</b></span><span style="font-variant-ligatures: no-common-ligatures;" class="">:</span><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class="">~/l3-so-assignments/4-scheduler/checker-lin</b></span><span style="font-variant-ligatures: no-common-ligatures;" class="">$ LD_LIBRARY_PATH=. valgrind --tool=memcheck --track-origins=yes --leak-check=full _test/run_test 16</span></font></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font face="Menlo" class="">==4693== Memcheck, a memory error detector</font></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font face="Menlo" class="">==4693== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.</font></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font face="Menlo" class="">==4693== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info</font></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font face="Menlo" class="">==4693== Command: _test/run_test 16</font></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font face="Menlo" class="">==4693== </font></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;" class=""><font face="Menlo" class="">Killed </font></div></div><div style="font-family: Helvetica; font-size: 12px; white-space: normal;" class=""></div></pre><div style="orphans: 2; widows: 2;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></div><div style="orphans: 2; widows: 2;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">Multumesc</span></font></div></div></body></html>