Thank you!!<br><br><div class="gmail_quote">On Tue, Dec 6, 2011 at 8:45 AM, thomas bonfort <span dir="ltr">&lt;<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
fixed.<br>
<div><div class="h5"><br>
On Tue, Dec 6, 2011 at 15:41, forums &lt;<a href="mailto:forums@craniumjuice.com">forums@craniumjuice.com</a>&gt; wrote:<br>
&gt; Hi guys:<br>
&gt;<br>
&gt; I&#39;m having trouble with mapcache_seed<br>
&gt;<br>
&gt; I get a segmentation fault, it appears to happen at line 626<br>
&gt; <a href="http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapcache/src/mapcache_seed.c#L626" target="_blank">http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapcache/src/mapcache_seed.c#L626</a><br>
&gt;<br>
&gt; Warning messages from the compile process:<br>
&gt;<br>
&gt; mapcache_seed.c: In function &#39;cmd_recurse&#39;:<br>
&gt; mapcache_seed.c:337: warning: unused variable &#39;j&#39;<br>
&gt; mapcache_seed.c:337: warning: unused variable &#39;i&#39;<br>
&gt; mapcache_seed.c: In function &#39;seed_thread&#39;:<br>
&gt; mapcache_seed.c:511: warning: dereferencing type-punned pointer will break<br>
&gt; strict-aliasing rules<br>
&gt; mapcache_seed.c: In function &#39;main&#39;:<br>
&gt; mapcache_seed.c:626: warning: assignment makes integer from pointer without<br>
&gt; a cast<br>
&gt; mapcache_seed.c:626: warning: value computed is not used<br>
&gt; mapcache_seed.c:626: warning: assignment makes integer from pointer without<br>
&gt; a cast<br>
&gt; mapcache_seed.c:626: warning: value computed is not used<br>
&gt; mapcache_seed.c:626: warning: value computed is not used<br>
&gt; mapcache_seed.c:626: warning: &#39;dimvalue&#39; is used uninitialized in this<br>
&gt; function<br>
&gt; mapcache_seed.c:626: warning: &#39;optargcpy&#39; is used uninitialized in this<br>
&gt; function<br>
&gt;<br>
&gt;<br>
&gt; If I put some fprintf statements around line 626, I only get the first one:<br>
&gt;     fprintf(stderr,&quot;FOO\n&quot;);<br>
&gt;     dimkey = NULL,*dimvalue = NULL,*key,*last,*optargcpy = NULL;<br>
&gt;     fprintf(stderr,&quot;BAR\n&quot;);<br>
&gt;<br>
&gt; prints out:<br>
&gt; $ ./src/mapcache_seed<br>
&gt; FOO<br>
&gt; Segmentation fault<br>
&gt;<br>
&gt; Am I missing something?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Jerl<br>
&gt;<br>
&gt; --<br>
&gt; A computer without Windows is like chocolate cake without mustard.<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>A computer without Windows is like chocolate cake without mustard.<br>