From edd at debian.org  Tue Jan 26 12:17:16 2010
From: edd at debian.org (Dirk Eddelbuettel)
Date: Tue, 26 Jan 2010 05:17:16 -0600
Subject: [Rd] Stack smashing in RODBC
In-Reply-To: <4B5E8A5A.4050504@redhat.com>
References: <4B5E49D9.7000403@redhat.com>
	<19294.20484.362175.286202@ron.nulle.part>
	<4B5E8A5A.4050504@redhat.com>
Message-ID: <19294.53052.112201.63442@ron.nulle.part>


On 26 January 2010 at 01:23, "Tom \"spot\" Callaway" wrote:
| On 01/25/2010 09:14 PM, Dirk Eddelbuettel wrote:
| > I cannot replicate this on Debian. The error gets trapped just fine. This may
| > be particular to your builds or setup. I don;t see an R error (but of course
| > do not speak for R Core). Here is a short version, it is the same in normal
| > interactive mode.
| 
| I don't think Debian builds with stack protection in glibc, whereas
| Fedora does (and I think Ubuntu Hardy and onward also do).

As I get the exact same result on Ubuntu, I continue to suspect that the
issue with Fedora.

edd at joe:~$ echo 'library(RODBC); channel <- odbcConnect("foo", uid="bar")' | R --slave
Warning messages:
1: In odbcDriverConnect("DSN=foo;UID=bar") :
  [RODBC] ERROR: state IM002, code 0, message [unixODBC][Driver Manager]Data source name not found, and no default driver specified
2: In odbcDriverConnect("DSN=foo;UID=bar") : ODBC connection failed
edd at joe:~$ COLUMNS=78 dpkg -l r-base-core r-cran-rodbc | tail -2
ii  r-base-core    2.10.1-2karmic GNU R core of statistical computation and gr
ii  r-cran-rodbc   1.3-1-1karmic0 GNU R package for ODBC database access
edd at joe:~$

FWIW, on Debian and Ubuntu, unixodbc_2.2.11 is used.

Dirk

-- 
Three out of two people have difficulties with fractions.



[Rd] Stack smashing in RODBC
Dirk Eddelbuettel