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 added: "Shows isql crashing in batch mode, with no commands
having been entered, as soon as ctrl-d is pressed."
https://bugs.launchpad.net/ubuntu/+source/unixodbc/+bug/724517/+attachment/1878692/+files/gdb-isql.txt
--
You received this bug notification because you are a member
Public bug reported:
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 iS