Skip to Content.
Sympa Menu

freetds - RE: [freetds] Crash w/ FreeBSD/PHP/Apache/Sybase

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Ben Vaughn" <bvaughn AT BlackbirdTech.com>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Crash w/ FreeBSD/PHP/Apache/Sybase
  • Date: Wed, 16 Jul 2003 10:31:59 -0400

I've switched to CVS, which fixes the tsql crash bug. However, I still
get a segfault when encountering said error in PHP/Apache. The problem
has been resolved for me because I'm not getting errors anymore, see my
response to "Sybase Incompatibilities" for more info on that.

Cheers,
Ben

------
Ben Vaughn
Security Analyst
Blackbird Technologies
703-796-1438 W / 703-582-4551 C
bvaughn AT blackbirdtech.com
------


-----Original Message-----
From: James K. Lowden [mailto:jklowden AT schemamania.org]
Sent: Tuesday, July 15, 2003 08:42
To: FreeTDS Development Group
Subject: Re: [freetds] Crash w/ FreeBSD/PHP/Apache/Sybase


On Tue, 15 Jul 2003 17:35:24 -0400, "Ben Vaughn"
<bvaughn AT BlackbirdTech.com> wrote:
> I am able to make tsql crash, too (0.61). Has this been fixed in
CVS?:

I'd like to believe so, Ben. If not, perhaps we can work out what's the
matter. I don't have access to an ASA server.

Using TDS 7.0 with a 5.0 server or vice-versa leads straight to a
segmentation fault. I assume you're (correctly) using TDS 5.0; that's
what your log indicates.

> Msg 911, Level 16, State 0, Server , Line 0
> ASA Error -83: Specified database not found

Is the user's default database unavailable or anything like that? Can
you
post the TDSDUMP log for this session? What "Specified database" do you
suppose it's talking about? AFAIK, there's no database field in a TDS
5.0
login packet; we certainly don't specify one.

> Msg 4224, Level 16, State 0, Server , Line 0
> ASA Error -108: Connection not found

It appears the server refuses the connection at this point (because of
the
database problem, above). We should detect the connection's deadness
and
stop. Instead, we probably merrily proceed, eventually trying to
dereference a null pointer. :-/

What version of ASA server are we talking about, btw?

--jkl


> Program received signal SIGSEGV, Segmentation fault.
> 0x28092512 in tds_set_spid (tds=0x8050000) at token.c:196
> 196 if (tds->res_info->num_cols != 1) {
> (gdb)
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds




Archive powered by MHonArc 2.6.24.

Top of Page