Today's build (April 3, 2012) still crashes with creating/destroying test99.pd. The gdb reports something a bit different though:<div><br></div><div><div>Program received signal SIGSEGV, Segmentation fault.</div><div>0x0807fd79 in pd_typedmess (x=0x647261, s=0x81c7f68, argc=2, argv=0x825fb80)</div>
<div> at m_class.c:707</div><div>707<span class="Apple-tab-span" style="white-space:pre">        </span>m_class.c: No such file or directory.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>in m_class.c</div>
<div>(gdb) watchdog: signaling pd...</div><div><br></div><br><div class="gmail_quote">On Mon, Apr 2, 2012 at 9:53 AM, Hans-Christoph Steiner <span dir="ltr"><<a href="mailto:hans@at.or.at">hans@at.or.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On Apr 2, 2012, at 3:32 AM, IOhannes m zmoelnig wrote:<br>
<br>
> -----BEGIN PGP SIGNED MESSAGE-----<br>
> Hash: SHA1<br>
><br>
> On 2012-03-29 19:03, John Harrison wrote:<br>
>> I've been trying to track down a seg fault I keep getting and I'm still<br>
>> not sure if the problem is Gem or Pd-extended or what.<br>
>><br>
>> This is the latest pd-extended 0.43.1 Beta CVS March 29 (today) running<br>
>> on Oneric 32 but. I have simplified my patch to a point it doesn't make<br>
>> sense anymore but I can still make it crash, so I figure that's what we<br>
>> need.<br>
>><br>
>> Basically if you create a new patch then make the object [test99 1],<br>
>> then copy and paste that object, then change the 1 parameter to a 2 you<br>
>> get a seg fault most of the time. If not, creating a [test99 3] or<br>
>> [test99 4] should do it, again most of the time.<br>
>><br>
>> It seems related with Gem but I'm not sure if it is a Gem bug. I tried<br>
>> the same Gem library with Pd vanilla and it didn't crash. On the other<br>
>> hand, it seems related to the [pix_image] object in test99. Also you<br>
>> need to have the parameters to get the patch to crash, even though the<br>
>> patch doesn't take parameters. (The original patch did take parameters.)<br>
>><br>
>> Core dump has only this information: Program terminated with signal 11,<br>
>> Segmentation fault.<br>
>> #0 0x0111ac01 in gem::RTE::Outlet::send(std::string,<br>
>> std::vector<gem::any, std::allocator<gem::any> >) () from<br>
>> /usr/lib/pd-extended/extra/Gem/Gem.pd_linux<br>
>><br>
><br>
> if i'm not mistaken this has been recently fixed in Gem (around 21st of<br>
> march) and is related to threaded loading of images and deleting objects<br>
> while the load is still in process.<br>
><br>
> to avoid the problem you can do either of those:<br>
> - - upgrade to a new version of gem (there's a backport of the fix to the<br>
> (stable) 0.93 branch of Gem, though no official release has been made<br>
> yet, containing the fix)<br>
> - - avoid using threaded loading of images, e.g by sending the [thread 0(<br>
> message to [pix_image] before loading images.<br>
> - - avoid deleting a [pix_image] that has pending "open" requests<br>
<br>
</div></div>I just committed the latest patches from the 0.93 Gem branch to the Pd-extended 0.43 release branch. They'll be in tomorrow's build. John, could you test this and report back if there are any problems?<br>
<br>
.hc<br>
<br>
----------------------------------------------------------------------------<br>
<br>
I hate it when they say, "He gave his life for his country." Nobody gives their life for anything. We steal the lives of these kids. -Admiral Gene LeRocque<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br></div>