Skip to Content.
Sympa Menu

freetds - Re: stored procedure causes core dump

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: stored procedure causes core dump
  • Date: Sat, 17 Mar 2001 15:26:05 -0500 (EST)



Looks like you are binding before the fist call to dbresults() or you are
binding on a non-result query. can you post the snippet between dbfcmd
and the dbbind()?

Brian

On Fri, 16 Mar 2001, Steven J. Backus wrote:

> I'm calling a stored procedure (using dblib) as in:
>
> dbfcmd(db, "exec lab_get_tmp %d, %c", *kind, study);
>
> And afterwards, all my dbbinds dump core:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x804d78a in dbbind (dbproc=0x8061620, column=1, vartype=1, varlen=0,
> varaddr=0x8047688 "Üv\004\b\216ð°ß\001") at dblib.c:893
> 893 okay = okay && ((column >= 1) && (column <= resinfo->num_cols));
> (gdb) bt
> #0 0x804d78a in dbbind (dbproc=0x8061620, column=1, vartype=1, varlen=0,
> varaddr=0x8047688 "Üv\004\b\216ð°ß\001") at dblib.c:893
> #1 0x8049ea5 in main (argc=2, argv=0x804772c) at newestLabout.c:427
>
> The stored procedure populates a temporary table. I tried
> putting in a dbcancel after the call, but then the table never got
> populated.
>
> Anyone have any ideas?
>
> Thanks,
> Steve
>
> ---
> You are currently subscribed to freetds as: [camber AT ais.org]
> To unsubscribe, forward this message to $subst('Email.Unsub')
>





Archive powered by MHonArc 2.6.24.

Top of Page