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: "James K. Lowden" <jklowden AT schemamania.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Crash w/ FreeBSD/PHP/Apache/Sybase
  • Date: Tue, 15 Jul 2003 20:41:58 -0400

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)




Archive powered by MHonArc 2.6.24.

Top of Page