Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[MX] spmd core-dumped while running "request support information"

0

0

Article ID: KB36905 KB Last Updated: 11 May 2021Version: 1.0
Summary:

Customers reported that spmd performs a core-dump on MX routers when they run the request support information command.

This is a known issue that has been fixed in Junos OS Releases 17.3R3-S1, 17.4R2, 17.4R3, 18.1R2-S3, 18.1R3, 18.2R2, 18.3R1, and 18.4R1. An upgrade is necessary to avoid such an event. The problem is tracked in PR1375732.

Symptoms:

The event sequence that triggers the spmd core is given as follows:

Apr 27 14:04:37 MX960-RE0 mgd[75194]: UI_LOGIN_EVENT: User 'root' login, class 'super-user' [75194], ssh-connection '', client-mode 'cli' 
Apr 27 14:04:37 MX960-RE0 mgd[75194]: UI_CMDLINE_READ_LINE: User 'root', command 'request support information ' 

As seen above, executing request support information caused pid 9192 to core dump:

Apr 27 14:04:37 MX960-RE0 jlaunchd: %AUTH-3: satellite-platform-management-process (PID 9192) terminated by signal number 11. Core dumped! 

From the core file, the following backtrace is usually seen:

Python Exception  /usr/local/lib/python2.7/lib-dynload/operator.so: Undefined symbol "_PyUnicodeUCS2_AsDefaultEncodedString":
#0  memset (dst0=0x0, c0=, length=2648) at ../../../../../src/bsd/lib/libc/string/memset.c:121
#1  0x018983d0 in jemalloc_block_mallocx (s=) at ../../../../../src/junos/lib/libjtask/mem/task_mem_jemalloc.h:68
#2  malloc_jemalloc (ckp=0x20ea450, sz=2640, ptr=0x9fff5a58) at ../../../../../src/junos/lib/libjtask/mem/task_mem_cookie_jemalloc.c:275
#3  0x0189e46c in task_mem_malloc (tp=, size=2640) at ../../../../../src/junos/lib/libjtask/mem/task_mem_cookie.c:113
#4  0x0184a860 in spmd_get_extended_port_ae_queue_stats (spmd_ae_stats=0x411a400, ifs_ae_q_counters=0x9fff5ba0) at ../../../../../src/junos/usr.sbin/spmd/stats/spmd_ae_stats.c:864
#5  0x0184cff0 in spmd_format_one_ifd_base_stats (ptr=, ifd_index=, req_type=13 '\r') at ../../../../../src/junos/usr.sbin/spmd/stats/spmd_ifdserver.c:348
#6  0x0184dc60 in spmd_handle_ifds_base_req (req_type=13 '\r', ifd_index=227, ipcconn_session=) at ../../../../../src/junos/usr.sbin/spmd/stats/spmd_ifdserver.c:484
#7  spmd_process_ifds_req_msg (spmd_ifds_msg=, ipcconn_session=) at ../../../../../src/junos/usr.sbin/spmd/stats/spmd_ifdserver.c:1007
#8  spmd_ifds_process_msg (ipcconn_session=0x3e42644, buffer=, offset=, ipc_msg=, cookie=) at ../../../../../src/junos/usr.sbin/spmd/stats/spmd_ifdserver.c:1114
#9  0x018cd824 in ipcconn_server_dispatch (session=0x3e42644, exception=) at ../../../../../src/junos/lib/libipcconn/ipcconn_server.c:2133
#10 0x018cbc78 in ipcconn_task_server_read_ready_handler (tp=) at ../../../../../src/junos/lib/libipcconn/ipcconn_task_os.c:276
#11 0x018c7f34 in task_process_events_internal (sched_var=0x1a12acc , io_var=0x1a12980 , nevents=1) at ../../../../../src/junos/lib/libjtask/base/platform/bsd/task_io_bsd.c:1140
#12 0x018a8150 in task_process_events (var_context=, task_io_scheduler_kevent_result=) at ../../../../../src/junos/lib/libjtask/base/task_io.c:1462
#13 0x018beb80 in task_scheduler_internal (enable_slip_detector=false, no_exit=) at ../../../../../src/junos/lib/libjtask/base/task_scheduler.c:465
#14 0x018bf6a0 in task_scheduler () at ../../../../../src/junos/lib/libjtask/base/task_scheduler.c:540
#15 0x0181baf4 in main (argc=, argv=0x9fffcf48) at ../../../../../src/junos/usr.sbin/spmd/common/task_init.c:433

MX960-RE0> show system core-dumps 
/var/crash/*core*: No such file or directory 
-rw-rw---- 1 root wheel 1759273 Apr 27 14:05 /var/tmp/spmd.core-tarball.0.tgz 
/var/tmp/pics/*core*: No such file or directory 
/var/crash/kernel.*: No such file or directory 
/var/jails/rest-api/tmp/*core*: No such file or directory 
/tftpboot/corefiles/*core*: No such file or directory 
total files: 1 
Cause:

According to PR1375732, “code changes done to avoid encoding queue stats for mib2d request and to fix the memory leak issue during queue stats encode for mib2d request" is the reason for the above core dump problem to be seen.

Solution:

The issue has been fixed in the following Junos OS releases: 17.3R3-S1, 17.4R2, 17.4R3, 18.1R2-S3, 18.1R3, 18.2R2, 18.3R1, and 18.4R1.

An upgrade is necessary to avoid such an event. The problem is tracked in PR1375732.

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search