[Tile-serving] [openstreetmap/osm2pgsql] Segmentation fault while importing diff with tiles expire option (#651)
jendrusk
notifications at github.com
Sat Nov 19 13:36:19 UTC 2016
@lonvia - as radiotelegraphists say 'SRI IM LID'
osm at mapa:~$ gdb /usr/local/bin/osm2pgsql /home/osm/scripts/osm_test/core
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 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 /usr/local/bin/osm2pgsql...done.
[New LWP 1661]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/bin/osm2pgsql --number-processes 1 -v -C 2000 -G -K -j -x -s -S ./de'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00000000004cc92f in tile::output_and_destroy (this=0x0, output=0x7ffc23eb1d80, x=x at entry=0, y=y at entry=0, this_zoom=this_zoom at entry=0)
at /root/download/osm2pgsql/osm2pgsql/expire-tiles.cpp:118
118 /root/download/osm2pgsql/osm2pgsql/expire-tiles.cpp: Permission denied.
(gdb) bt
#0 0x00000000004cc92f in tile::output_and_destroy (this=0x0, output=0x7ffc23eb1d80, x=x at entry=0, y=y at entry=0, this_zoom=this_zoom at entry=0)
at /root/download/osm2pgsql/osm2pgsql/expire-tiles.cpp:118
#1 0x00000000004ccb07 in expire_tiles::output_and_destroy (this=0x1ae60e0, output=<optimized out>) at /root/download/osm2pgsql/osm2pgsql/expire-tiles.cpp:160
#2 0x00000000004ccbb5 in expire_tiles::output_and_destroy (this=this at entry=0x1ae60e0, filename=<optimized out>, minzoom=<optimized out>)
at /root/download/osm2pgsql/osm2pgsql/expire-tiles.cpp:169
#3 0x00000000004b938f in output_pgsql_t::stop (this=0x1ae5ce0) at /root/download/osm2pgsql/osm2pgsql/output-pgsql.cpp:357
#4 0x000000000046d469 in std::_Mem_fn_base<void (output_t::*)(), true>::operator()<, void>(output_t*) const (__object=<optimized out>, this=<optimized out>)
at /usr/include/c++/5/functional:600
#5 std::_Bind_simple<std::_Mem_fn<void (output_t::*)()> (output_t*)>::_M_invoke<0ul>(std::_Index_tuple<0ul>) (this=<optimized out>) at /usr/include/c++/5/functional:1531
#6 std::_Bind_simple<std::_Mem_fn<void (output_t::*)()> (output_t*)>::operator()() (this=<optimized out>) at /usr/include/c++/5/functional:1520
#7 std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<void>, std::__future_base::_Result_base::_Deleter>, std::_Bind_simple<std::_Mem_fn<void (output_t::*)()> (output_t*)>, void>::operator()() const (this=0x7ffc23eb1f40) at /usr/include/c++/5/future:1342
#8 std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> (), std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<void>, std::__future_base::_Result_base::_Deleter>, std::_Bind_simple<std::_Mem_fn<void (output_t::*)()> (output_t*)>, void> >::_M_invoke(std::_Any_data const&) (
__functor=...) at /usr/include/c++/5/functional:1857
#9 0x000000000046dd29 in std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>::operator()() const (this=<optimized out>)
at /usr/include/c++/5/functional:2267
#10 std::__future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>*, bool*) (this=0x1ca8d70,
__f=<optimized out>, __did_set=0x7ffc23eb1f0f) at /usr/include/c++/5/future:527
#11 0x00007f301880fae9 in __pthread_once_slow (once_control=0x1ca8d88, init_routine=0x45d150 <__once_proxy at plt>) at pthread_once.c:116
#12 0x000000000046e634 in __gthread_once (__func=<optimized out>, __once=0x1ca8d88) at /usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:699
#13 std::call_once<void (std::__future_base::_State_baseV2::*)(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>*, bool*), std::__future_base::_State_baseV2*, std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>*, bool*>(std::once_flag&, void (std::__future_base::_State_baseV2::*&&)(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>*, bool*), std::__future_base::_State_baseV2*&&, std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>*&&, bool*&&) (__f=<optimized out>, __once=...)
at /usr/include/c++/5/mutex:738
#14 std::__future_base::_State_baseV2::_M_set_result(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>, bool) (
__ignore_failure=true, __res=..., this=0x1ca8d70) at /usr/include/c++/5/future:387
#15 std::__future_base::_Deferred_state<std::_Bind_simple<std::_Mem_fn<void (output_t::*)()> (output_t*)>, void>::_M_complete_async() (this=0x1ca8d70) at /usr/include/c++/5/future:1606
#16 0x000000000046c1f2 in std::__future_base::_State_baseV2::wait (this=0x1ca8d70) at /usr/include/c++/5/future:319
#17 std::__basic_future<void>::_M_get_result (this=0x1b9c120) at /usr/include/c++/5/future:681
#18 std::future<void>::get (this=0x1b9c120) at /usr/include/c++/5/future:846
#19 osmdata_t::stop (this=this at entry=0x7ffc23eb21e0) at /root/download/osm2pgsql/osm2pgsql/osmdata.cpp:415
#20 0x000000000045e934 in main (argc=<optimized out>, argv=<optimized out>) at /root/download/osm2pgsql/osm2pgsql/osm2pgsql.cpp:99
(gdb)
Is it OK?
--
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/651#issuecomment-261714264
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20161119/ed1989ca/attachment.html>
More information about the Tile-serving
mailing list