[Bug 724517] Re: isql segfaults in batch mode

Kyle Strickland kyle at kyle.strickland.name
Thu Nov 17 13:20:04 UTC 2011


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.

** Patch added: "Patch to remove errant variable declarations"
   https://bugs.launchpad.net/ubuntu/+source/unixodbc/+bug/724517/+attachment/2599627/+files/fix-scope-bug.diff

-- 
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/724517

Title:
  isql segfaults in batch mode

Status in “unixodbc” package in Ubuntu:
  Confirmed

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!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unixodbc/+bug/724517/+subscriptions




More information about the foundations-bugs mailing list