Skip to Content.
Sympa Menu

freetds - Segfault from in ct_results

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: dthompson AT characterlink.net (Darrin Thompson)
  • To: freetds AT franklin.oit.unc.edu
  • Subject: Segfault from in ct_results
  • Date: Fri, 14 Jul 2000 00:33:41 GMT


All,

My code calls a stored procedure which returns several results sets.

After successfully retrieving four sets, my program bombs. I would think
that if I were doing something wrong I would bomb out in ct_fetch or
ct_bind.

Darrin

P.S. Here is [edited] output from gdb:

This GDB was configured as "i386-redhat-linux"...
(gdb) r
Starting program: /home/darrint/CLProxy-2/src/redirector-2/QuickieTest
[New Thread 2043 (manager thread)]
[New Thread 2042 (initial thread)]
[New Thread 2044]
RESULTS 4

RESULTS 14
A ROW
RESULTS 4
A ROW
RESULTS 14
RESULTS 4
A ROW
RESULTS 14
RESULTS 4
A ROW
RESULTS 14

Program received signal SIGSEGV, Segmentation fault.
chunk_alloc (ar_ptr=0x4199ed60, nb=16) at malloc.c:2814
2814 malloc.c: No such file or directory.
Current language: auto; currently c
(gdb) bt
#0 chunk_alloc (ar_ptr=0x4199ed60, nb=16) at malloc.c:2814
#1 0x419095ce in __libc_malloc (bytes=8) at malloc.c:2696
#2 0x4001efa1 in tds_process_col_name (tds=0x812c098) at token.c:352
#3 0x4001edfc in tds_process_result_tokens (tds=0x812c098) at
token.c:243
#4 0x4001cabc in ct_results (cmd=0x8136670, result_type=0xbffff67c)
at ct.c:280
#5 0x80b4438 in GetData::Run (this=0xbffff9c0, query=@0xbffff788)
at GetData.cpp:354
#6 0x80ae03c in Checker::Check (this=0xbffff9b8, Data=@0xbffff984)
at Checker.cpp:57
#7 0x80aa468 in main () at QuickieTest.cpp:19




  • Segfault from in ct_results, Darrin Thompson, 07/13/2000

Archive powered by MHonArc 2.6.24.

Top of Page