Skip to Content.
Sympa Menu

freetds - [freetds] "Dump file append=yes" segfaults (0.61)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: L J Bayuk <lbayuk AT mindspring.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] "Dump file append=yes" segfaults (0.61)
  • Date: Thu, 13 Mar 2003 19:48:54 -0500 (EST)

This line in freetds.conf:
dump file append = yes
when used with "dump file = ...", causes a segmentation fault on startup
of freetds-0.61. Here is a (partial) stack backtrace (from sqsh):

#1 0x400fa90a in fprintf (stream=0x0,
format=0x400349e0 "Starting log file with debug level %d.\n")
at fprintf.c:32
#2 0x400247c6 in tdsdump_open (filename=0x807cc20 "/tmp/freetds.log")
at util.c:201
#3 0x40024f48 in tds_connect (tds=0x807bfe8, connect_info=0x807c2d0)
at login.c:222

Note the NULL (0x0) stream pointer tdsdump_open() is passing to fprintf().
When tds_g_append_mode is 1, the log file has not yet been opened when FreeTDS
tries to write this first message "Starting log file...".
("dump file append" worked at FreeTDS-0.60, before this message was added.)




Archive powered by MHonArc 2.6.24.

Top of Page