[Tile-serving] [openstreetmap/osm2pgsql] Homebrew install has Seg Fault 11 crash when using --tag-transform-script option (#1092)

and-viceversa notifications at github.com
Wed Mar 25 22:34:47 UTC 2020


I'm working on macOS Mojave 10.14.6 with the `brew` install of osm2pgsql.

I went through the [openstreetmap-carto](https://github.com/gravitystorm/openstreetmap-carto/blob/master/INSTALL.md) install tutorial and got Segmentation Fault 11 on the following command:
`osm2pgsql -G --hstore --style openstreetmap-carto.style --tag-transform-script openstreetmap-carto.lua -d gis ~/path/to/data.osm.pbf`

This command succeeds without the --tag-transform-script option (however this is required for osm-carto stylesheets).

I played with `ulimit` and `osm2pgsql -C` options, no joy.

This did not work either:
```
brew install --build-from-source luajit
brew install --build-from-source osm2pgsql
```

The solution was to clone the repo and build my own, which passed all test and works properly with the --tag-transform-script Lua option.

All of this to say, I think there is a problem with the way osm2pgsql is built for Homebrew. This Seg Fault problem has been popping up more and more in recent versions of macOS with varying solutions, and is most likely not a problem with osm2pgsql itself. Please see [here](https://discourse.brew.sh/t/snort-and-macos-mojave-10-14-2-segmentation-fault-11/3977) for a the same bug in an unrelated `brew` install.

-- 
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/1092
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200325/d79a63d3/attachment.htm>


More information about the Tile-serving mailing list