Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault after pending ways #191

Closed
pnorman opened this issue Oct 14, 2014 · 2 comments
Closed

Segmentation fault after pending ways #191

pnorman opened this issue Oct 14, 2014 · 2 comments

Comments

@pnorman
Copy link
Collaborator

pnorman commented Oct 14, 2014

Options were -C 22000 -d gis --flat-nodes flat.nodes --number-processes 8 --slim -S default.style ~/osm/planet/planet-130904.osm.pbf

Version fa10e45

I was running in gdb, so was immediately able to get a backtrace.

All child processes exited

119268001 Pending ways took 10500s at a rate of 11358.86/s

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 803806400 (LWP 100772/osm2pgsql)]
0x00000008025cdaf3 in sbrk () from /lib/libc.so.7
(gdb) bt
#0  0x00000008025cdaf3 in sbrk () from /lib/libc.so.7
#1  0x00000008025cdea9 in sbrk () from /lib/libc.so.7
#2  0x00000008025d94dc in free () from /lib/libc.so.7
#3  0x000000080085d1f4 in PQclear () from /usr/local/lib/libpq.so.5
#4  0x0000000000410391 in pgsql_iterate_ways (callback=0x40be20 <pgsql_out_way>) at middle-pgsql.c:1061
#5  0x000000000040c096 in pgsql_out_stop () at output-pgsql.c:1182
#6  0x0000000000412ebb in main (argc=13, argv=0x7fffffffd5e0) at osm2pgsql.c:781
@pnorman
Copy link
Collaborator Author

pnorman commented Oct 14, 2014

Locations of code:

middle-pgsql.c:1061
output-pgsql.c:1182
osm2pgsql.c:781

In suitable frame,

(gdb) print res_ways
$1 = (PGresult *) 0xdc9ff5100
(gdb) print PQntuples(res_ways)
$2 = 119268001

@pnorman
Copy link
Collaborator Author

pnorman commented Oct 25, 2014

Fixed in #187

@pnorman pnorman closed this as completed Oct 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant