Hmmm, the bad thing is that the segfault disappear when using valgrind.<br>The  uninitialised value report must not point to the root of the segfault.<br><br>To enable detailed information, grass must be compiled with debug information ... .<br>
I don&#39;t know what to do.<br><br>Best regrads<br>Soeren<br><br><div class="gmail_quote">2009/9/9 Markus Neteler <span dir="ltr">&lt;<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Here we are:<br>
<br>
GRASS 6.4.0svn (patUTM32):~ &gt; valgrind --tool=memcheck v.out.ascii<br>
<div class="im">phd_area_main_cities column=name<br>
</div>==26104== Memcheck, a memory error detector.<br>
==26104== Copyright (C) 2002-2007, and GNU GPL&#39;d, by Julian Seward et al.<br>
==26104== Using LibVEX rev 1854, a library for dynamic binary translation.<br>
==26104== Copyright (C) 2004-2007, and GNU GPL&#39;d, by OpenWorks LLP.<br>
==26104== Using valgrind-3.3.1, a dynamic binary instrumentation framework.<br>
==26104== Copyright (C) 2000-2007, and GNU GPL&#39;d, by Julian Seward et al.<br>
==26104== For more details, rerun with: -v<br>
==26104==<br>
==26104== Conditional jump or move depends on uninitialised value(s)<br>
==26104==    at 0x4E4F408: db_enlarge_string (in<br>
/home/neteler/binaries/grass-6.4.0svn/lib/<a href="http://libgrass_dbmibase.6.4.0svn.so" target="_blank">libgrass_dbmibase.6.4.0svn.so</a>)<br>
==26104==    by 0x4E4F50C: set_string (in<br>
/home/neteler/binaries/grass-6.4.0svn/lib/<a href="http://libgrass_dbmibase.6.4.0svn.so" target="_blank">libgrass_dbmibase.6.4.0svn.so</a>)<br>
==26104==    by 0x4E4FD39: db_copy_value (in<br>
/home/neteler/binaries/grass-6.4.0svn/lib/<a href="http://libgrass_dbmibase.6.4.0svn.so" target="_blank">libgrass_dbmibase.6.4.0svn.so</a>)<br>
==26104==    by 0x54DC58D: db_select_value (in<br>
/home/neteler/binaries/grass-6.4.0svn/lib/<a href="http://libgrass_dbmiclient.6.4.0svn.so" target="_blank">libgrass_dbmiclient.6.4.0svn.so</a>)<br>
==26104==    by 0x40210E: bin_to_asc (in<br>
/home/neteler/binaries/grass-6.4.0svn/bin/v.out.ascii)<br>
==26104==    by 0x402A79: main (in<br>
/home/neteler/binaries/grass-6.4.0svn/bin/v.out.ascii)<br>
==26104==<br>
==26104== Conditional jump or move depends on uninitialised value(s)<br>
==26104==    at 0x4E4F417: db_enlarge_string (in<br>
/home/neteler/binaries/grass-6.4.0svn/lib/<a href="http://libgrass_dbmibase.6.4.0svn.so" target="_blank">libgrass_dbmibase.6.4.0svn.so</a>)<br>
==26104==    by 0x4E4F50C: set_string (in<br>
/home/neteler/binaries/grass-6.4.0svn/lib/<a href="http://libgrass_dbmibase.6.4.0svn.so" target="_blank">libgrass_dbmibase.6.4.0svn.so</a>)<br>
==26104==    by 0x4E4FD39: db_copy_value (in<br>
/home/neteler/binaries/grass-6.4.0svn/lib/<a href="http://libgrass_dbmibase.6.4.0svn.so" target="_blank">libgrass_dbmibase.6.4.0svn.so</a>)<br>
==26104==    by 0x54DC58D: db_select_value (in<br>
/home/neteler/binaries/grass-6.4.0svn/lib/<a href="http://libgrass_dbmiclient.6.4.0svn.so" target="_blank">libgrass_dbmiclient.6.4.0svn.so</a>)<br>
==26104==    by 0x40210E: bin_to_asc (in<br>
/home/neteler/binaries/grass-6.4.0svn/bin/v.out.ascii)<br>
==26104==    by 0x402A79: main (in<br>
/home/neteler/binaries/grass-6.4.0svn/bin/v.out.ascii)<br>
<div class="im">664070.15136424|5103723.69345589|1|Trento<br>
680631.89931785|5152080.37972013|2|Bolzano - Bozen<br>
748566.88848245|5114436.80436153|3|Belluno<br>
753217.48877466|5062320.47156408|4|Treviso<br>
783478.0559796|5095956.26859946|5|Pordenone<br>
</div>==26104==<br>
==26104== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 5 from 1)<br>
==26104== malloc/free: in use at exit: 20,632 bytes in 186 blocks.<br>
==26104== malloc/free: 495 allocs, 309 frees, 46,512 bytes allocated.<br>
==26104== For counts of detected errors, rerun with: -v<br>
==26104== searching for pointers to 186 not-freed blocks.<br>
==26104== checked 779,376 bytes.<br>
==26104==<br>
==26104== LEAK SUMMARY:<br>
==26104==    definitely lost: 13,863 bytes in 103 blocks.<br>
==26104==      possibly lost: 0 bytes in 0 blocks.<br>
==26104==    still reachable: 6,769 bytes in 83 blocks.<br>
==26104==         suppressed: 0 bytes in 0 blocks.<br>
==26104== Rerun with --leak-check=full to see details of leaked memory.<br>
<br>
Doesn&#39;t tell me too much... :( I guess an extra trick is needed to include<br>
DBMI checking.<br>
<font color="#888888"><br>
Markus<br>
</font><div><div></div><div class="h5"><br>
On Wed, Sep 9, 2009 at 12:14 PM, Soeren<br>
Gebbert&lt;<a href="mailto:soerengebbert@googlemail.com">soerengebbert@googlemail.com</a>&gt; wrote:<br>
&gt; Hello,<br>
&gt; try valgrind:<br>
&gt;<br>
&gt; valgrind --tool=memcheck v.out.ascii phd_area_main_cities column=name<br>
&gt;<br>
&gt; Sören<br>
&gt;<br>
&gt; 2009/9/9 Markus Neteler &lt;<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I get a Heisenbug [1] when exporting points from v.out.ascii with<br>
&gt;&gt; attributes<br>
&gt;&gt; (Scientific Linux, 64bit):<br>
&gt;&gt;<br>
&gt;&gt; GRASS 6.4.0svn (patUTM32):~ &gt; v.out.ascii phd_area_main_cities column=name<br>
&gt;&gt; Segmentation fault<br>
&gt;&gt;<br>
&gt;&gt; GRASS 6.4.0svn (patUTM32):~ &gt; gdb v.out.ascii<br>
&gt;&gt; GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)<br>
&gt;&gt; ...<br>
&gt;&gt; This GDB was configured as &quot;x86_64-redhat-linux-gnu&quot;...(no debugging<br>
&gt;&gt; symbols found)<br>
&gt;&gt; Using host libthread_db library &quot;/lib64/libthread_db.so.1&quot;.<br>
&gt;&gt;<br>
&gt;&gt; (gdb) r phd_area_main_cities column=name<br>
&gt;&gt; Starting program:<br>
&gt;&gt; /home/neteler/binaries/grass-6.4.0svn/bin/v.out.ascii<br>
&gt;&gt; phd_area_main_cities column=name<br>
&gt;&gt; (no debugging symbols found)<br>
&gt;&gt; ...<br>
&gt;&gt; (no debugging symbols found)<br>
&gt;&gt; [Thread debugging using libthread_db enabled]<br>
&gt;&gt; [New Thread 47548720613104 (LWP 7517)]<br>
&gt;&gt; (no debugging symbols found)<br>
&gt;&gt; [Detaching after fork from child process 7520. (Try `set detach-on-fork<br>
&gt;&gt; off&#39;.)]<br>
&gt;&gt; 664070.15136424|5103723.69345589|1|Trento<br>
&gt;&gt; 680631.89931785|5152080.37972013|2|Bolzano - Bozen<br>
&gt;&gt; 748566.88848245|5114436.80436153|3|Belluno<br>
&gt;&gt; 753217.48877466|5062320.47156408|4|Treviso<br>
&gt;&gt; 783478.0559796|5095956.26859946|5|Pordenone<br>
&gt;&gt; Program exited normally.<br>
&gt;&gt;<br>
&gt;&gt; GRASS 6.4.0svn (patUTM32):~ &gt; v.out.ascii phd_area_main_cities column=name<br>
&gt;&gt; Segmentation fault<br>
&gt;&gt;<br>
&gt;&gt; Yes, I didn&#39;t compile with -g because it is my production machine but<br>
&gt;&gt; since it works in GDB...<br>
&gt;&gt;<br>
&gt;&gt; Any idea how to debug this problem?<br>
&gt;&gt;<br>
&gt;&gt; thanks<br>
&gt;&gt; Markus<br>
&gt;&gt;<br>
&gt;&gt; [1] <a href="http://en.wikipedia.org/wiki/Unusual_software_bug#Heisenbug" target="_blank">http://en.wikipedia.org/wiki/Unusual_software_bug#Heisenbug</a><br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; grass-dev mailing list<br>
&gt;&gt; <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>