freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Ronildo Quadros" <rquadros AT aumbr.com.br>
- To: <freetds AT lists.ibiblio.org>
- Subject: [freetds] bsqldb SEGFAULT abend
- Date: Tue, 30 Mar 2010 18:37:33 -0300
Hi,
Would you please help me determine the cause for this abend?
SQL Server version: 9.0.2047 (SQL SERVER 2005)
FreeTDS version (or snapshot date, if not a release): 0.82
which client library you are using: db-lib
what language or Perl module, as appropriate, you're using: n/a
your client OS and hardware architecture: Linux Fedora Core 8 virtual
machine under VMWare hosted by Windows 2003 Server - Intel P4
____________________________________________________________________________
_____________________
SESSION LOG
[aum@ctmserver freetds-0.82]$ export TDSDUMP=bdqldb.dmp
[aum@ctmserver freetds-0.82]$ bsqldb -S aumdomain -U aum -P xxxxx -D ctm
select CMD_LINE from BSQLDB_TEST;
go
CMD_LINE
--------
ctmcontb
ctmcontb
Segmentation Fault <== this line was translated from portuguese
____________________________________________________________________________
_____________________
TDSDUMP (attached)
____________________________________________________________________________
_____________________
TABLE DATA SAMPLE
ctmcontb -DELETEFROM "*" $1 $2
ctmcontb -DELETEFROM "*" $1 $2
ctmudchk -DAILY SYSTEM -ACTION LIST
ctmudchk -DAILY SYSTEM -ACTION ORDER
ctmdiskspace -limit 25% -path $HOME
ctmjsa $1 $2
ctmruninf -list $1$2 $1$3 -total > $HOME/temp/ctmruninf_$1.log
ls -l
ctmlog list $1 0000 $1 2359 $HOME/temp/ctmlog_$1.log
gzip $HOME/temp/ctmlog_*.log
find $HOME/ctm_server/proclog.save -mtime +3 -print | xargs rm
shctm
ctmdiskspace -LIMIT 30% -PATH /
ctmcontb -LIST "*" $1 > $HOME/temp/ctmcontb_$1.log
ctmdbopt
ctmdbcount
ctmdbspace -limit 60
ctmlog delete $1 0000 $1 2359
ctmruninf -delete 20$1$3 20$2$4
ctmstats -delete $1$3 $2$4
sleep 300
hostname
hostname
find $HOME/oracle/admin/ctmsrv63/bdump/ctm*.trc -mtime +5 -print | xargs rm
____________________________________________________________________________
_____________________
TABLE DDL
/****** Object: Table [dbo].[BSQLDB_TEST] Script Date: 03/29/2010
16:44:59 ******/
CREATE TABLE [dbo].[BSQLDB_TEST](
[CMD_LINE] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[KEY] [smallint] IDENTITY(1,1) NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
____________________________________________________________________________
_____________________
FREETDS.CONF
[aumdomain]
host = 192.168.2.2
port = 1433
tds version = 8.0
____________________________________________________________________________
_____________________
I looked into the source for BSLQDB and it seems that line 405 should/could
read:
data[c].buffer = calloc(1, metadata[c].size);
instead of:
data[c].buffer = calloc(1, metadata[c].width);
so as to not cause memory corruption.
If so, would that also apply to line 485?
Best Regards,
Ronildo Quadros
55 21 2210-3242
55 21 8530-3179
Attachment:
bdqldb.dmp
Description: Binary data
-
[freetds] bsqldb SEGFAULT abend,
Ronildo Quadros, 03/30/2010
-
Re: [freetds] bsqldb SEGFAULT abend,
James K. Lowden, 03/30/2010
-
Re: [freetds] bsqldb SEGFAULT abend,
Ronildo, 03/31/2010
- Re: [freetds] bsqldb SEGFAULT abend, James K. Lowden, 03/31/2010
-
Re: [freetds] bsqldb SEGFAULT abend,
Ronildo, 03/31/2010
-
Re: [freetds] bsqldb SEGFAULT abend,
James K. Lowden, 03/30/2010
Archive powered by MHonArc 2.6.24.