<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI Emoji";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=RO>„</span>Note: refers to 0 byte(s) beyond last valid byte in prior malloc”</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Asta îmi spune că eroarea poate fi legit a ta și Valgrind pur și simplu nu a prins-o. În rulările</p><p class=MsoNormal>tale manuale îi dai toate opțiunile de strictețe?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Încearcă să compilezi cu parametrul /Zi (echivalentul lui -g) și să rulezi din nou Dr. Memory ca</p><p class=MsoNormal>să vezi exact în ce funcție se întâmplă problema.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’ll leave it to you from here.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:deea.oltean2@gmail.com">Deea O</a><br><b>Sent: </b>Thursday, March 5, 2020 10:13 PM<br><b>To: </b><a href="mailto:olarupaulstelian97@gmail.com">Paul Olaru</a><br><b>Cc: </b><a href="mailto:so@cursuri.cs.pub.ro">Sisteme de Operare</a><br><b>Subject: </b>Re: Re: Re: [so] [Tema1][Windows]Memcheck fails</p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Sample:</p><div><p class=MsoNormal>~~Dr.M~~ Error #1: UNADDRESSABLE ACCESS beyond heap bounds: reading 0x00a1168e-0x00a11690 2 byte(s) within 0x00a1168c-0x00a11690<br>~~Dr.M~~ # 0 so-cpp.exe!? +0x0 (0x002a3283 <so-cpp.exe+0x3283>)<br>~~Dr.M~~ # 1 so-cpp.exe!? +0x0 (0x002a1a06 <so-cpp.exe+0x1a06>)<br>~~Dr.M~~ # 2 so-cpp.exe!? +0x0 (0x002a1047 <so-cpp.exe+0x1047>)<br>~~Dr.M~~ # 3 so-cpp.exe!? +0x0 (0x002a3a42 <so-cpp.exe+0x3a42>)<br>~~Dr.M~~ # 4 KERNEL32.dll!BaseThreadInitThunk +0x11 (0x77481174 <KERNEL32.dll+0x51174>)<br>~~Dr.M~~ Note: @0:00:00.327 in thread 2884<br>~~Dr.M~~ Note: next higher malloc: 0x00a116b0-0x00a11794<br>~~Dr.M~~ Note: refers to 0 byte(s) beyond last valid byte in prior malloc<br>~~Dr.M~~ Note: prev lower malloc: 0x00a11660-0x00a1168e<br>~~Dr.M~~ Note: instruction: mov (%ecx) -> %eax</p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Thu, 5 Mar 2020 at 22:08, Paul Olaru <<a href="mailto:olarupaulstelian97@gmail.com">olarupaulstelian97@gmail.com</a>> wrote:</p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>Ar fi bine să atașezi erorile ca să le putem investiga.</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO> </span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>Faptul că nu apar pe Linux îmi spune că probabil e de vină runtime-ul de pe Windows, dar e</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>bine să ne uităm atent peste erori ca să le putem interpreta corect.</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">Mail</a> for Windows 10</p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b>From: </b><a href="mailto:deea.oltean2@gmail.com" target="_blank">Deea O</a><br><b>Sent: </b>Thursday, March 5, 2020 10:07 PM<br><b>To: </b><a href="mailto:olarupaulstelian97@gmail.com" target="_blank">Paul Olaru</a><br><b>Cc: </b><a href="mailto:so@cursuri.cs.pub.ro" target="_blank">Sisteme de Operare</a><br><b>Subject: </b>Re: Re: [so] [Tema1][Windows]Memcheck fails</p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Am rulat, am gasit ca am erori de tipul Unaddressable access beyond heap bounds. Aceste erori imi apar si la alte teste care dau pass si cred ca aceasta eroare trebuia sa imi fie semnalata si de valgrind.</p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Cum trebuie sa procedez? </p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Multumesc frumos. </p></div></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Thu, 5 Mar 2020 at 21:23, Paul Olaru <<a href="mailto:olarupaulstelian97@gmail.com" target="_blank">olarupaulstelian97@gmail.com</a>> wrote:</p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>Nu am mașina virtuală on hand dar din câte îmi amintesc era o variantă de a rula manual</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>memcheck similar cu modul în care se putea rula valgrind pe Linux. Dacă te uiți la cum este</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>apelat în scripturile checkerului și iei exemplu probabil poți găsi un mod.</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO> </span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>Scuze că nu te pot ajuta mai specific </span><span lang=RO style='font-family:"Segoe UI Emoji",sans-serif'>☹</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">Mail</a> for Windows 10</p></div></div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b>From: </b><a href="mailto:deea.oltean2@gmail.com" target="_blank">Deea O</a><br><b>Sent: </b>Thursday, March 5, 2020 9:22 PM<br><b>To: </b><a href="mailto:olarupaulstelian97@gmail.com" target="_blank">Paul Olaru</a><br><b>Cc: </b><a href="mailto:so@cursuri.cs.pub.ro" target="_blank">Sisteme de Operare</a><br><b>Subject: </b>Re: [so] [Tema1][Windows]Memcheck fails</p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Imi poti spune, te rog, cum pot sa imi dau seama de ce fel de memleaks?</p></div></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Thu, 5 Mar 2020 at 21:15, Paul Olaru <<a href="mailto:olarupaulstelian97@gmail.com" target="_blank">olarupaulstelian97@gmail.com</a>> wrote:</p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>Poți menționa ce memleaks ai mai exact? Trebuie să ne dăm seama dacă aparțin codului</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>tău sau runtime-ului de pe Windows.</span></p></div></div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b>From: </b><a href="mailto:so@cursuri.cs.pub.ro" target="_blank">Deea O via so</a><br><b>Sent: </b>Thursday, March 5, 2020 9:14 PM<br><b>To: </b><a href="mailto:so@cursuri.cs.pub.ro" target="_blank">Sisteme de Operare</a><br><b>Subject: </b>[so] [Tema1][Windows]Memcheck fails</p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Buna seara,</p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Cum pot proceda in cazul in care pe Linux nu am memory leaks, dar cu toate acestea pe Windows am? Mentionez ca nu am warning-uri.</p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Multumesc frumos,</p></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Andreea Oltean</p></div></div></blockquote></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt'> </p></div></div></blockquote></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt'> </p></div></div></blockquote></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt'> </p><p class=MsoNormal><o:p> </o:p></p></div></body></html>