Skip to Content.
Sympa Menu

overpass - Re: [overpass] Segmentation fault

Please Wait...

overpass@listes.openstreetmap.fr

Subject: Overpass API developpement

List archive

Re: [overpass] Segmentation fault


Chronological Thread 
  • From: Igor Brejc <igor.brejc@gmail.com>
  • To: Roland Olbricht <roland.olbricht@gmx.de>
  • Cc: overpass@listes.openstreetmap.fr
  • Subject: Re: [overpass] Segmentation fault
  • Date: Sun, 30 Jul 2017 21:35:25 +0200

Hi,

I have attached the gdb session output and .osc file.

On Sun, Jul 30, 2017 at 8:38 PM, Roland Olbricht <roland.olbricht@gmx.de> wrote:
Hi Igor,

I'll do that when I get back home (soon). The osc file is not too big, but it's not empty,  it has a few deleted nodes, updated ways and such.

thank you for the feedback. I have forgotten one thing in the instructions:

You need after the two print command the command

c

to le the program run to the next hit of the breakpoint. You can cycle through the three commands with keys up and then copy the whole session output at once.

Best regards,

Roland

igor@jazz:~/overpass$ gdb osm-3s_v0.7.54/bin/update_database
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 osm-3s_v0.7.54/bin/update_database...done.
(gdb) break transaction.h:102
Breakpoint 1 at 0x4072e4: transaction.h:102. (21 locations)
(gdb) run </tmp/crash_input.osc
Starting program: /home/igor/overpass/osm-3s_v0.7.54/bin/update_database
</tmp/crash_input.osc
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Reading XML file ... finished reading nodes.
Breakpoint 1, Nonsynced_Transaction::data_index (this=0x779280, fp=0x778c40)
at overpass_api/osm-backend/../../template_db/transaction.h:102
102 if (data_index != 0)
(gdb) print data_index
$1 = (File_Blocks_Index_Base *) 0x780af0
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
$2 = (OSM_File_Properties<Uint32_Index> *) 0x778c40
(gdb) c
Continuing.

Breakpoint 1, Nonsynced_Transaction::data_index (this=0x779280, fp=0x778c80)
at overpass_api/osm-backend/../../template_db/transaction.h:102
102 if (data_index != 0)
(gdb) print data_index
$3 = (File_Blocks_Index_Base *) 0xdf3a90
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
$4 = (OSM_File_Properties<Uint32_Index> *) 0x778c80
(gdb) c
Continuing.
Flushing to database ..
Breakpoint 1, Nonsynced_Transaction::data_index (fp=0x778d40, this=0x779280)
at overpass_api/osm-backend/../../template_db/transaction.h:102
102 if (data_index != 0)
(gdb) print data_index
$5 = <optimized out>
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
$6 = (OSM_File_Properties<Uint32_Index> *) 0x778d40
(gdb) c
Continuing.
...
Breakpoint 1, Nonsynced_Transaction::data_index (this=0x779280, fp=0x778ce0)
at overpass_api/osm-backend/../../template_db/transaction.h:102
102 if (data_index != 0)
(gdb) print data_index
$7 = (File_Blocks_Index_Base *) 0x1930fa0
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
$8 = (OSM_File_Properties<Uint32_Index> *) 0x778ce0
(gdb) c
Continuing.
. done.
Reading XML file ... finished reading ways.
Breakpoint 1, Nonsynced_Transaction::data_index (this=0x779280, fp=0x778d80)
at overpass_api/osm-backend/../../template_db/transaction.h:102
102 if (data_index != 0)
(gdb) print data_index
$9 = (File_Blocks_Index_Base *) 0xe00a50
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
$10 = (OSM_File_Properties<Uint32_Index> *) 0x778d80
(gdb) c
Continuing.

