smcli Query_All_DM segfaults
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://
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-
For bug reporting instructions, please see:
<http://
Reading symbols from /root/zthin-
(gdb) r
Starting program: /root/zthin-
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/
Directory Entry_type: 4
Directory Entry ID: SSI
*******
* z/VM 6.4.0 SYSTEM DIRECTORY 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
* FOR A DESCRIPTION OF DIRECTORY STATEMENTS SEE: FORMAT=NO
* VM ENTERPRISE SYSTEM ARCHITECTURE FORMAT=NO
* PLANNING AND ADMINISTRATION MANUAL. 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.
(gdb) bt
#0 0x000003fffdb2565c in __strncpy_c () from /lib64/libc.so.6
#1 0x000000008003cb96 in queryAllDM (argC=6, argV=0x3fffffff5b8,
vmapiContex
#2 0x0000000000000000 in ?? ()
Changed in python-zvm-sdk: | |
status: | Confirmed → Fix Committed |
https:/ /review. gerrithub. io/c/mfcloud/ python- zvm-sdk/ +/449275