isql segfaults in batch mode

Bug #724517 reported by Kyle Strickland
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
unixodbc (Debian)
Fix Released
Unknown
unixodbc (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: unixodbc

Ubuntu 10.10, unixodbc_2.2.14p2-1ubuntu1

Steps to reproduce:
* run "isql -b MyDSN MyUID MyPWD"
* enter any SQL statement on one line, or nothing at all
* press Ctrl-D (EOF)
"Segmentation fault"

I had this occur both with FreeTDS and with IBM iSeries ODBC driver. Crash occurs at line 264 of isql.c, apparently due to a null pointer dereference.

Thanks!

Tags: patch
Revision history for this message
Chuck Short (zulcss) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a backtrace following the instructions at http://wiki.ubuntu.com/DebuggingProgramCrash and upload the backtrace (as an attachment) to the bug report. This will greatly help us in tracking down your problem.

Changed in unixodbc (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Kyle Strickland (jkstrick) wrote :
Chuck Short (zulcss)
Changed in unixodbc (Ubuntu):
importance: Low → Medium
status: Incomplete → Confirmed
Revision history for this message
Kyle Strickland (jkstrick) wrote :

I don't know why I didn't see this before, but the bug seems to come from an extra variable declaration in an inner scope. Removing that declaration fixed the problem.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch to remove errant variable declarations" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Steve Langasek (vorlon) wrote :

This was fixed in version 2.2.14p2-3 and later of the unixodbc package.

Changed in unixodbc (Ubuntu):
status: Confirmed → Fix Released
Changed in unixodbc (Debian):
status: Unknown → 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.