Re: debugging a multi-threaded program on linux.

From: Michael B. Allen (mba2000_at_ioplex.com)
Date: 05/10/03


Date: Fri, 09 May 2003 19:30:12 -0400

On Fri, 09 May 2003 15:58:24 -0400, Jeff wrote:

>> program on ret-hat linux ? another thing that might help me is a
>> command that i could put in my code and that will print that current
>> call stuck off my program, this way i could at least know when and from
>> where am i getting into the code areas i sould not enter.

If you use GNU C I'm certain there is a way to get a sort of stack
trace. I recall a thread about it. Unfortunately I do not know the
function/macro necessary to invoke it. Perhaps someone else can put a
finger on it?

Mike

-- 
A  program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes  the  potential  for it to be applied to tasks that are
conceptually  similar and, more important, to tasks that have not
yet been conceived.


Relevant Pages

  • Re: Access Denied (was Moving a file corrupts it)
    ... Try again and copy/past the comments you are referring to. ... >I am having a problem similar to the one Mike posted a few weeks ago. ... I get the same result when I use the edit>cut>paste command. ... > specific program (I have Windows XPSP2). ...
    (microsoft.public.windowsxp.general)
  • Re: Access Denied (was Moving a file corrupts it)
    ... > When I wish to move a file from one folder to another, I usually use the> right click>cut>paste mouse command. ... > go to retrieve the file in its new location, I receive messages similar to> those listed by Mike. ... > My assumption is that there is a problem with Windows, rather than a> specific program. ...
    (microsoft.public.windowsxp.general)
  • Re: CM11A lockup
    ... a quick power cycle on the CM11A was always the fix. ... Just checking for a repeated command (stuck ... rogue transmitter was issuing about a command each second, ...
    (comp.home.automation)
  • Re: SPSAVE on spoolfiles
    ... While Mike makes an excellent suggestion of intercepting the 'file' ... Programmatically issuing the 'file' command using the COMMAND ... Programmatically streaming a job and thus bypassing STREAMX. ... * To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • Re: Why Cant Public Wi-Fi Be Made Secure?
    ... Sometimes, conferences host as to solar landscapes, unless they're ... stuck. ... If you'll command Rifaat's circle with turns, ...
    (sci.crypt)