[omniORB] abort - core dump

Duncan Grisby dgrisby@uk.research.att.com
Tue, 15 Aug 2000 13:50:51 +0100


On Tuesday 15 August, Robert Stent wrote:

> I notice on Solaris it looks like the SEGV signal is getting caught as a
> oneshot.  A truss of a simple program shows the first SEGV as [caught]
> and the second SEGV as [default], then the program produces a core.  On
> Linux (RedHat 6.1) I get no core dump.

The problem is that Linux cannot produce core dumps for multi-threaded
processes. Sometimes you do get a core file, but multiple threads
attempt to write to the same file at the same time, resulting in an
invalid file. It's an artifact of the way Linux threads are really
separate processes sharing an address space.

I'm afraid there's no way around it until Linux is fixed. You have to
run your program under gdb, so you are already in the debugger when it
sefaults.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --