Skip to Content.
Sympa Menu

freetds - Re: [freetds] freebcp - problems with blobs >8K

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Constantin Vasilyev <vasilyev AT ncbi.nlm.nih.gov>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] freebcp - problems with blobs >8K
  • Date: Thu, 4 Sep 2014 14:28:51 -0400

I'm trying this again with freshly compiled nightly snapshot of FreeTDS and still getting errors:

> src/apps/freebcp foo.dbo.blobs out /tmp/blobs.bcp -c -S MSSQL0 -U *** -P ***

Starting copy...
*** glibc detected *** /tmp/freetds-dev.0.92.377/src/apps/.libs/lt-freebcp: double free or corruption (!prev): 0x000000000196a5c0 ***
Segmentation fault

Am I doing something wrong?


Constantin


Frediano Ziglio wrote on 5/19/2014 6:32 PM:
2014-05-16 18:42 GMT+01:00 Constantin Vasilyev <vasilyev AT ncbi.nlm.nih.gov>:
Hi FreeTDS team,


I ran into a problem trying to freebcp some larger blobs in and out of MS SQL
2008 server.
The host table may look like:

create table blobs (id int not null, data image)



Smaller blobs load in and out just fine:

cat /tmp/blobs.bcp
1 0123456780
freebcp foo.dbo.blobs in /tmp/blobs.bcp -S MSSQL0 -c -U **** -P ****

Starting copy...
1 rows copied.


but once the blob gets larger than 8K the command fails with errors like:


Starting copy...
*** glibc detected *** freebcp: free(): corrupted unsorted chunks:
0x0000000002241a90 ***
*** glibc detected *** freebcp: malloc(): memory corruption:
0x0000000002243d10 ***

I tried 0.91 stable and 0.92.377 with the same result.

Any clue?



Constantin



Fixed in both 0.91 and master.

Frediano
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds






  • Re: [freetds] freebcp - problems with blobs >8K, Constantin Vasilyev, 09/04/2014

Archive powered by MHonArc 2.6.24.

Top of Page