Skip to Content.
Sympa Menu

freetds - [freetds] tdsdump SIGSEGV with mt apps

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: liam AT inodes.org
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] tdsdump SIGSEGV with mt apps
  • Date: Tue, 12 Apr 2005 16:54:29 +1000

Hi,

Unfortunately, in a multi-threaded application, TDSDUMP breaks
and causes a SIGSEGV (as g_dumpfile is closed/opened by other
threads concurrently).

Please see the below patch that works around this problem. I'm not
sure why it calls tdsdump_close() to start with?

The patch is against freetds-0.64.dev.20050411.

Thanks.

--- util.c 2005-03-12 22:47:37.000000000 +1100
+++ util.c.new 2005-04-12 16:40:44.000000000 +1000
@@ -242,6 +242,10 @@
{
int result; /* really should be a boolean, not an
int */

+ if (g_dumpfile != NULL) {
+ return 1;
+ }
+
tdsdump_close();
if (filename == NULL || filename[0] == '\0') {
return 1;





Archive powered by MHonArc 2.6.24.

Top of Page