Navigation Menu

Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Segfault with render_list #4532

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 6 comments
Closed

Segfault with render_list #4532

openstreetmap-trac opened this issue Jul 23, 2021 · 6 comments

Comments

@openstreetmap-trac
Copy link

Reporter: Andy Allan
[Submitted to the original trac issue database at 12.50pm, Sunday, 19th August 2012]

There is a segfault when running the render_list program from mod_tile.

Command was ./render_list --num-threads=6 --socket=/var/run/renderd/renderd.sock --map=foo --all --min-zoom=7 --max-zoom=7 --min-x=59 --min-y=36 --max-x=64 --max-y=42

Last output is "Waiting for rendering threads to finish"

I suspect the bug was introduced in [28516] , since there's no segfault when I'm running r28499

@openstreetmap-trac
Copy link
Author

Author: stoecker
[Added to the original trac issue at 9.15am, Monday, 20th August 2012]

As I don't use the renderd, but only mod_tile you need to help me fix it. Please compile the tool with debug information enabled (option -g) and do the same command in gdb - First call "gdb render_list" and then "run ...args...".

Result should be a much more specific error position which helps to find the issue. Please supply that information.

@openstreetmap-trac
Copy link
Author

Author: sly
[Added to the original trac issue at 8.49pm, Friday, 24th August 2012]

I might have the same issue.

Here is the result I have runing with gdb :

$ gdb /usr/local/bin/render_list
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 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".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/local/bin/render_list...done.
(gdb) run -a -Z2 -z0 -mhiking
Starting program: /usr/local/bin/render_list -a -Z2 -z0 -mhiking
[Thread debugging using libthread_db enabled]
Rendering client
Planet file updated at Fri Aug 24 17:26:58 2012
Starting 1 rendering threads
[New Thread 0x7ffff75de700 (LWP 31286)]
Rendering all tiles from zoom 0 to zoom 2
Rendering all tiles for zoom 0 from (0, 0) to (0, 0)
Rendering all tiles for zoom 1 from (0, 0) to (1, 1)
Rendering all tiles for zoom 2 from (0, 0) to (3, 3)
Waiting for rendering threads to finish

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff75de700 (LWP 31286)]
0x00007ffff762df46 in _IO_vfscanf () from /lib/libc.so.6
(gdb)

@openstreetmap-trac
Copy link
Author

Author: sly
[Added to the original trac issue at 8.50pm, Friday, 24th August 2012]

whoops, with more readability

$ gdb /usr/local/bin/render_list 
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/render_list...done.
(gdb) run -a -Z2 -z0 -mhiking
Starting program: /usr/local/bin/render_list -a -Z2 -z0 -mhiking
[Thread debugging using libthread_db enabled]
Rendering client
Planet file updated at Fri Aug 24 17:26:58 2012
Starting 1 rendering threads
[New Thread 0x7ffff75de700 (LWP 31286)]
Rendering all tiles from zoom 0 to zoom 2
Rendering all tiles for zoom 0 from (0, 0) to (0, 0)
Rendering all tiles for zoom 1 from (0, 0) to (1, 1)
Rendering all tiles for zoom 2 from (0, 0) to (3, 3)
Waiting for rendering threads to finish

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff75de700 (LWP 31286)]
0x00007ffff762df46 in _IO_vfscanf () from /lib/libc.so.6
(gdb) 

@openstreetmap-trac
Copy link
Author

Author: stoecker
[Added to the original trac issue at 2.43pm, Saturday, 25th August 2012]

Thanks. Please enter "bt" at the end and give me the output. The carash happens in a scanf() system call.

@openstreetmap-trac
Copy link
Author

Author: stoecker
[Added to the original trac issue at 2.53pm, Saturday, 25th August 2012]

Please try r28628. It hopefully solves that issue. One of the many printf calls I changed actually was a scanf call :-)

@openstreetmap-trac
Copy link
Author

Author: sly
[Added to the original trac issue at 3.01pm, Wednesday, 29th August 2012]

problem solved !

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant