[Bug 2003003] Re: unixODBC crashes when ODBC trace is enabled
freemine xu
2003003 at bugs.launchpad.net
Thu Apr 27 08:11:25 UTC 2023
the same problem here with steps as follows to reproduce
1. sudo apt install unixodbc
2. sudo apt install unixodbc-dev # this might not be related
3. adding below section in /etc/odbcinst.ini
[ODBC]
Trace=yes
TraceFile=/tmp/blabal.log
3. install any ODBC driver, such as that for mysql
4. isql -v <DSN for datasource> # NOTE: must add -v to enable `verbose` mode
5. afdsfasdfsdf; # any statement that would generate failure SQLxxx call
then, you would get this:
*** buffer overflow detected ***: terminated
Aborted (core dumped)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to unixodbc in Ubuntu.
https://bugs.launchpad.net/bugs/2003003
Title:
unixODBC crashes when ODBC trace is enabled
Status in unixodbc package in Ubuntu:
Incomplete
Bug description:
The package unixODBC 2.3.9-5, that installs by default on Ubuntu 22.04
contains a crash. If ODBC trace is enabled
(https://www.easysoft.com/support/kb/kb00945.html) unixODBC will crash
when calling GetDiagRec(). It reports a buffer overflow while calling
a _sprintf. Newer version of unixODBC, 2.3.11, does not contain this
bug (I've built one from source on my 22.04 VM).
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: unixodbc 2.3.9-5
ProcVersionSignature: Ubuntu 5.15.0-57.63-generic 5.15.74
Uname: Linux 5.15.0-57-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
Date: Mon Jan 16 17:07:21 2023
InstallationDate: Installed on 2023-01-10 (5 days ago)
InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220421)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: unixodbc
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unixodbc/+bug/2003003/+subscriptions
More information about the foundations-bugs
mailing list