Hi,
We have an application that is written in COBOL and links into a C API.
Every so often the process freezes and has to be killed and restarted.
To help solve the problem , a pstack trace was run when it froze .
The strange thing is : sigsuspend is not called directly in the code, it must
be in a library file. My main question is does this stack trace show that the
problem is in the C code (my prob) or the COBOL code (not my prob!!!)
Is there any way to debug pstack traces ???
The stack trace is listed below.
lwp#1 ----------
ef03998c sigsuspend (efffed60)
ef03998c _libc_sigsuspen d (efffed60, efffed60, 8000, ef1e6b70, 77e5d8, 77e5b8) + 4
ef1d4d20 _ti_sigsuspend (efffed60, ef1e6b70, 0, ef1e6b70, 77e5d8, 77e5b8) + 5c
ef0562c4 usleep (30d40, f4240, ef0a58b0, 0, 6, 0) + 1b8
0001d1c8 snooze (c8, 6, 7a2f3f, 0, f0f0f0f, e) + 58
00788ec0 ???????? (7a4dc0, 1d170, 7a5b46, 7a34d0, 7a4ed8, 7a4108)
007a6ed8 ???????? (78205c, 7a3f58, effff06c, 7a3108, 782000, 7a000c)
0078204c ???????? (7a4dc0, 20202000, 78200c, 7a3104, 2, 0)
00032b74 ???????? (782000, 1, effff440, fffffffa, 676e74, 1)
ef7450c0 mFt_xe_run (7c99a0, 1, effff440, 0, 0, ffffffff) + 98
ef6b231c cobcall (effff6bd, 1, effff440, 0, effff444, 0) + 70c
ef75735c main (2, effff4bc, effff4c8, cf400, 0, 0) + 12c
0001bc1c _start (0, 0, 0, 0, 0, 0) + dc
lwp#2 ----------
ef03a618 signotifywait ()
ef1cbd70 _dynamiclwps (ef1e6b70, 54, 0, 0, 0, ef7efda8) + 1c
ef1cebf0 _ti_thr_yield (0, 0, 0, 0, 0, 0) + 8c
lwp#3 ----------
ef0376e4 door (4, 0, 0, 0, eef55d70, 4)
ef0376e4 __door_return (4, 0, 0, 0, eef55d70, 4) + c
ef1c8a60 _lwp_start (0, 1, 6000, efffeef4, 4, 0) + 14
ef1cebf0 _ti_thr_yield (0, 0, 0, 0, 0, 0) + 8c
lwp#4 ----------
ef03a484 lwp_cond_wait (ef1eb270, ef1eb280, eef43ca0)
ef06c574 _lwp_cond_timed wait (ef1eb270, ef1eb280, 0, 403caf10, 0, 0) + 90
ef1c755c _age (ef1e6b70, ef1e7b84, ef1e82a8, ef1e82c0, 3, ef1e6b70) + 90
ef1c8a60 _lwp_start (0, 1, 4000, eec0fc8c, 3, 0) + 14
ef1cebf0 _ti_thr_yield (0, 0, 0, 0, 0, 0) + 8c
lwp#5 ----------
ef03a4d0 lwp_sema_p (ef1e8590)
ef03a4d0 __lwp_sema_wait (ef1e8590, 658ecd80, 0, eea0bd44, 0, eea0bd38) + 8
ef1c72b8 _co_timerset (ef1e8580, ef1e7b18, ef1e6b70, ef1e82c0, 3, ef1e6b70) + f4
ef1d64bc _thread_start (0, 0, 0, 0, 0, 0) + 40 3 2191
pat saunders <pa**********@s is.securicor.co .uk> scribbled the following: Hi, We have an application that is written in COBOL and links into a C API. Every so often the process freezes and has to be killed and restarted. To help solve the problem , a pstack trace was run when it froze . The strange thing is : sigsuspend is not called directly in the code, it must be in a library file. My main question is does this stack trace show that the problem is in the C code (my prob) or the COBOL code (not my prob!!!) Is there any way to debug pstack traces ??? The stack trace is listed below.
Sorry, your question concerns a particular C implementation and not the
C programming language. Therefore it is off-topic for comp.lang.c.
Please ask in a newsgroup dedicated to your own operating system.
--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"I said 'play as you've never played before', not 'play as IF you've never
played before'!"
- Andy Capp pa**********@si s.securicor.co. uk (pat saunders) wrote: lwp#1 ---------- ef03998c sigsuspend (efffed60) ef03998c _libc_sigsuspen d (efffed60, efffed60, 8000, ef1e6b70, 77e5d8, 77e5b8) + 4 ef1d4d20 _ti_sigsuspend (efffed60, ef1e6b70, 0, ef1e6b70, 77e5d8, 77e5b8) + 5c ef0562c4 usleep (30d40, f4240, ef0a58b0, 0, 6, 0) + 1b8
Your application is multi-threaded, but
usleep shall not be used in multi-thread programs. (Your output looks like
Solaris'). Read carefully 'man usleep'. usleep is not thread-safe.
You shall change it to thread-safe equivalent.
Jacob pa**********@si s.securicor.co. uk (pat saunders) wrote: Hi, We have an application that is written in COBOL and links into a C API. Every so often the process freezes and has to be killed and restarted. To help solve the problem , a pstack trace was run when it froze . The strange thing is : sigsuspend is not called directly in the code, it must be in a library file. My main question is does this stack trace show that the problem is in the C code (my prob) or the COBOL code (not my prob!!!) Is there any way to debug pstack traces ??? The stack trace is listed below.
lwp#1 ---------- ef03998c sigsuspend (efffed60) ef03998c _libc_sigsuspen d (efffed60, efffed60, 8000, ef1e6b70, 77e5d8, 77e5b8) + 4 ef1d4d20 _ti_sigsuspend (efffed60, ef1e6b70, 0, ef1e6b70, 77e5d8, 77e5b8) + 5c ef0562c4 usleep (30d40, f4240, ef0a58b0, 0, 6, 0) + 1b8 0001d1c8 snooze (c8, 6, 7a2f3f, 0, f0f0f0f, e) + 58 00788ec0 ???????? (7a4dc0, 1d170, 7a5b46, 7a34d0, 7a4ed8, 7a4108) 007a6ed8 ???????? (78205c, 7a3f58, effff06c, 7a3108, 782000, 7a000c) 0078204c ???????? (7a4dc0, 20202000, 78200c, 7a3104, 2, 0) 00032b74 ???????? (782000, 1, effff440, fffffffa, 676e74, 1) ef7450c0 mFt_xe_run (7c99a0, 1, effff440, 0, 0, ffffffff) + 98 ef6b231c cobcall (effff6bd, 1, effff440, 0, effff444, 0) + 70c ef75735c main (2, effff4bc, effff4c8, cf400, 0, 0) + 12c 0001bc1c _start (0, 0, 0, 0, 0, 0) + dc lwp#2 ---------- ef03a618 signotifywait () ef1cbd70 _dynamiclwps (ef1e6b70, 54, 0, 0, 0, ef7efda8) + 1c ef1cebf0 _ti_thr_yield (0, 0, 0, 0, 0, 0) + 8c lwp#3 ---------- ef0376e4 door (4, 0, 0, 0, eef55d70, 4) ef0376e4 __door_return (4, 0, 0, 0, eef55d70, 4) + c ef1c8a60 _lwp_start (0, 1, 6000, efffeef4, 4, 0) + 14 ef1cebf0 _ti_thr_yield (0, 0, 0, 0, 0, 0) + 8c lwp#4 ---------- ef03a484 lwp_cond_wait (ef1eb270, ef1eb280, eef43ca0) ef06c574 _lwp_cond_timed wait (ef1eb270, ef1eb280, 0, 403caf10, 0, 0) + 90 ef1c755c _age (ef1e6b70, ef1e7b84, ef1e82a8, ef1e82c0, 3, ef1e6b70) + 90 ef1c8a60 _lwp_start (0, 1, 4000, eec0fc8c, 3, 0) + 14 ef1cebf0 _ti_thr_yield (0, 0, 0, 0, 0, 0) + 8c lwp#5 ---------- ef03a4d0 lwp_sema_p (ef1e8590) ef03a4d0 __lwp_sema_wait (ef1e8590, 658ecd80, 0, eea0bd44, 0, eea0bd38) + 8 ef1c72b8 _co_timerset (ef1e8580, ef1e7b18, ef1e6b70, ef1e82c0, 3, ef1e6b70) + f4 ef1d64bc _thread_start (0, 0, 0, 0, 0, 0) + 40
In article <bc************ **************@ posting.google. com>, pa**********@si s.securicor.co. uk (pat saunders) writes: We have an application that is written in COBOL and links into a C API. Every so often the process freezes and has to be killed and restarted. To help solve the problem , a pstack trace was run when it froze . The strange thing is : sigsuspend is not called directly in the code, it must be in a library file. My main question is does this stack trace show that the problem is in the C code (my prob) or the COBOL code (not my prob!!!) Is there any way to debug pstack traces ???
Wrong newsgroup, I'm afraid. This is an OS and language-implementation
question.
You might get more help from comp.lang.cobol , which is considerably
less busy than comp.lang.c and so less concerned with topicality.
But I suspect the newsgroup dedicated to your OS (Solaris, I'm
guessing, based on the presence of "door" in the ptrace output) is
probably a better bet. At this level, C and COBOL are pretty much
beside the point; you're looking at compiled code either way.
I'd also recommend taking this up with your Micro Focus support rep,
if you have one (the ptrace output indicates this is MF COBOL). If
not, email me directly (either address) and I'll take a closer look.
--
Michael Wojcik mi************@ microfocus.com
Art is our chief means of breaking bread with the dead ... but the social
and political history of Europe would be exactly the same if Dante and
Shakespeare and Mozart had never lived. -- W. H. Auden This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dave |
last post by:
After following Microsofts admonition to reformat my system before doing a
final compilation of my app I got many warnings/errors upon compiling an rtf
file created in word. I used the Help Workshop program: hcw.exe that's
included with Visual Basic. This exact same file compiled perfectly with no
notes, warnings or errors prior to reformatting my system. Prior to the
reformatting, I copied the help.rtf file onto a CD and checked the box to...
|
by: wukexin |
last post by:
Help me, good men. I find mang books that introduce bit "mang header
files",they talk too bit,in fact it is my too fool, I don't learn it, I have
do a test program, but I have no correct doing result in any way. Who can
help me, I thank you very very much.
list.cpp(main program)
//--------------------------------------------------------------------------
-
#pragma hdrstop
#pragma argsused
|
by: Colin J. Williams |
last post by:
Python advertises some basic service:
C:\Python24>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
With numarray, help gives unhelpful responses:
|
by: Corepaul |
last post by:
Missing Help Files
When I enter "recordset" as the keyword and search the Visual Basic Help index,
I get many topics of interest in the resulting list. But there isn't any
information available from clicking on many of the available topics (mostly
methods but some properties are also unavailable). This same problem occurs
with many, if not most, keywords.
Is there any way I can activate these "missing" help topics? HELP!
|
by: Steve |
last post by:
I have written a help file (chm) for a DLL and referenced it using Help.ShowHelp
My expectation is that a developer using my DLL would be able to access this help file during his development time using "F1" help within the VB IDE. Is this expectation achievable
In trying to test my help file in the IDE, I have a solution with 2 projects: the DLL and a tester. VB does not look for my help file; instead, it looks for path to my source code...
| |
by: Mark |
last post by:
I have loaded Visual Studio .net on my home computer and my laptop, but my
home computer has an abbreviated help screen not 2% of the help on my laptop.
All the settings look the same on both including search the internet for
help, but the help is worthless. Any ideas?
|
by: JonathanOrlev |
last post by:
Hello everybody,
I wrote this comment in another message of mine, but decided to post it
again as a standalone message.
I think that Microsoft's Office 2003 help system is horrible, probably
the worst I
ever seen.
I almost cannot find anything I need, including things I
|
by: trunxnirvana007 |
last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"'
'UPGRADE_WARNING: Couldn't resolve default property of object Label. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
Label = New Object(){Box1, Box2, Box3, Box4, Box5, Box6, Box7, Box8, Box9, Box10, Box11,...
|
by: hitencontractor |
last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003.
I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About.
The application calls MS Excel, so the scenario is that I am supposed to see the Excel Menu bar,
FILE EDIT VIEW INSERT ... HELP.
I am able to see the menu bar, but in case of Help, I see the Help of Excel and help of my application, both as a submenu of help.
...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |