[freetds] "Dump file append=yes" segfaults (0.61)
L J Bayuk
lbayuk at mindspring.com
Thu Mar 13 19:48:54 EST 2003
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.)
More information about the FreeTDS
mailing list