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

From: Chuck Dillon (spam_at_nimblegen.com)
Date: 01/27/05


Date: Thu, 27 Jan 2005 09:12:09 -0600

JimW wrote:

> 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 suggest you ask the folks in comp.unix.admin for ideas on how to
diagnose what is going on. If the system is not properly configured
such a situation can occur. I'm not an admin but I have worked on
development systems configured such that /tmp was in the root file
system. A user program that generated a lot of data to /tmp, like a
compiler or linker for example, could fill the root file system which
would lock up the system.

I would think it's also possible that you have a hardware problem, like
some bad memory for example.

Then there was that development system with the non-terminated SCSI
bus. It worked for the most part but occasionally got really confused
IIRC.

-- ced

>
> 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???
>
> Thanks much,

-- 
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.


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)
  • 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 ... > I have a smaller app that tests the no. of threads, semaphores, and files ...
    (comp.unix.programmer)
  • What could cause IMediaControl::Stop() to hang?
    ... I have an app that needs to run 24x7. ... The duration of the loop is about 3 minutes. ... number of clips in the loop is about 10. ... According to the app's logs the thread hangs on a call to ...
    (microsoft.public.win32.programmer.directx.video)
  • 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: Diskless Boot Problem
    ... > it hangs right before it would normally give the login prompt. ... Does it correctly mount the root file system? ... I had no problems booting in single-user mode. ...
    (freebsd-questions)