[postgis-tickets] [PostGIS] #5014: flatgeobuf test failure

PostGIS trac at osgeo.org
Fri Nov 26 23:28:07 PST 2021


#5014: flatgeobuf test failure
-----------------------------+---------------------------
  Reporter:  Bas Couwenberg  |      Owner:  pramsey
      Type:  defect          |     Status:  new
  Priority:  critical        |  Milestone:  PostGIS 3.2.0
 Component:  postgis         |    Version:  master
Resolution:                  |   Keywords:
-----------------------------+---------------------------

Comment (by Bas Couwenberg):

 Still fails with beta2.

 The backtrace posted earlier shows:
 {{{
 memcpy ([...]) at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29
 }}}

 This suggest hardening flags may be the reason you cannot reproduce the
 issue when not using `dpkg-buildpackage`. The flags it uses are:
 {{{
 # DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --export=sh
 export CFLAGS="-g -O2 -ffile-prefix-map=/build/postgis=. -fstack-
 protector-strong -Wformat -Werror=format-security"
 export CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2"
 export CXXFLAGS="-g -O2 -ffile-prefix-map=/build/postgis=. -fstack-
 protector-strong -Wformat -Werror=format-security"
 export DFLAGS="-frelease"
 export FCFLAGS="-g -O2 -ffile-prefix-map=/build/postgis=. -fstack-
 protector-strong"
 export FFLAGS="-g -O2 -ffile-prefix-map=/build/postgis=. -fstack-
 protector-strong"
 export GCJFLAGS="-g -O2 -ffile-prefix-map=/build/postgis=. -fstack-
 protector-strong"
 export LDFLAGS="-Wl,-z,relro -Wl,-z,now"
 export OBJCFLAGS="-g -O2 -ffile-prefix-map=/build/postgis=. -fstack-
 protector-strong -Wformat -Werror=format-security"
 export OBJCXXFLAGS="-g -O2 -ffile-prefix-map=/build/postgis=. -fstack-
 protector-strong -Wformat -Werror=format-security"
 }}}
 [https://lwn.net/Articles/584225/ -fstack-protector-strong] might be it.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5014#comment:15>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list