Re: [j-nsp] RPD coring today?

2022-09-25 Thread Martin Tonusoo via juniper-nsp
> > What does this show:
> >
> > show system core-dump core-file-info /path/to/corefile
>
> gdb was removed from junos somewhere around 16. This unfortunately
> doesn't work anymore. It was quite handy.

While it's obviously not that convenient, then one can prepare a VM with
necessary shared libraries from Junos and use gdb there. For example, here
is the backtrace of the rpd core dump from Junos 17.3R3-S11.4 opened in gdb
11.2 for FreeBSD:

(gdb) bt
#0  0xc9c24b7a in __sys_thr_kill () from /root/libs/lib/libc.so.7
#1  0xc9c24a64 in raise () from /root/libs/lib/libc.so.7
#2  0xc9c23690 in abort () from /root/libs/lib/libc.so.7
#3  0xc9c06815 in __assert () from /root/libs/lib/libc.so.7
#4  0x0166549f in tag_unlock_tag_label_elm ()
#5  0x01661592 in tag_gw_unlock_tag_label_elm ()
#6  0x0153024a in rt_nexthops_free ()
#7  0x01544b1a in rt_change_parms ()
#8  0x0155243f in rt_change_ribgroup_import ()
#9  0x00a3d01f in bgp_ribgroup_change_rt ()
#10 0x00a051fe in bgp_sync_cb ()
#11 0x015593bf in rt_nh_change_cb ()
#12 0x015537f9 in rt_nh_change_immediate_cb ()
#13 0x01555cc9 in rt_nh_resolve_change ()
#14 0x00a041e8 in bgp_rt_cnh_resolve_change ()
#15 0x00a0581f in bgp_sync_rt_change ()
#16 0x00a56401 in bgp_rt_change ()
#17 0x00a58c45 in bgp_rcv_nlri ()
#18 0x00a5a8da in bgp_read_v4_update ()
#19 0x009df4ec in bgp_handle_update ()
#20 0x00a1d6c1 in bgp_read_resp_process_internal ()
#21 0x00a1db18 in bgp_read_resp_process ()
#22 0x016f001c in task_job_run_common ()
#23 0x016f1480 in task_job_bg_dispatch ()
#24 0x01708625 in task_scheduler_internal ()
#25 0x01709261 in task_scheduler ()
#26 0x007223ff in main ()
(gdb)

As seen above, the shared object libraries from Junos were placed under
the /root/libs. Gdbinit was configured with "set sysroot /root/libs". With
the stack frame number and the function name it's possible to dig even
deeper using disassemblers like radare2.

Perhaps it's useful for somebody in the future.


Martin
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] RPD coring today?

2022-09-18 Thread Jared Mauch via juniper-nsp
It's in the HRTimers code which is very interesting. seems to have started when 
I rolled back which IPs were primary on an IRB for my local DHCP pool. 
Interfaces have VRRP on them and it wasn't happy at all. 

Seems specific to 5100. 

Very odd. 

Sent via RFC1925 compliant device

> On Sep 18, 2022, at 1:08 AM, Chuck Anderson via juniper-nsp 
>  wrote:
> 
> On Sat, Sep 17, 2022 at 06:21:51PM -0400, Jared Mauch via juniper-nsp wrote:
>> Anyone else see their RPD start to core today?  Seeing something weird, 
>> unclear if it’s local to my network or otherwise but two devices at the same 
>> time seem to be having trouble, so puzzling.
>> 
>> Running 20.4R3.8
> 
> What does this show:
> 
> show system core-dump core-file-info /path/to/corefile
> ___
> juniper-nsp mailing list juniper-nsp@puck.nether.net
> https://puck.nether.net/mailman/listinfo/juniper-nsp
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] RPD coring today?

2022-09-18 Thread Pierre Emeriaud via juniper-nsp
Le dim. 18 sept. 2022 à 07:08, Chuck Anderson via juniper-nsp
 a écrit :
>
> On Sat, Sep 17, 2022 at 06:21:51PM -0400, Jared Mauch via juniper-nsp wrote:
> > Anyone else see their RPD start to core today?  Seeing something weird, 
> > unclear if it’s local to my network or otherwise but two devices at the 
> > same time seem to be having trouble, so puzzling.
> >
> > Running 20.4R3.8
>
> What does this show:
>
> show system core-dump core-file-info /path/to/corefile

gdb was removed from junos somewhere around 16. This unfortunately
doesn't work anymore. It was quite handy.
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] RPD coring today?

2022-09-17 Thread Chuck Anderson via juniper-nsp
On Sat, Sep 17, 2022 at 06:21:51PM -0400, Jared Mauch via juniper-nsp wrote:
> Anyone else see their RPD start to core today?  Seeing something weird, 
> unclear if it’s local to my network or otherwise but two devices at the same 
> time seem to be having trouble, so puzzling.
> 
> Running 20.4R3.8

What does this show:

show system core-dump core-file-info /path/to/corefile
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


[j-nsp] RPD coring today?

2022-09-17 Thread Jared Mauch via juniper-nsp
Anyone else see their RPD start to core today?  Seeing something weird, unclear 
if it’s local to my network or otherwise but two devices at the same time seem 
to be having trouble, so puzzling.

Running 20.4R3.8

- jared
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp