freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- 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;
-
[freetds] tdsdump SIGSEGV with mt apps,
liam, 04/12/2005
- <Possible follow-up(s)>
-
RE: [freetds] tdsdump SIGSEGV with mt apps,
ZIGLIO, Frediano, VF-IT, 04/13/2005
-
Re: [freetds] tdsdump SIGSEGV with mt apps,
liam, 04/13/2005
-
Re: [freetds] tdsdump SIGSEGV with mt apps,
James K. Lowden, 04/13/2005
-
Re: [freetds] tdsdump SIGSEGV with mt apps,
liam, 04/15/2005
- Re: [freetds] tdsdump SIGSEGV with mt apps, Frediano Ziglio, 04/15/2005
-
Re: [freetds] tdsdump SIGSEGV with mt apps,
liam, 04/15/2005
-
Re: [freetds] tdsdump SIGSEGV with mt apps,
James K. Lowden, 04/13/2005
-
Re: [freetds] tdsdump SIGSEGV with mt apps,
liam, 04/13/2005
-
RE: [freetds] tdsdump SIGSEGV with mt apps,
ZIGLIO, Frediano, VF-IT, 04/13/2005
-
Re: [freetds] tdsdump SIGSEGV with mt apps,
liam, 04/15/2005
-
Re: [freetds] tdsdump SIGSEGV with mt apps,
Frediano Ziglio, 04/15/2005
- Re: [freetds] tdsdump SIGSEGV with mt apps, liam, 04/18/2005
-
Re: [freetds] tdsdump SIGSEGV with mt apps,
Frediano Ziglio, 04/15/2005
-
Re: [freetds] tdsdump SIGSEGV with mt apps,
liam, 04/15/2005
- RE: [freetds] tdsdump SIGSEGV with mt apps, ZIGLIO, Frediano, VF-IT, 04/19/2005
Archive powered by MHonArc 2.6.24.