<div class="markdown_content"><hr/>
<p><strong> <a class="alink" href="https://sourceforge.net/p/pure-data/bugs/1247/">[bugs:#1247]</a> <span><span>[bng]</span></span> Conditional jump or move depends on uninitialised value(s)</strong></p>
<p><strong>Status:</strong> open<br/>
<strong>Group:</strong> v0.47<br/>
<strong>Created:</strong> Mon May 16, 2016 02:47 PM UTC by Claude Heiland-Allen<br/>
<strong>Last Updated:</strong> Mon May 16, 2016 02:47 PM UTC<br/>
<strong>Owner:</strong> nobody</p>
<p>pd 0.47-0 on gnu/linux debian jessie</p>
<p>steps to reproduce:</p>
<p>$ valgrind pd<br/>
create new patch<br/>
ctrl-1 to create new object box<br/>
type "bng"<br/>
click on the canvas to instantiate the object</p>
<p>now two errors are reported by valgrind</p>
<p>note: the error doesn't occur on additional bng objects, only the first<br/>
the error isn't triggered when creating a first bng with ctrl-shift-b</p>
<p>line 371 of g_bang.c is<br/>
if (action == LB_LOAD && x->x_gui.x_isa.x_loadinit)</p>
<p>so I guess something might be wrong with x_loadinit initialisation at pd startup?<br/>
not familiar with the gui code so that's just a guess</p>
<p>$ valgrind pd<br/>
==18158== Memcheck, a memory error detector<br/>
==18158== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.<br/>
==18158== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info<br/>
==18158== Command: pd<br/>
==18158== <br/>
==18158== Conditional jump or move depends on uninitialised value(s)<br/>
==18158==    at 0x45D357: bng_loadbang (g_bang.c:371)<br/>
==18158==    by 0x475B9F: pd_typedmess (m_class.c:742)<br/>
==18158==    by 0x475EC1: pd_vmess (m_class.c:801)<br/>
==18158==    by 0x424AD8: text_setto (g_text.c:1399)<br/>
==18158==    by 0x45114C: glist_deselect (g_editor.c:254)<br/>
==18158==    by 0x4570BA: glist_noselect (g_editor.c:268)<br/>
==18158==    by 0x4570BA: canvas_doclick (g_editor.c:1476)<br/>
==18158==    by 0x475B9F: pd_typedmess (m_class.c:742)<br/>
==18158==    by 0x47EBA6: binbuf_eval (m_binbuf.c:773)<br/>
==18158==    by 0x489A82: socketreceiver_read (s_inter.c:552)<br/>
==18158==    by 0x488EB0: sys_domicrosleep.constprop.4 (s_inter.c:190)<br/>
==18158==    by 0x48556D: m_pollingscheduler (m_sched.c:557)<br/>
==18158==    by 0x48556D: m_mainloop (m_sched.c:617)<br/>
==18158==    by 0x6410B44: (below main) (libc-start.c:287)<br/>
==18158== <br/>
==18158== Conditional jump or move depends on uninitialised value(s)<br/>
==18158==    at 0x45D359: bng_loadbang (g_bang.c:371)<br/>
==18158==    by 0x475B9F: pd_typedmess (m_class.c:742)<br/>
==18158==    by 0x475EC1: pd_vmess (m_class.c:801)<br/>
==18158==    by 0x424AD8: text_setto (g_text.c:1399)<br/>
==18158==    by 0x45114C: glist_deselect (g_editor.c:254)<br/>
==18158==    by 0x4570BA: glist_noselect (g_editor.c:268)<br/>
==18158==    by 0x4570BA: canvas_doclick (g_editor.c:1476)<br/>
==18158==    by 0x475B9F: pd_typedmess (m_class.c:742)<br/>
==18158==    by 0x47EBA6: binbuf_eval (m_binbuf.c:773)<br/>
==18158==    by 0x489A82: socketreceiver_read (s_inter.c:552)<br/>
==18158==    by 0x488EB0: sys_domicrosleep.constprop.4 (s_inter.c:190)<br/>
==18158==    by 0x48556D: m_pollingscheduler (m_sched.c:557)<br/>
==18158==    by 0x48556D: m_mainloop (m_sched.c:617)<br/>
==18158==    by 0x6410B44: (below main) (libc-start.c:287)<br/>
==18158== <br/>
==18158== <br/>
==18158== HEAP SUMMARY:<br/>
==18158==     in use at exit: 154,530 bytes in 2,983 blocks<br/>
==18158==   total heap usage: 6,011 allocs, 3,028 frees, 1,887,653 bytes allocated<br/>
==18158== <br/>
==18158== LEAK SUMMARY:<br/>
==18158==    definitely lost: 2,048 bytes in 32 blocks<br/>
==18158==    indirectly lost: 544 bytes in 64 blocks<br/>
==18158==      possibly lost: 42,774 bytes in 1,308 blocks<br/>
==18158==    still reachable: 109,164 bytes in 1,579 blocks<br/>
==18158==         suppressed: 0 bytes in 0 blocks<br/>
==18158== Rerun with --leak-check=full to see details of leaked memory<br/>
==18158== <br/>
==18158== For counts of detected and suppressed errors, rerun with: -v<br/>
==18158== Use --track-origins=yes to see where uninitialised values come from<br/>
==18158== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)</p>
<hr/>
<p>Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to <a href="https://sourceforge.net/p/pure-data/bugs/">https://sourceforge.net/p/pure-data/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/pure-data/admin/bugs/options.">https://sourceforge.net/p/pure-data/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>