[Tile-serving] [openstreetmap/osm2pgsql] Provide a stack trace on a lua error with flex backend (#1136)

mmd notifications at github.com
Sun Apr 26 08:42:15 UTC 2020


`add_row` directly calls c++ method output_flex_t::table_add_row(), where the exception `Trying to add relation to table 'planet_osm_line'` is thrown.

Backtraces for the C++ callstack are available on some platforms. However, they look fairly obscure (example below based on  #1137). Maybe you could describe what kind of information you were looking for?

```
Using XML parser.
./osm2pgsql(+0xc9e19)[0x5635fed0be19]
/usr/lib/x86_64-linux-gnu/liblua5.2.so.0(+0xb985)[0x7f5435ec5985]
/usr/lib/x86_64-linux-gnu/liblua5.2.so.0(+0x17545)[0x7f5435ed1545]
/usr/lib/x86_64-linux-gnu/liblua5.2.so.0(+0xbcae)[0x7f5435ec5cae]
/usr/lib/x86_64-linux-gnu/liblua5.2.so.0(+0xb2df)[0x7f5435ec52df]
/usr/lib/x86_64-linux-gnu/liblua5.2.so.0(+0xbf11)[0x7f5435ec5f11]
/usr/lib/x86_64-linux-gnu/liblua5.2.so.0(lua_pcallk+0x71)[0x7f5435ec1db1]
./osm2pgsql(_ZN13output_flex_t21call_process_functionEiRKN6osmium9OSMObjectE+0x427)[0x5635fed06497]
./osm2pgsql(_ZN13output_flex_t12relation_addERKN6osmium8RelationE+0x28)[0x5635fed06e48]
./osm2pgsql(_ZNK9osmdata_t12relation_addERKN6osmium8RelationE+0x40)[0x5635fecca580]
node cache: stored: 117(100.00%), storage efficiency: 1.39% (dense blocks: 1, sparse nodes: 116), hit rate: 100.00%
Osm2pgsql failed due to ERROR: Failed to execute lua processing function: osm2pgsql/flex-config/compatible.lua:569: Error in 'add_row': Trying to add relation to table 'planet_osm_line'
```

-- 
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/1136#issuecomment-619510742
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200426/d4e1e959/attachment.htm>


More information about the Tile-serving mailing list