Breakpoint 1, Nonsynced_Transaction::data_index (this=0x779280, fp=0x778dc0)
at overpass_api/osm-backend/../../template_db/transaction.h:102
102 if (data_index != 0)
(gdb) print data_index
$11 = (File_Blocks_Index_Base *) 0x1ec3f70
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
$12 = (OSM_File_Properties<Uint32_Index> *) 0x778dc0
(gdb) c
Continuing.
Flushing to database ..
Breakpoint 1, Nonsynced_Transaction::data_index (fp=0x778e40, this=0x779280)
at overpass_api/osm-backend/../../template_db/transaction.h:102
102 if (data_index != 0)
(gdb) print data_index
$13 = <optimized out>
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
$14 = (OSM_File_Properties<Uint32_Index> *) 0x778e40
(gdb) c
Continuing.
...
Breakpoint 1, Nonsynced_Transaction::data_index (this=0x779280, fp=0x778e00)
at overpass_api/osm-backend/../../template_db/transaction.h:102
102 if (data_index != 0)
(gdb) print data_index
$15 = (File_Blocks_Index_Base *) 0x1f69050
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
$16 = (OSM_File_Properties<Uint32_Index> *) 0x778e00
(gdb) c
Continuing.
. done.
Reading XML file ...
Breakpoint 1, Nonsynced_Transaction::data_index (this=0x779280, fp=0x778ec0)
at overpass_api/osm-backend/../../template_db/transaction.h:102
102 if (data_index != 0)
(gdb) print data_index
$17 = (File_Blocks_Index_Base *) 0xe00940
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
$18 = (OSM_File_Properties<Uint32_Index> *) 0x778ec0
(gdb) c
Continuing.
finished reading relations.
Breakpoint 1, Nonsynced_Transaction::data_index (this=0x779280, fp=0x778e80)
at overpass_api/osm-backend/../../template_db/transaction.h:102
102 if (data_index != 0)
(gdb) print data_index
$19 = (File_Blocks_Index_Base *) 0x22756e0
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
$20 = (OSM_File_Properties<Uint32_Index> *) 0x778e80
(gdb) c
Continuing.

Breakpoint 1, Nonsynced_Transaction::data_index (this=0x779280, fp=0x778f00)
at overpass_api/osm-backend/../../template_db/transaction.h:102
102 if (data_index != 0)
(gdb) print data_index
$21 = (File_Blocks_Index_Base *) 0x227b2d0
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
$22 = (OSM_File_Properties<Uint32_Index> *) 0x778f00
(gdb) c
Continuing.
Flushing to database ..
Breakpoint 1, Nonsynced_Transaction::data_index (fp=0x778fc0, this=0x779280)
at overpass_api/osm-backend/../../template_db/transaction.h:102
102 if (data_index != 0)
(gdb) print data_index
$23 = <optimized out>
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
$24 = (OSM_File_Properties<Uint32_Index> *) 0x778fc0
(gdb) c
Continuing.
...
Breakpoint 1, Nonsynced_Transaction::data_index (this=0x779280, fp=0x778f60)
at overpass_api/osm-backend/../../template_db/transaction.h:102
102 if (data_index != 0)
(gdb) print data_index
$25 = (File_Blocks_Index_Base *) 0x31a82f0
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
$26 = (OSM_File_Properties<Uint32_Index> *) 0x778f60
(gdb) c
Continuing.
.. done.

Program received signal SIGSEGV, Segmentation fault.
File_Blocks_Index<Uint32_Index>::~File_Blocks_Index (this=0x780af0,
__in_chrg=<optimized out>)
at overpass_api/core/../../template_db/file_blocks_index.h:303
303 for (typename std::list< File_Block_Index_Entry< TIndex >
>::const_iterator
(gdb) print data_index
No symbol "data_index" in current context.
(gdb) print (OSM_File_Properties<Uint32_Index>*)fp
No symbol "fp" in current context.

Attachment: crash_input.osc
Description: Binary data




Archive powered by MHonArc 2.6.19+.

Top of Page