Subject: Re: bin/34124: rtadvd(8) crashes frequently
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Matthias Scheler <tron@zhadum.org.uk>
List: netbsd-bugs
Date: 08/02/2006 10:40:02
The following reply was made to PR bin/34124; it has been noted by GNATS.

From: Matthias Scheler <tron@zhadum.org.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/34124: rtadvd(8) crashes frequently
Date: Wed, 2 Aug 2006 11:35:44 +0100

 On Wed, Aug 02, 2006 at 10:26:53AM +0100, Matthias Scheler wrote:
 > On Wed, Aug 02, 2006 at 08:25:00AM +0000, gnats-admin@NetBSD.org wrote:
 > > Thank you very much for your problem report.
 > > It has the internal identification `bin/34124'.
 > > The individual assigned to look at your
 > > report is: bin-bug-people. 
 > > 
 > > >Category:       bin
 > > >Responsible:    bin-bug-people
 > > >Synopsis:       rtadvd(8) crashes frequently
 > > >Arrival-Date:   Wed Aug 02 08:25:00 +0000 2006
 > 
 > It gets evening more annoying. I've recompiled the binary with "-g",
 > waited until it core dumped again and cannot debug it now:
 
 Martin Husemann gave the crucial advise to compile the binary with
 the "-gstabs" option and I can debug it now:
 
 tron@ivanova:/usr/src/usr.sbin/rtadvd>gdb rtadvd rtadvd.core
 [...]
 #0  0x00015290 in get_next_msg (buf=0xefffe276 "", lim=0xefffe30a "",
     ifindex=0, lenp=0xefffeaf8, filter=45062) at if.c:247
 247                             get_rtaddrs(rtm->rtm_addrs, sa, rti_info);
 
 It looks like an alignment problem. "rtm" is a pointer to "struct rt_msghdr".
 "struct rt_msghdr" contains 32bit values but is not aligned on a 32bit
 boundary.
 
 	Kind regards
 
 -- 
 Matthias Scheler                                  http://scheler.de/~matthias/