Problem with gdal

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with gdal

kieran.mccusker
Hi

Not sure if this is the right list as it seems like a packaging issue with GDAL but here goes...

I am using gdal32 on fedora 33, but I've seen the problem before.

I am using the github repo pramsey/pgsql-ogr-fdw to build a command line utility 
ogr_fdw_info which reads things like excel spreadsheets and generates foreign table definitions for them.

The problem I am having is that when this program ends it errors on:
free(): invalid pointer 
Aborted (core dumped)

I've poked around but am struggling. I believe it is a problem with a destructor in proj but don't take my word for it.

After using ldd on ogr_fdw_info I can make the problem disappear by doing the following:

rm /lib64/libproj.so.15
ln -s /usr/proj72/lib/libproj.so.19 /lib64/libproj.so.15

Any help gratefully received

Thanks

Kieran
Reply | Threaded
Open this post in threaded view
|

Re: Problem with gdal

Magnus Hagander-2
On Thu, Nov 12, 2020 at 11:17 AM Kieran McCusker
<[hidden email]> wrote:

>
> Hi
>
> Not sure if this is the right list as it seems like a packaging issue with GDAL but here goes...
>
> I am using gdal32 on fedora 33, but I've seen the problem before.
>
> I am using the github repo pramsey/pgsql-ogr-fdw to build a command line utility
> ogr_fdw_info which reads things like excel spreadsheets and generates foreign table definitions for them.
>
> The problem I am having is that when this program ends it errors on:
> free(): invalid pointer
> Aborted (core dumped)
>
> I've poked around but am struggling. I believe it is a problem with a destructor in proj but don't take my word for it.
>
> After using ldd on ogr_fdw_info I can make the problem disappear by doing the following:
>
> rm /lib64/libproj.so.15
> ln -s /usr/proj72/lib/libproj.so.19 /lib64/libproj.so.15

Hi!

This looks like an issue in the packaging that Devrim is already
working on -- see https://redmine.postgresql.org/issues/5961

Hopefully there will be a fix soon.

--
 Magnus Hagander
 Me: https://www.hagander.net/
 Work: https://www.redpill-linpro.com/


Reply | Threaded
Open this post in threaded view
|

Re: Problem with gdal

Devrim GÜNDÜZ
In reply to this post by kieran.mccusker

Hi,

On Thu, 2020-11-12 at 10:16 +0000, Kieran McCusker wrote:
> I am using the github repo pramsey/pgsql-ogr-fdw to build a command
> lin utilit ogr_fdw_info which reads things like excel spreadsheets
> and generates foreign table definitions for them.

RPMs are available in the same RPM repo, which actually does not have
this issue:

# ldd /usr/pgsql-13/lib/ogr_fdw.so | grep -i proj
        libproj.so.19 => /usr/proj72/lib/libproj.so.19 (0x00007fe7df219000)

(Though I know that this package needs more attention from me
nowadays).

> The problem I am having is that when this program ends it errors on:
> free(): invalid pointer
> Aborted (core dumped)
>
> I've poked around but am struggling. I believe it is a problem with a
> destructor in proj but don't take my word for it.
>
> After using ldd on ogr_fdw_info I can make the problem disappear by
> doing the following:
>
> rm /lib64/libproj.so.15
> ln -s /usr/proj72/lib/libproj.so.19 /lib64/libproj.so.15
>
> Any help gratefully received
As Magnus pointed out, I worked on this issue a lot in the last 2
weeks. First of all: Please do not remove that symlink. Removing OS-
supplied proj packages is sufficient (if you are building from source,
please also remove proj-devel package that comes from OS. I could not
find the exact cause why it still also links to the OS-supplied Proj,
but until them please remove OS Proj.

-HTH

Regards,

--
Devrim Gündüz
Open Source Solution Architect, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

signature.asc (849 bytes) Download Attachment