Skip to Content.
Sympa Menu

freetds - FreeTDS .50 and PHP4 and FreeBSD

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Mike Davis" <mike AT urbancom.net>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: FreeTDS .50 and PHP4 and FreeBSD
  • Date: Mon, 5 Mar 2001 21:25:46 -0500


I am having issues when I do a mssql_query() in PHP4. Some queries cause
apache to SIGSEGV others work fine. No core dump is generated. Here is a
ktrace output of the problem happening. I am assuming from this ktrace
that a read() is failing and not being error checked properly. I would try
FreeTDS .51 but I cannot get it to work as of yet.

The server is MSSQL 7 and I compiled freetds with TDSVERSION=42.

I searched the mail archive and there seems to be a history of odd
segmentation faults.

Anyone have a clue about this? If you can give me gdb commands to run I
can and return the results to the list etc.

20734 httpd CALL write(0x7,0x822dc00,0x93)
20734 httpd GIO fd 7 wrote 147 bytes
"\^A\^A\0\M^S\0\0\0\0INSERT INTO assets
(item,customer,serial,price,mac,purchased)
VALUES('13', '2', "1", '1', "1-1-1-1-1-1", "1/1/1")"
20734 httpd RET write 147/0x93
20734 httpd CALL read(0x7,0xbfbfd428,0x8)
20734 httpd GIO fd 7 read 8 bytes
"\^D\^A\0\^Q\0\0\0\0"
20734 httpd RET read 8
20734 httpd CALL read(0x7,0x829a800,0x9)
20734 httpd GIO fd 7 read 9 bytes
"\M-}\^P\0\M-C\0\^A\0\0\0"
20734 httpd RET read 9
20734 httpd CALL gettimeofday(0xbfbfd048,0)
20734 httpd RET gettimeofday 0
20734 httpd PSIG SIGSEGV caught handler=0x8156f0c mask=0x0 code=0x0
20734 httpd CALL chdir(0x81d8fc0)
20734 httpd NAMI "/usr/local/apache"
20734 httpd RET chdir 0
20734 httpd CALL sigaction(0xb,0xbfbfd338,0xbfbfd320)
20734 httpd RET sigaction 0
20734 httpd CALL getpid
20734 httpd RET getpid 20734/0x50fe
20734 httpd CALL kill(0x50fe,0xb)
20734 httpd RET kill 0
20734 httpd CALL sigreturn(0xbfbfd38c)
20734 httpd PSIG SIGSEGV SIG_DFL

Assets table:
CREATE TABLE [dbo].[assets] (
[id] [int] IDENTITY (1, 1) NOT NULL ,
[item] [int] NOT NULL ,
[customer] [int] NOT NULL ,
[serial] [varchar] (60) NULL ,
[mac] [varchar] (20) NULL ,
[price] [decimal](18, 0) NOT NULL ,
[purchased] [varchar] (50) NULL
) ON [PRIMARY]

Thanks,
Mike




Archive powered by MHonArc 2.6.24.

Top of Page