Please sync gdal 1.5.2-3 (universe) from Debian unstable (main).

Bug #271670 reported by Mark Baas
22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdal (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I refer to debian bug report http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489124

libgdal1-1.5.0_1.5.2 couse Segmentation fault in any in depend app
like mapserver qgis

Fix release in -3, but needs to be synced with ubuntu

Revision history for this message
Mark Baas (mark-baas123) wrote :

Builds do not work with gcc 4.3 it should be build with gcc 4.2 (and g++ 4.2)

William Grant (wgrant)
Changed in gdal:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

"Builds do not work with gcc 4.3" - the gdal package in Debian doesn't build-depend on gcc-4.2. This is not a candidate for syncing if the package needs to be changed to specify a non-default compiler; unsubscribing ubuntu-archive.

(BTW, the default compiler in Debian unstable is also gcc-4.3 -- so how does this package work there?)

Revision history for this message
Mark Baas (mark-baas123) wrote :

Look on gcc-4.3 i get this error while compiling:
usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'

I don't know what to do with that. What is the difference between gcc-4.3 in ubuntu and debian?

Revision history for this message
wlx (wangliangxu) wrote :

please also see this bug report: http://trac.osgeo.org/gdal/ticket/2138

Revision history for this message
Mark Baas (mark-baas123) wrote :

Seems that the libtool should be updated. However I still dont understand, debian also didnt update their libtool and has built the package.

Revision history for this message
Andre Schild (andre-schild) wrote :

This gdal problem also affects QLandkarteGT. (It's the successor of QLandkarte)

http://sourceforge.net/mailarchive/message.php?msg_name=49249BED.6080600%40schild.ws

Revision history for this message
Mark Baas (mark-baas123) wrote :

Forget about the libtool. Please disable ruby build and it is okay. I really have no clue why debian does not have problems and has the build.

Revision history for this message
Andre Schild (andre-schild) wrote :

Any hints on how to disble ruby bindings ?

I did change --with-ruby into --without-ruby in debian/rules and did rebuild with dpkg-buildpackage -rfakeroot -b

Another question is why intrepid has a binary package, but are not able to rebuild it... ?

Revision history for this message
Mark Baas (mark-baas123) wrote :

add this repo
deb http://ppa.launchpad.net/qgis/ubuntu intrepid main
deb-src http://ppa.launchpad.net/qgis/ubuntu intrepid main

Revision history for this message
Andre Schild (andre-schild) wrote :

Works fine.

Thanks.

Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

Fixed in Jaunty

Changed in gdal:
status: Confirmed → Fix Released
Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

Sorry all packages apparently fail to build.

Changed in gdal:
status: Fix Released → Confirmed
Revision history for this message
ZandrMilewski (n6mod) wrote :

FWIW, gdal's own tests fail with the packages as distributed. Output including segfault attached.

Revision history for this message
ZandrMilewski (n6mod) wrote :

Though... so do the packages Mark linked above.

Revision history for this message
Jachym (jachym-cepicky) wrote :

I did not fully understand the right approach - should we compile the gdal package with gcc-4.2 ? This did not work for me (same error with the ruby bindings).

Revision history for this message
ZandrMilewski (n6mod) wrote :

I don't use ruby, so I don't see that problem. What I do see is that the tests from gdal.org will segfault unless you build with gcc-4.2, at least on Intrepid. I don't have the same issue on Hardy.

Revision history for this message
Markus Neteler (neteler) wrote :

cited from:

http://lists.osgeo.org/pipermail/gdal-dev/2009-March/020022.html
[gdal-dev] [SOLVED] GDAL crashing on Ubuntu 8.10

------- begin citation -----------------
Even Rouault even.rouault at mines-paris.org
Tue Mar 17 19:33:57 EDT 2009

Hi all,

Several users have reported over the past few weeks various crashes when
running GDAL, in particular in OGRFeature::GetFieldAsString(). It has been
finally identified that it was due to stricter guard logic in GCC that was
enabled in Ubuntu 8.10 and later versions because -D_FORTIFY_SOURCE=2 is set
by default and is activated when -O is set to 2 or higher.
A similar issue was detected in DTEDDataset::CreateCopy() a few weeks ago and
was also fixed.

The fixes have been applied to current development version, 1.6 stable branch
and 1.5 branch. Please refer to http://trac.osgeo.org/gdal/ticket/2896 and
http://trac.osgeo.org/gdal/ticket/2824 if you need to apply the relevant
patches without waiting for next stable releases.

However, it might be possible that similar issues still remain, especially in
less popular drivers, so please report it.

Best regards,

Even
------- end citation -----------------

Revision history for this message
Russell McOrmond (russell-flora) wrote :

I'm running Ubuntu 9.10 and have noticed problems that seem to be discussed here. See Bug #459178

Are there people working on this? Thanks.

Revision history for this message
Alan Boudreault (aboudreault) wrote :

1.5.2-3 is relatively old too, Gdal 1.6.2-1 is currently in debian unstable.

Revision history for this message
Russell McOrmond (russell-flora) wrote :

It would be great if Ubuntu could move to the current version. From http://trac.osgeo.org/gdal/wiki/DownloadSource

1.6.2 Latest Stable Release - August 2009

Revision history for this message
Even Rouault (even-rouault) wrote :

Additionnal ticket and fix for similar issue (buffer overflow triggered by -D_FORTIFY_SOURCE=2) : http://trac.osgeo.org/gdal/ticket/3223

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Lucid has 1.6.2-1.
Closing the bug report as fixed.

Changed in gdal (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.