<div dir="ltr"><div>Maybe I don't understand well, but your short code example is incorrect :<br><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div>t_atom *boundmsg;<br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">boundmsg-><span style="color:rgb(52,149,175)">a_type</span> = <span style="color:rgb(52,149,175)">A_SYMBOL</span>;boundmsg-><span style="color:rgb(52,149,175)">a_w</span>.<span style="color:rgb(52,149,175)">w_symbol</span> = ss;</div></div></blockquote><div><br></div><div>because you are assigning fields of a not allocated structure : boundmsg here is just the undefined address of a potential storage.<br><br></div><div>This should work :<br></div><div><br></div><div>t_atom boundmsg;<br></div><div>boundmsg.a_type = A_SYMBOL; boundmsg.a_w.w_symbol = ss;<br><br><br></div><div>Or :<br><br><div>t_atom *boundmsg = getbytes(sizeof(t_atom));<br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">boundmsg-><span style="color:rgb(52,149,175)">a_type</span> = <span style="color:rgb(52,149,175)">A_SYMBOL</span>;boundmsg-><span style="color:rgb(52,149,175)">a_w</span>.<span style="color:rgb(52,149,175)">w_symbol</span> = ss;</div></div><br><br></div><div>Hope this helps, sorry if I'm off topic.<br> </div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-03 10:00 GMT+02:00 Arshia Cont <span dir="ltr"><<a href="mailto:Arshia.Cont@ircam.fr" target="_blank">Arshia.Cont@ircam.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Thomas,<div><br></div><div>My clang version is</div><div><div style="margin:0px;font-family:'Andale Mono';color:rgb(0,249,0);background-color:rgb(0,0,0)">Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)</div><div style="margin:0px;font-family:'Andale Mono';color:rgb(0,249,0);background-color:rgb(0,0,0)">Target: x86_64-apple-darwin14.3.0</div><div style="margin:0px;font-family:'Andale Mono';color:rgb(0,249,0);background-color:rgb(0,0,0)">Thread model: posix</div></div><div><br></div><div><br></div><div>Before I give you the compilation flags, here is what it comes down to.. basically, the following code gives indeterministic behaviour due to memory misalignment when the atom pointer is passed to :</div><div><br></div><div>t_atom *boundmsg; // etc.</div><div><div style="margin:0px;font-size:11px;font-family:Menlo">boundmsg-><span style="color:#3495af">a_type</span> = <span style="color:#3495af">A_SYMBOL</span>;boundmsg-><span style="color:rgb(52,149,175)">a_w</span>.<span style="color:rgb(52,149,175)">w_symbol</span> = ss;</div></div><div style="margin:0px;font-size:11px;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;font-family:Menlo">assert(<span style="color:rgb(0,143,0)">boundmsg->a_w.w_symbol->s_name == </span><span style="color:rgb(0,143,0)">atom_getsymbol(boundmsg)->s_name</span>); // imagine that my assert works on char*! simplifying here</div><div><br></div><div><br></div><div>Here is an example of the compilation, following Katja’s blog on soundtouch~. I am using i386 on purpose here for testing.You can ignore capital letter flags that come from us: </div><div><br></div><div><div style="margin:0px 0px 0px 12px;font-size:11px;font-family:Menlo">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu++1y -stdlib=libc++ -Wno-trigraphs -fshort-enums -Os -Wno-missing-field-initializers -Wmissing-prototypes -Wno-return-type -Wunreachable-code -Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wmissing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wempty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wassign-enum -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DNDEBUG=1 -DDEPLOYMENT_VERSION=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.7 -g -fvisibility-inlines-hidden -Wno-sign-conversion -I/Users/acont/Devs/MyFlextProjects/antescofo/build/antescofo~.build/Deployment/pd_static.build/antescofo~.hmap -I/Users/acont/Devs/MyFlextProjects/antescofo/build/Deployment/include -I/Users/acont/Devs/MyFlextProjects/antescofo/build/antescofo~.build/Deployment/pd_static.build/DerivedSources/i386 -I/Users/acont/Devs/MyFlextProjects/antescofo/build/antescofo~.build/Deployment/pd_static.build/DerivedSources -Wmost -Wno-unknown-pragmas -Wno-four-char-constants -F/Users/acont/Devs/MyFlextProjects/antescofo/build/Deployment -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks -DNDEBUG=1 -DARCHI_MAC_OS=4 -DARCHI_LINUX=5 -DARCHI_WINDOWS=6 -DANTESCOFO_ARCHI=ARCHI_MAC_OS -DTARGET_PD=2 -DTARGET_STANDALONE_FILE=3 -DTARGET_MAXSDK=4 -DTARGET_ASCOGRAPH=7 -I/Users/acont/Devs/MyFlextProjects/antescofo/../Mutant-libs/oscpack_1_1_0_RC2/ip -I/Users/acont/Devs/MyFlextProjects/antescofo/../Mutant-libs/oscpack_1_1_0_RC2/osc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -DANTESCOFO_TARGET=TARGET_PD -I/Users/acont/Devs/MyFlextProjects/antescofo/../Mutant-libs/pd-0.46-6/src -fvisibility=hidden -fcheck-new -MMD -MT dependencies -MF /Users/acont/Devs/MyFlextProjects/antescofo/build/antescofo~.build/Deployment/pd_static.build/Objects-normal/i386/Antescofo_PdClass.d --serialize-diagnostics /Users/acont/Devs/MyFlextProjects/antescofo/build/antescofo~.build/Deployment/pd_static.build/Objects-normal/i386/Antescofo_PdClass.dia -c /Users/acont/Devs/MyFlextProjects/antescofo/sources/Antescofo_PdClass.cpp -o /Users/acont/Devs/MyFlextProjects/antescofo/build/antescofo~.build/Deployment/pd_static.build/Objects-normal/i386/Antescofo_PdClass.o</div></div><div><span class="HOEnZb"><font color="#888888"><br><div>
<span style="border-collapse:separate;border-spacing:0px"><div>Arshia Cont</div><div><br></div><br></span><br>

