Skip to Content.
Sympa Menu

freetds - [freetds] Freebcp coredump

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: dmarrer AT bci.cl
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: [freetds] Freebcp coredump
  • Date: Fri, 5 Dec 2008 11:25:46 -0300

Hello:

I have the following problem.

I use freebcp to extract data from SQL Server using the - f option (using
format file)

When I run the command I get a Memory fault (coredump)

Here is the comand and the error details

$freebcp VW_GETDATA out res_eact.txt -S$TDSQUERY -Uuser -Ppassword
-f/home/mysystem/fmt/empvig.fmt
Memory fault(coredump)

$ gdb64 /usr/local/freetds-0.82/bin/freebcp core
Detected IPF executable.
Invoking /opt/langtools/bin/gdb.
HP gdb 5.4.0 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.4.0 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for
warranty/support.
..
Core was generated by `freebcp'.
Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object
#0 0x60000000c01d8e20:1 in strlen+0x41 () from /usr/lib/hpux32/libc.so.1
(gdb) q
$

My format file is the following

8.0
11
1 SQLCHAR 0 2 "
" 1 FIELD1
2 SQLCHAR 0 12 "
" 2 FIELD2
3 SQLCHAR 0 30 "
" 3 FIELD3
4 SQLCHAR 0 30 "
" 4 FIELD4
5 SQLCHAR 0 30 "
" 5 FIELD5
6 SQLCHAR 0 9 "
" 6 FIELD6
7 SQLCHAR 0 40 "
" 7 FIELD7
8 SQLCHAR 0 40 "
" 8 FIELD8
9 SQLCHAR 0 10 "
" 9 FIELD9
10 SQLCHAR 0 40 "
" 10 FIELD10
11 SQLCHAR 0 50 "\n" 11
FIELD11

Any help

Thanks




Archive powered by MHonArc 2.6.24.

Top of Page