Skip to Content.
Sympa Menu

freetds - Re: More on Crash in Python driver

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Paul Rensing <prensing AT cimetrics.com>
  • To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: More on Crash in Python driver
  • Date: 24 Sep 2002 16:20:12 -0400


Here is some more fodder. I turned on tracing in the driver code:

cs_ctx_alloc(CS_VERSION_100, &ctx) -> CS_SUCCEED, ctx0
cs_diag(ctx0, CS_INIT, CS_UNUSED, CS_UNUSED, NULL) -> CS_SUCCEED
ct_init(ctx0, CS_VERSION_100) -> CS_SUCCEED
ct_config(ctx0, CS_SET, CS_NETIO, 29, CS_UNUSED, NULL) -> CS_SUCCEED
ct_con_alloc(ctx0, &conn) -> CS_SUCCEED, conn0
ct_diag(conn0, CS_INIT, CS_UNUSED, CS_UNUSED, NULL) -> CS_SUCCEED
ct_con_props(conn0, CS_SET, CS_USERNAME, "XXX", CS_NULLTERM, NULL) ->
CS_SUCCEED
ct_con_props(conn0, CS_SET, CS_PASSWORD, "YYY", CS_NULLTERM, NULL) ->
CS_SUCCEED
ct_connect(conn0, "mydb", CS_NULLTERM) -> CS_FAIL
ct_diag(conn0, CS_STATUS, CS_SERVERMSG_TYPE, CS_UNUSED, &num) -> CS_SUCCEED, 0
ct_diag(conn0, CS_STATUS, CS_CLIENTMSG_TYPE, CS_UNUSED, &num) -> CS_SUCCEED, 0
ct_diag(conn0, CS_CLEAR, CS_ALLMSG_TYPE, CS_UNUSED, NULL) -> CS_SUCCEED
ct_con_props(conn0, CS_GET, CS_CON_STATUS, &value, CS_UNUSED, NULL) ->
CS_SUCCEED, 0
ct_diag(conn0, CS_STATUS, CS_SERVERMSG_TYPE, CS_UNUSED, &num) -> CS_SUCCEED, 0
ct_diag(conn0, CS_STATUS, CS_CLIENTMSG_TYPE, CS_UNUSED, &num) -> CS_SUCCEED, 0
ct_diag(conn0, CS_CLEAR, CS_ALLMSG_TYPE, CS_UNUSED, NULL) -> CS_SUCCEED
ct_con_drop(conn0) -> CS_SUCCEED
cs_ctx_drop(ctx0) -> CS_SUCCEED

And here is the log from FreeTDS tracing:

2002-09-24 16:13:58 IP address pointer is NULL
2002-09-24 16:13:58 leaving ct_connect() returning 0
2002-09-24 16:13:58 inside ct_con_props() action = CS_GET property = 26
2002-09-24 16:13:58 inside ct_con_drop()


I suspect the big problem is that "IP address pointer is NULL". I have a
working version using mxODBC/unixODBC, and it passes the correct IP
address at the start.

Paul

On Tue, 2002-09-24 at 15:38, Paul Rensing wrote:
> FreeTDS People,
>
> I have been trying (but only a little) to get the Sybase Python driver
> working. It compiles just fine, but crashes with a SegFault. I put it in
> the debugger and the backtrace is:
>
>
> #0 0x40135e75 in tds_send_cancel () from /usr/lib/libct.so.0
> #1 0x40124ab9 in ct_cancel () from /usr/lib/libct.so.0
> #2 0x40101503 in CS_CONNECTION_ct_cancel (self=0x816d788,
> args=0x8166cc4)
> at conn.c:301
> #3 0x080cb709 in PyCFunction_Call ()
>
> I remember that there was a thread in this group about problems with
> ct_cancel(), but I did not keep the old messages.
>
> Before I dig further, any clues? I have the 0.60 release installed.
>
> Thanks,
>
> Paul Rensing
>
>
> ---
> You are currently subscribed to freetds as: [paul.rensing AT att.net]
> To unsubscribe, forward this message to $subst('Email.Unsub')
>





Archive powered by MHonArc 2.6.24.

Top of Page