smcli Query_All_DM segfaults

Bug #1821667 reported by Leland Lucius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zVM Cloud Connector
Fix Committed
Medium
Unassigned

Bug Description

When FORMAT=NO is used, the smcli Query_All_DM API can segfault when blanks lines are returned from SMAPI. I'm using VMSECURE 3.2 and z/VM 6.4.

[root@m2 BUILD]# gdb --args smcli Query_All_DM -T maint -k format=no
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-110.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "s390x-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/zthin-build/BUILD/smcli...done.
(gdb) r
Starting program: /root/zthin-build/BUILD/smcli Query_All_DM -T maint -k format=no
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Directory Entry_type: 4
Directory Entry ID: SSI
******************************************************* FORMAT=NO
* z/VM 6.4.0 SYSTEM DIRECTORY FORMAT=NO
******************************************************* FORMAT=NO
* FORMAT=NO
* THE ADDRESSES 123 THROUGH 133 ARE VIRTUAL ADDRESSES. FORMAT=NO
* FORMAT=NO
* NOTES: FORMAT=NO
* REMEMBER THESE ARE ONLY VIRTUAL ADDRESSES NOT REAL FORMAT=NO
* ADDRESSES, SO THERE IS NO NEED TO CHANGE THEM TO MAT FORMAT=NO
* YOUR HARDWARE ADDRESSES. FORMAT=NO
* FORMAT=NO
* FORMAT=NO
******************************************************* FORMAT=NO
* FORMAT=NO
* FOR A DESCRIPTION OF DIRECTORY STATEMENTS SEE: FORMAT=NO
* VM ENTERPRISE SYSTEM ARCHITECTURE FORMAT=NO
* PLANNING AND ADMINISTRATION MANUAL. FORMAT=NO
* FORMAT=NO
******************************************************* FORMAT=NO

Program received signal SIGSEGV, Segmentation fault.
0x000003fffdb2565c in __strncpy_c () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.17-222.el7.s390x
(gdb) bt
#0 0x000003fffdb2565c in __strncpy_c () from /lib64/libc.so.6
#1 0x000000008003cb96 in queryAllDM (argC=6, argV=0x3fffffff5b8,
    vmapiContextP=0x3ffffffea58) at zthin/src/smcliQuery.c:273
#2 0x0000000000000000 in ?? ()

Revision history for this message
Leland Lucius (lluciuslp) wrote :
Revision history for this message
jichenjc (jichenjc) wrote :
Changed in python-zvm-sdk:
importance: Undecided → High
importance: High → Medium
status: New → Confirmed
jichenjc (jichenjc)
Changed in python-zvm-sdk:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.