<div>i think the best emthod to debug something on openwrt is gdbserver<br></div><div><br></div><div>but to get it working is maybe a bit too much of overhead for just finding a segfault (which maybe is only caused by the debug output) (this depends if your a familiar with gdb)</div>
<div><br></div><div>does your olsrd segfault only if u do -d 9 ?</div><div><br>or did it already segfault before you used -d 9?<br></div><div><br></div><div>or does it crash anyway</div><div><br></div><div>regardsa Markus</div>
<br><div class="gmail_quote">On Tue, Mar 23, 2010 at 4:26 PM, Airton Ishimori <span dir="ltr"><<a href="mailto:nobumasa.bcc@gmail.com">nobumasa.bcc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The valgrind program is it in wich ipk package??<div><div class="h5"><br>
<br><br><div class="gmail_quote">On Tue, Mar 23, 2010 at 11:58, Henning Rogge <span dir="ltr"><<a href="mailto:hrogge@googlemail.com" target="_blank">hrogge@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Am Dienstag 23 März 2010 15:52:14 schrieb Airton Ishimori:<br>
<div><div>> Hey,<br>
><br>
> My debug with olsrd (I used olsrd -d 9):<br>
><br>
> TIMER: fire Hello Generation timer 0x10010858, ctx 0x1000bdf8, at clocktick<br>
> 1730 (01:37:34.050180)<br>
> Segmentation fault<br>
><br>
> What happened??<br>
</div></div>OLSRd segfaulted ;)<br>
<br>
Okay, let's get some more data.<br>
<br>
1. What version of OLSRd are you using ?<br>
2. can you run OLSRd with valgrind to track the exact code part where the<br>
segfault happend ?<br>
(install valgrind, then run "valgrind olsrd -d 9" and wait for the crash, you<br>
should get some information where the programm crashed)<br>
<font color="#888888"><br>
Henning Rogge<br>
</font></blockquote></div><br>
</div></div><br>--<br>
Olsr-dev mailing list<br>
<a href="mailto:Olsr-dev@lists.olsr.org">Olsr-dev@lists.olsr.org</a><br>
<a href="http://lists.olsr.org/mailman/listinfo/olsr-dev" target="_blank">http://lists.olsr.org/mailman/listinfo/olsr-dev</a><br></blockquote></div><br>