Skip to Content.
Sympa Menu

freetds - Re: [freetds] segmentation error on freebcp

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <james.k.lowden AT alliancebernstein.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] segmentation error on freebcp
  • Date: Fri, 28 Jul 2006 10:31:27 -0400

> 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 1.34.2.1 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.

HTH.

--jkl

-----------------------------------------
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.




Archive powered by MHonArc 2.6.24.

Top of Page