<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Le 12 février 2015 11:26, sly (sylvain letuffe) <span dir="ltr"><<a href="mailto:liste2@letuffe.org" target="_blank">liste2@letuffe.org</a>></span> a écrit :<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">pré-scriptum: je me demande si on ne serait pas mieux sur la liste dev-fr :<br>
<a href="https://lists.openstreetmap.org/listinfo/dev-fr" target="_blank">https://lists.openstreetmap.org/listinfo/dev-fr</a><br>
pour ce genre de sujet.<br></blockquote><div><br></div><div>Tout à fait, désolé j'avais pas vu qu'il existait cette liste..</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On jeudi 12 février 2015, Vincent Frison wrote:<br>
> Le problème c'est que osm2pgsql plante dès que j'importe un fichier OSM<br>
> contenant des éléments provenant de l'API de test (erreur de segmentation<br>
> et strace ne donne pas d'infos supplémentaires très utiles).<br>
<br>
</span>Tu peux indiquer la sortie standard de ton osm2pgsql ?<br></blockquote><div><br></div><div>turman@entropy:~/Workspace/GGTS$~/Software/osm2pgsql/bin/osm2pgsql -c -v -C 1000 -d osm_osm2pgsql_test ~/Workspace/JOSM/testing.osm</div><div>osm2pgsql SVN version 0.87.2-dev (64bit id space)</div><div><br></div><div>Using built-in tag processing pipeline</div><div>Using projection SRS 900913 (Spherical Mercator)</div><div>Setting up table: planet_osm_point</div><div>Setting up table: planet_osm_line</div><div>Setting up table: planet_osm_polygon</div><div>Setting up table: planet_osm_roads</div><div>Allocating memory for dense node cache</div><div>Allocating dense node cache in one big chunk</div><div>Allocating memory for sparse node cache</div><div>Sharing dense sparse</div><div>Node-cache: cache=1000MB, maxblocks=128000*8192, allocation method=3</div><div>Mid: Ram, scale=100</div><div><br></div><div>Reading in file: /home/turman/Workspace/JOSM/testing.osm</div><div>Erreur de segmentation</div><div><br></div><div><div>Sinon les attributs du tag <osm> sont effectivement différents entre les fichiers XML suivant qu'il est téléchargés depuis le serveur live ou exportés depuis JOSM : </div><div><osm version='0.6' upload='true' generator='JOSM'></div><div><osm version="0.6" generator="CGImap 0.3.3 (21189 <a href="http://thorn-03.openstreetmap.org">thorn-03.openstreetmap.org</a>)" copyright="OpenStreetMap and contributors" attribution="<a href="http://www.openstreetmap.org/copyright">http://www.openstreetmap.org/copyright</a>" license="<a href="http://opendatacommons.org/licenses/odbl/1-0/">http://opendatacommons.org/licenses/odbl/1-0/</a>"></div><div><br></div><div>Mais je pense que ça se joue à niveau là (j'ai essayé d'inverser). D'ailleurs d'après strace :</div></div><div><div>read(7, "lon='2.3358992' />\n  <node id='4"..., 4096) = 4096</div><div>read(7, "amp='2015-02-09T20:59:51Z' uid='"..., 4096) = 4096</div><div>read(7, "visible='true' version='1' chang"..., 4096) = 4096</div><div>read(7, "30212' lon='2.3231313' />\n  <nod"..., 4096) = 4096</div><div>time([1423771735])                      = 1423771735</div><div>--- SIGSEGV (Segmentation fault) @ 0 (0) ---</div><div>+++ killed by SIGSEGV +++</div><div>Erreur de segmentation</div></div><div><br></div><div><div>..ça plante apparemment en plein milieu du fichier, sur un node plutôt quelconque:</div><div><node id='4298085791' timestamp='2015-02-09T20:59:52Z' uid='2798' user='Vince' visible='true' version='1' changeset='56187' lat='48.8730212' lon='2.3231313' /></div></div><div><br></div><div>Et si je ne mets quelques nodes dans le XML ça marche.. du coup ça me fait penser à un bug de osm2pgsql mais sly je veux bien que tu m'envoie ton XML de Paris.. ou que je t'envoie le mien :)</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div>