</div></font></span><div><div class="h5">
<br><div><blockquote type="cite"><div>On 02 Jun 2015, at 21:43, Thomas Grill <<a href="mailto:gr@grrrr.org" target="_blank">gr@grrrr.org</a>> wrote:</div><br><div><div dir="ltr">Hi Arshia,<div>which compiler is it exactly that you use? Can you copy the options?</div><div>best, Thomas</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-02 14:35 GMT+02:00 Arshia Cont <span dir="ltr"><<a href="mailto:Arshia.Cont@ircam.fr" target="_blank">Arshia.Cont@ircam.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you Katja for the swift response! We will wait for that then.<br>
<br>
Any one running into run-time problems when compiling with C++11 or C++14? We seem to have memory alignment issues… .<br>
<span><font color="#888888"><br>
Arshia Cont<br>
</font></span><div><div><br>
<br>
<br>
<br>
> On 02 Jun 2015, at 14:23, katja <<a href="mailto:katjavetter@gmail.com" target="_blank">katjavetter@gmail.com</a>> wrote:<br>
><br>
> On Tue, Jun 2, 2015 at 1:07 PM, Arshia Cont <<a href="mailto:Arshia.Cont@ircam.fr" target="_blank">Arshia.Cont@ircam.fr</a>> wrote:<br>
><br>
> [...]<br>
><br>
>> My second question would be on double-precision audio externals.. I see discussions on class_new64 but can’t seem to find any trace of it in 0.46-6.. I dig into the archives to figure this one out first!<br>
><br>
> In 2011 I made a set of patch files for vanilla pd 0.43 to enable<br>
> double precision builds (where t_float and t_sample are doubles). That<br>
> can be found here:<br>
><br>
> <a href="https://github.com/pd-projects/pd-double" target="_blank">https://github.com/pd-projects/pd-double</a><br>
><br>
> You could try it out for evaluation but Miller wants to scrutinize,<br>
> test and improve the patch files before accepting them.<br>
><br>
> Katja<br>
><br>
<br>
<br>
_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@lists.iem.at" target="_blank">Pd-dev@lists.iem.at</a><br>
<a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Thomas Grill<br><a href="http://grrrr.org/" target="_blank">http://grrrr.org</a></div>
</div>
</div></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br>
<a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><font face="arial, helvetica, sans-serif">    Antoine Rousseau </font></div><div dir="ltr"><font face="arial, helvetica, sans-serif">  <a href="http://metalu.net" target="_blank">http://www.metalu.net</a> __ <a href="http://www.metaluachahuter.com/compagnies/al1-ant1/" target="_blank">http://www.metaluachahuter.com/</a> __ <a href="http://al1ant1.free.fr" target="_blank">http://al1ant1.free.fr</a></font></div><div dir="ltr"><br></div></div></div></div></div></div>
</div>