Re: Can a user app hang a *IX system?

From: Måns Rullgård (mru_at_inprovide.com)
Date: 01/27/05


Date: Thu, 27 Jan 2005 01:58:46 +0100


"JimW" <j1mw_nospam_plz@bellsouth.net> writes:

> I have a situation where our program(s) completely hang the system.
> OS is MontaVista Embedded Linux on a xscale big-endian cpu.
> Our app starts and hangs, and also hangs the system, can't ctrl-brk the app;
> can't use console, can't telnet (not a rejected connection, just hangs
> during the connect). I can, however, ping the system (thanks for small
> favors).
>
> I tried using gdb to attach to the process, and gdb also hangs.
> Further, while building the app, if I had a large no. of objects, it would
> also hang during the link for the shared library - by breaking it up into
> multiple .so files, it succeeded.
>
> It's obviously a resource problem, but I thought most *IX systems would
> start grumbling about running out before just dying.
>
> I have a smaller app that tests the no. of threads, semaphores, and files
> and it behaves normally - running out with about 500 thrds and 127
> semaphores.
>
> This is a very large app and is obviously way too big for the system (64mb),
> but should it be able to hang totally. The apps is fairly stable and runs
> fine on AIX, Linux RH, HP, Solaris.
>
> Any insight before I start flooding it with printfs???

Are you by chance running out of memory so the system starts swapping
heavily? This can make the system appear to be hung, even if it is
making slow progress.

-- 
Måns Rullgård
mru@inprovide.com


Relevant Pages

  • Can a user app hang a *IX system?
    ... OS is MontaVista Embedded Linux on a xscale big-endian cpu. ... Our app starts and hangs, and also hangs the system, can't ctrl-brk the app; ... I have a smaller app that tests the no. of threads, semaphores, and files ...
    (comp.unix.programmer)
  • Causes of Application Hangs
    ... Is there a list anywhere of causes of application hangs? ... app that is unresponsible to any mouse or keyboard interaction and will not ... Obviously it's a programming error of some sort ... It just gets "stuck" in this state and I'd like to know why. ...
    (microsoft.public.vb.general.discussion)
  • Re: Can a user app hang a *IX system?
    ... > OS is MontaVista Embedded Linux on a xscale big-endian cpu. ... > I tried using gdb to attach to the process, and gdb also hangs. ... > Further, while building the app, if I had a large no. of objects, it would ... development systems configured such that /tmp was in the root file ...
    (comp.unix.programmer)
  • Re: Delphi 2005 Update 4 IS needed !!!
    ... Loading - Sometimes it doesn't even load, just hangs and I have to kill it with task manager. ... It seems, but isn't certain, that bringing another app to the foreground while the splash screen is up either triggers it or makes it happen more often. ... No debugger window, no exception, no nothing, just bam, back to the IDE. ... I don't use this for my own apps, but I need to develop an assembly for someone else, and so I have my test code as VCL.NET for now. ...
    (borland.public.delphi.non-technical)
  • Outlook XP hangs on start up
    ... Just reinstalled windows, & got it updated. ... and then the app loads but it hangs for anouther ... able to use the app. ... After it was installed, Outlook is ...
    (microsoft.public.windowsxp.setup_deployment)