Bug #96076 item_geofunc_relchecks_bgwrap -Werror=maybe-uninitialized]

Submitted: 2 Jul 2019 12:53 Modified: 12 Jul 2019 18:30
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.18 OS:Any
Assigned to: CPU Architecture:Any

[2 Jul 2019 12:53] Tor Didriksen
Description:
sql/item_geofunc_relchecks_bgwrap.cc:
In static member function
static int BG_wrap<Geom_types>::multipoint_disjoint_multi_geometry(const Multipoint&, const Geom_type&) [with Geom_type = Gis_multi_polygon; Geom_types = BG_models<boost::geometry::cs::cartesian>]:

sql/item_geofunc_relchecks_bgwrap.cc:496:44: error: *((void*)& box +24) may be used uninitialized in this function [-Werror=maybe-uninitialized]
                rtree.qbegin(bgi::intersects(box));
                             ~~~~~~~~~~~~~~~^~~~~

How to repeat:
Linux ellex07 4.18.0-32.el8.aarch64 #1 SMP Thu Mar 28 15:54:26 PDT 2019
aarch64 aarch64 aarch64 GNU/Linux

$cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.0"
ID="ol"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.0"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.0"

cmake <path to source> -DMYSQL_MAINTAINER_MODE=1
make mysqld

Suggested fix:
Silence warning, as compiler bug?? (not seen anywhere else)
[12 Jul 2019 18:30] Paul DuBois
Posted by developer:
 
Fixed in 8.0.18.

Code cleanup. No changelog entry required.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.