[Tile-serving] [openstreetmap/osm2pgsql] Segmentation Fault during Nominatim daily update (#1014)

Arvind Kartik notifications at github.com
Thu Dec 5 05:51:50 UTC 2019


Thanks for the reply, @lonvia 

Postgres log:
```
2019-12-05 10:54:54.844 IST [1336] nominatim at nominatim LOG:  could not receive data from client: Connection reset by peer
2019-12-05 10:54:55.178 IST [1333] nominatim at nominatim LOG:  could not send data to client: Broken pipe
2019-12-05 10:54:55.178 IST [1333] nominatim at nominatim FATAL:  connection to client lost
```

Executed commands:
```

$ ulimit -c unlimited
$ /srv/nominatim/Nominatim-3.4.0/build/osm2pgsql/osm2pgsql -klas --number-processes 1 -C 2000 -O gazetteer -S /srv/nominatim/Nominatim-3.4.0/settings/import-full.style -d nominatim -P 5432 /srv/nominatim/Nominatim-3.4.0/build/osmosischange.osc

osm2pgsql version 1.2.0 (64 bit id space)
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Allocating memory for sparse node cache
Sharing dense sparse
Node-cache: cache=2000MB, maxblocks=32000*65536, allocation method=11
Mid: pgsql, cache=2000
Parsing gazetteer style file '/srv/nominatim/Nominatim-3.4.0/settings/import-full.style'.
Using projection SRS 4326 (Latlong)
Reading in file: /srv/nominatim/Nominatim-3.4.0/build/osmosischange.osc
Using XML parser.
Processing: Node(2000k 125.0k/s) Way(62k 3.10k/s) Relation(0 0.00/s)Segmentation fault (core dumped)

$ gdb /srv/nominatim/Nominatim-3.4.0/build/osm2pgsql/osm2pgsql core.1405                                                       
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /srv/nominatim/Nominatim-3.4.0/build/osm2pgsql/osm2pgsql...done.
[New LWP 1405]
[New LWP 1413]
[New LWP 1406]
[New LWP 1410]
[New LWP 1444]
[New LWP 1419]
[New LWP 1416]
[New LWP 1415]
[New LWP 1421]
[New LWP 1420]
[New LWP 1422]
[New LWP 1414]
[New LWP 1438]
[New LWP 1417]
[New LWP 1418]
[New LWP 1441]
[New LWP 1442]
[New LWP 1424]
[New LWP 1423]
[New LWP 1427]
[New LWP 1426]
[New LWP 1425]
[New LWP 1433]
[New LWP 1432]
[New LWP 1431]
[New LWP 1430]
[New LWP 1429]
[New LWP 1428]
[New LWP 1440]
[New LWP 1439]
[New LWP 1437]
[New LWP 1436]
[New LWP 1435]
[New LWP 1434]
[New LWP 1443]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/srv/nominatim/Nominatim-3.4.0/build/osm2pgsql/osm2pgsql -klas --number-proc'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  std::vector<db_deleter_place_t::item_t, std::allocator<db_deleter_place_t::item_t> >::emplace_back<char&, long&> (this=0x40) at /usr/include/c++/5/bits/vector.tcc:94
94              if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
[Current thread is 1 (Thread 0x7fa4fb198740 (LWP 1405))]
```

For `>bt`, I've attached the screenshot
![osm2psql bt output](https://user-images.githubusercontent.com/7534460/70207612-4a9fd500-1751-11ea-9178-7f0235117c39.png)


Thank you so much again for taking your time to help :)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1014#issuecomment-561981379
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20191204/aa6d1968/attachment.html>


More information about the Tile-serving mailing list