<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/simpl/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/simpl/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/simpl/bugs/</id><updated>2003-10-28T16:24:05Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>seg-fault in ReplyError because sender is -1</title><link href="https://sourceforge.net/p/simpl/bugs/1/" rel="alternate"/><published>2003-10-28T16:24:05Z</published><updated>2003-10-28T16:24:05Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netc1218b592904d0da4bbd2d7fe683e37968432c29</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Anton Wilson&lt;br /&gt;
10-28-03&lt;br /&gt;
anton.wilson@camotion.com&lt;/p&gt;
&lt;p&gt;In /simplipc/srd/simpl.c in Receive():&lt;/p&gt;
&lt;p&gt;*sender = shmat(fifoMsg-&amp;amp;gt;shmid, 0, 0);&lt;br /&gt;
if (*sender == (char *)-1)&lt;br /&gt;
{&lt;br /&gt;
_simpl_setErrorCode(CANNOT_ATTACH_SHMEM,&lt;br /&gt;
taskStuff);&lt;br /&gt;
_simpl_log(taskStuff, &amp;amp;quot;%s: cannot attach to&lt;br /&gt;
shmem-%s\n&amp;amp;quot;, fn, strerror(errno));&lt;br /&gt;
ReplyError(*sender, taskStuff);&lt;br /&gt;
return(-1);&lt;/p&gt;
&lt;p&gt;in ReplyError(), the sender var is dereferenced,&lt;br /&gt;
causing a segfault in /simplipc/src/simplUtils for the&lt;br /&gt;
sprintf() call.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>