Bug in heartbeat code: doesn't leave core file
David McCormick
dem@chaostech.com
Mon, 20 Sep 1999 09:51:56 -0400
Can you force a core by adding an abort() call in it? If not, try doing a
div/0 somewhere and see if it will core there. If either of those will
produce a core, you may want to
see if for some reason its exiting prematurely. Try using atexit() to
register a function
that will cause and abort, and then you should get a backtrace to find out
where it
cored.
I havent actaully looked at the heartbeat code (but I did just download it),
so Ill see
if I can set it up to run and take a look at it as well.
-----Original Message-----
From: Alan Robertson <alanr@bell-labs.com>
To: David McCormick <dem@chaostech.com>
Cc: Linux-HA mailing list <linux-ha@muc.de>; Mike Wangsmo
<wanger@redhat.com>; Volker Wiegand <Volker.Wiegand@SuSE.de>; Volker Wiegand
<Volker.Wiegand@t-online.de>
Date: Sunday, September 19, 1999 10:40 PM
Subject: Re: Bug in heartbeat code: doesn't leave core file
>David McCormick wrote:
>>
>> Its not running SUID root by any chance is it? Or possibly started by
sudo
>> or something
>> that runs SUID root and exec's it?
>>
>> I dont think linux will allow a process to dump core if it was started
with
>> it's SUID
>> bit set.
>
>It doesn't core dump if I start it with "su" either.
>
>Here's the output of "sudo id":
>uid=0(root) gid=0(root) groups=10(wheel),3316(strategy),2988(qwdctt)
>
>So, the euid must equal the uid, and the egid must equal the gid, or
>"id" would have noted that.
>
>By contrast, here's what I get from a setuid copy of id:
>uid=800(alanr) gid=10(wheel) euid=0(root)
>groups=10(wheel),3316(strategy),2988(qwdctt)
>
>It doesn't look like that's it (since uid=euid when I start something
>with sudo).
>
> Thanks!!
>
>More ideas?
>
>___________________________________________________
>Alan Robertson mailto:alanr@bell-labs.com
> http://www.henge.com/~alanr/
>___________________________________________________
>
>---------------------------------------------------------------------------
---
>Linux HA Web Site:
> http://www.henge.com/~alanr/ha/
>Linux HA HOWTO:
>
http://metalab.unc.edu/pub/Linux/ALPHA/linux-ha/High-Availability-HOWTO.html
>---------------------------------------------------------------------------
---
>