Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Sybase > stack trace in sybase

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-04-08, 12:23
tej_athavale tej_athavale is offline
Registered User
 
Join Date: Feb 2008
Posts: 8
Question stack trace in sybase

I want to know what is a stacktrace? How to check if it is generated OR a query may probably generate a stacktrace ?
Reply With Quote
  #2 (permalink)  
Old 07-09-08, 09:14
sudarao sudarao is offline
Registered User
 
Join Date: Mar 2007
Posts: 54
hey,
A stacktrace occurs when there is a kernel level issue. for example if there is a disk failure etc and sybase is accessing certain data from the failed disk. stack trace is recorded in the Sybase error log and is not human readable, however, Sybase technical support will be able to decipher it.

stack trace cannot be generated by a query.
Reply With Quote
  #3 (permalink)  
Old 07-10-08, 04:10
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 830
There is a dbcc command you can use
dbcc stacktrace <pid>
Reply With Quote
  #4 (permalink)  
Old 07-11-08, 09:26
tej_athavale tej_athavale is offline
Registered User
 
Join Date: Feb 2008
Posts: 8
Thanks sudarao !




Quote:
Originally Posted by sudarao
hey,
A stacktrace occurs when there is a kernel level issue. for example if there is a disk failure etc and sybase is accessing certain data from the failed disk. stack trace is recorded in the Sybase error log and is not human readable, however, Sybase technical support will be able to decipher it.

stack trace cannot be generated by a query.
Reply With Quote
  #5 (permalink)  
Old 07-11-08, 09:28
tej_athavale tej_athavale is offline
Registered User
 
Join Date: Feb 2008
Posts: 8
Thanks pdreyer


Quote:
Originally Posted by pdreyer
There is a dbcc command you can use
dbcc stacktrace <pid>
Reply With Quote
  #6 (permalink)  
Old 07-11-08, 11:18
trvishi trvishi is offline
Registered User
 
Join Date: Sep 2003
Location: Switzerland
Posts: 370
Quote:
Originally Posted by tej_athavale
I want to know what is a stacktrace? How to check if it is generated OR a query may probably generate a stacktrace ?

A stacktrace is nothing but what internal functions any process goes through. This includes kernel level processes too.

When you see a stacktrace in the ASE error log, it means that the ASE could not handle a particular scenario. It usually gives what kind of error it is and the last set of function calls it went thro (i.e. stacktrace) before it couldnt handle the situation anymore.

When you are reading the stacktrace, its actually upside down. i.e. The last function it has called is in the first line and in that order. i.e. last called, first displayed.

If you have a mysybase account, you can type in the function calls and see if theres an existing match with your case.

some of the function names are easily readable. For eg., vw_% means something related to views. But some are not.

Its a very interesting topic.

And what pdreyer gave is very useful. dbcc stacktrace can tell you exactly what functions a spid is calling internally and give you an idea. On a hung scenario or a sleep scenario, it will turn out very useful.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On