freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Raymond R Rankins <rrr03 AT health.state.ny.us>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Segmentation Fault in error handler
- Date: Thu, 12 May 2011 17:47:30 -0400
Did some more digging into this today.
The problem appears to be related to the error handler defined in
handlers.c.
It reaches the code where it prints out the "DB-LIBRARY error:\n\t%s\n"
message string and the core dumps at some point after that.
Once I commented out the "dberrhandle(err_handler);" line in fisql.c so it
doesn't invoke the error handler defined in handlers.c, the segmentation
fault/core dump stopped occurring when an error is raised.
Now to figure out what it is about the error handler that's causing the
core dump.
-Ray
===============================================
Ray Rankins
rrr03 AT health.state.ny.us
(518) 474-1094
From: Raymond R Rankins <rrr03 AT health.state.ny.us>
To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
Date: 05/11/2011 06:09 PM
Subject: Re: [freetds] Segmentation Fault in error handler
Sent by: freetds-bounces AT lists.ibiblio.org
Attached is the tdsdump file.
-Ray
(See attached file: freetds.log)
From: Igor Korot <ikorot01 AT gmail.com>
To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
Date: 05/11/2011 05:44 PM
Subject: Re: [freetds] Segmentation Fault in error handler
Sent by: freetds-bounces AT lists.ibiblio.org
Hi,
Could you try to produce the TDSDUMP or run under gdb to see the backtrace?
Thank you.
On Wed, May 11, 2011 at 1:24 PM, Raymond R Rankins
<rrr03 AT health.state.ny.us> wrote:
>
> Sorry, forgot to mention, I'm running TDS version .91RC2
>
> Sybase TDS protocol version 5.0
> SQL Server TDS protocol version 8.0
>
> -Ray
>
>
>
>
> From: Raymond R Rankins <rrr03 AT health.state.ny.us>
> To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
> Date: 05/11/2011 04:12 PM
> Subject: [freetds] Segmentation Fault in error handler
> Sent by: freetds-bounces AT lists.ibiblio.org
>
>
>
> I'm testing out fisql to run some queries and when there's an error with
> severity > 10 which invokes the error handler, it's causing a
segmentation
> fault and dumping the core.
> This is happening if I connect to SQL Server or to Sybase.
>
> Below are examples of what's happening:
>
> Error raised in SQL Server
> ----------------------------------------------
> Msg 2812, Level 16, State 62:
> Server 'CHPLUSSQL01', Line 1:
> Could not find stored procedure 'sp_modifystats'.
> DB-LIBRARY error:
> General SQL Server error: Check messages from the SQL Server
> Segmentation Fault - core dumped
>
>
> Error raised in Sybase
> ----------------------------------------------
> Msg 2812, Level 16, State 5:
> Server 'CHPDEV', Line 1:
> Stored procedure 'sp_modstats' not found. Specify owner.objectname or use
> sp_help to check whether the object exists (sp_help may produce lots of
> output).
>
> DB-LIBRARY error:
> General SQL Server error: Check messages from the SQL Server
> Segmentation Fault - core dumped
>
>
> My guess is this may be an issue with the default error handler in dblib?
>
> -Ray
>
> IMPORTANT NOTICE: This e-mail and any attachments may contain
confidential
> or sensitive information which is, or may be, legally privileged or
> otherwise protected by law from further disclosure. It is intended only
for
> the addressee. If you received this in error or from someone who was not
> authorized to send it to you, please do not distribute, copy or use it or
> any attachments. Please notify the sender immediately by reply e-mail and
> delete this from your system. Thank you for your cooperation.
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>
> IMPORTANT NOTICE: This e-mail and any attachments may contain
confidential or sensitive information which is, or may be, legally
privileged or otherwise protected by law from further disclosure. It is
intended only for the addressee. If you received this in error or from
someone who was not authorized to send it to you, please do not distribute,
copy or use it or any attachments. Please notify the sender immediately by
reply e-mail and delete this from your system. Thank you for your
cooperation.
>
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>
>
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
IMPORTANT NOTICE: This e-mail and any attachments may contain confidential
or sensitive information which is, or may be, legally privileged or
otherwise protected by law from further disclosure. It is intended only for
the addressee. If you received this in error or from someone who was not
authorized to send it to you, please do not distribute, copy or use it or
any attachments. Please notify the sender immediately by reply e-mail and
delete this from your system. Thank you for your cooperation.
[attachment "graycol.gif" deleted by Raymond R
Rankins/BCSD/ISHSG/DIVADMIN/DOH] [attachment "freetds.log" deleted by
Raymond R Rankins/BCSD/ISHSG/DIVADMIN/DOH]
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
IMPORTANT NOTICE: This e-mail and any attachments may contain confidential or
sensitive information which is, or may be, legally privileged or otherwise
protected by law from further disclosure. It is intended only for the
addressee. If you received this in error or from someone who was not
authorized to send it to you, please do not distribute, copy or use it or any
attachments. Please notify the sender immediately by reply e-mail and delete
this from your system. Thank you for your cooperation.
-
[freetds] cannot build freetds-0.91RC2 with homebrew - any help would be greatly appreciated,
Tom Hoen, 05/11/2011
-
[freetds] Segmentation Fault in error handler,
Raymond R Rankins, 05/11/2011
-
Re: [freetds] Segmentation Fault in error handler,
Raymond R Rankins, 05/11/2011
-
Re: [freetds] Segmentation Fault in error handler,
Igor Korot, 05/11/2011
-
Re: [freetds] Segmentation Fault in error handler,
Raymond R Rankins, 05/11/2011
- Re: [freetds] Segmentation Fault in error handler, Raymond R Rankins, 05/12/2011
-
Re: [freetds] Segmentation Fault in error handler,
Raymond R Rankins, 05/11/2011
-
Re: [freetds] Segmentation Fault in error handler,
Igor Korot, 05/11/2011
-
Re: [freetds] Segmentation Fault in error handler,
James K. Lowden, 05/14/2011
- Re: [freetds] Segmentation Fault in error handler, Raymond R Rankins, 05/16/2011
-
Re: [freetds] Segmentation Fault in error handler,
Raymond R Rankins, 05/11/2011
-
Re: [freetds] cannot build freetds-0.91RC2 with homebrew - any help would be greatly appreciated,
Ken Collins, 05/11/2011
- Re: [freetds] cannot build freetds-0.91RC2 with homebrew - any help would be greatly appreciated, Tom Hoen, 05/11/2011
- Re: [freetds] cannot build freetds-0.91RC2 with homebrew - any help would be greatly appreciated, Frediano Ziglio, 05/12/2011
-
[freetds] Segmentation Fault in error handler,
Raymond R Rankins, 05/11/2011
Archive powered by MHonArc 2.6.24.