Skip to content

Commit 7e59bc0

Browse files
grooverdanRazvanLiviuVarzaru
authored andcommitted
MDEV-38838 Memory loss in CONNECT from handler::ha_rnd_init
unixodbc-dev has a memory leak. Apply patch from upstream. This will arrive in Debian stable eventtually https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1136221 Added the libodbccr (cursor) libraries to the MSAN since they where built. Maybe be used at some stage. Workaround still in review queue - MariaDB/server#5050
1 parent 3d445c7 commit 7e59bc0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ci_build_images/msan.instrumentedlibs.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ if [ "${VERSION_CODENAME}" = trixie ]; then
101101
apt-get install --no-install-recommends -y libltdl-dev
102102
fi
103103
apt-get source unixodbc-dev
104+
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1136221
105+
# awaiting arrival on Debian stable.
104106
mv unixodbc-*/* .
107+
curl https://github.com/lurcher/unixODBC/commit/447ca7624394f8cc9825c6ac3ff60e3715831b87.patch | patch -p1
105108
libtoolize --force
106109
aclocal
107110
autoheader
@@ -110,7 +113,7 @@ automake --add-missing
110113
./configure --enable-fastvalidate --with-pth=no --with-included-ltdl=yes
111114
make -j "$(nproc)"
112115
find .
113-
mv ./DriverManager/.libs/libodbc.so* ./odbcinst/.libs/libodbcinst.so* "$MSAN_LIBDIR"
116+
mv ./cur/.libs/libodbccr* ./DriverManager/.libs/libodbc.so* ./odbcinst/.libs/libodbcinst.so* "$MSAN_LIBDIR"
114117
rm -rf -- *
115118

116119
##libltdl - C/ODBC

0 commit comments

Comments
 (0)