On Thu, Apr 26, 2007 at 12:08:29PM +0200, Benjamin Watine wrote:
> Simon Horman a écrit :

[snip]

> I use libnet v1.1.2.1 and I've applied your patch, but it don't solve my 
> problem.
> 
> >1) What version of linux-ha and libnet you are using
> >   and where you got them from.
> 
> Heartbeat v2.0.8 x86_64 from CentOS package 
> (http://mirror.centos.org/centos/4/extras/x86_64/RPMS/) before, but now 
> Heartbeat v2.0.8 from sources 
> (http://linux-ha.org/download/heartbeat-2.0.8.tar.gz)
> 
> Libnet v1.1.2.1 (latest stable) from http://www.packetfactory.net/libnet/
> 
> >2) What architecture you are using.
> 
> I'm running on RedHat ES4 x86_64
> 
> >3) If you could provide a backtrace of the crash, preferably using
> >   versions of linux-ha and libnet that have been recompiled with
> >   debuging symbols.  (In the general case this means adding -g to
> >   CFLAGS, then rebuilding from scratch, including rerunning ./configure).
> 
> I've rebuilded Heartbeat from sources, enabled debugging (-g option was 
> already 
> in CFLAGS if I don't make mistake), but I don't know how to do a  backtrace :/
> 
> I've tried to do :
> 
> gdb /usr/lib/ocf/resource.d/heartbeat/IPv6addr
> run 2001:660:6301:301::47:1 start
> Starting program: /usr/lib/ocf/resource.d/heartbeat/IPv6addr 
> 2001:660:6301:301::47:1 start
> [Thread debugging using libthread_db enabled]
> [New Thread 47165808758720 (LWP 4360)]
> usage: /usr/lib/ocf/resource.d/heartbeat/IPv6addr 
> {start|stop|status|monitor|validate-all|meta-data}
> 
> Program exited with code 02.
> 
> What is the usage of executable IPv6addr ? It's ok for its resource agent 
> (/etc/ha.d/resource.d/IPv6addr (IPv6) start), but not for the executable. How 
> can I do the backtrace of IPv6addr ?

Hi,

thanks for taking some more time to look into this.

The address is passed using the environment variable
OCF_RESKEY_ipv6addr, so you want to run something like:

OCF_RESKEY_ipv6addr=2001:660:6301:301::47:1 gdb 
/usr/lib/ocf/resource.d/heartbeat/IPv6addr
(gdb) run start

If this doesn't provide any intersting information, valgrind often does.

OCF_RESKEY_ipv6addr=2001:660:6301:301::47:1 valgrind 
/usr/lib/ocf/resource.d/heartbeat/IPv6addr start

Though I did put some effort into getting rid of the valgrind errors
that I saw, and those problems should be resolved in the unstable tree.

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to