[freetds] segmentation error on freebcp

Lowden, James K james.k.lowden at alliancebernstein.com
Fri Jul 28 10:31:27 EDT 2006

> From: cathy.lindros at iff.com
> Sent: Thursday, July 27, 2006 4:32 PM
> We have installed freetds and are having no problems with tsql.
> However, we can not run freebcp.  Any help would be appreciated.
> The command below was issued which resulted in Segmentation Fault.
> $ freebcp cwb.dbo.costbook out test.dat -U {dbuser_id}  -P {dbpass}
> -S {db_server}  -I /usr/sybase/freeware/freetds/etc/freetds.conf -c 
> Segmentation fault(coredump)
> Microsoft SQL Server 2000 Enterprise Edition (clustered) sp3a
> ...
> CREATE TABLE dbo.CostBook (
> ...
>  comment          [commenttype]       NULL,
> ...
> ) go
> System info ------------------ OS   -   AIX 5.3 Hardware Arch -
> IBM P Series running AIX 5.3
>  freebcp version $Id: freebcp.c,v 2005/02/03 09:39:14

There are a couple of possibilities, both of which would be solved by
using a newer version.  (You're using 0.63.)  

If your datafile is more than 2 GB, freebcp will segfault on you.  That
was fixed in January of this year.  

ISTR that bcp had a problem with text data, but I don't find any
specific information about that in our change logs.  It might have been
related to fields of a particular size.  

If you want to stick with the 0.63 branch, it was updated after the
release.  I believe Frediano posted a patch on the Source Forge site, or
it could be contructed from CVS.  



The information contained in this transmission may be privileged and
confidential and is intended only for the use of the person(s) named
above. If you are not the intended recipient, or an employee or agent responsible
for delivering this message to the intended recipient, any review, dissemination,
distribution or duplication of this communication is strictly prohibited. If you are
not the intended recipient, please contact the sender immediately by reply e-mail
and destroy all copies of the original message. Please note that we do not accept
account orders and/or instructions by e-mail, and therefore will not be responsible
for carrying out such orders and/or instructions.  If you, as the intended recipient
of this message, the purpose of which is to inform and update our clients, prospects
and consultants of developments relating to our services and products, would not
like to receive further e-mail correspondence from the sender, please "reply" to the
sender indicating your wishes.  In the U.S.: 1345 Avenue of the Americas, New York,
NY 10105.

More information about the FreeTDS mailing list