IBM / CAST

CAST can enhance the system management of cluster-wide resources. It consists of the open source tools: cluster system management (CSM) and burst buffer.
Eclipse Public License 1.0
27 stars 34 forks source link

Fix exception bbcmd no arguments at bbcmd.cc:1026 strchr(argv[1] #1001

Closed meahoibm closed 3 years ago

meahoibm commented 3 years ago

gdb of bbcmd Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6e88e94 in __strchr_power7 () from /lib64/libc.so.6

gdb) bt

0 0x00007ffff6e88e94 in __strchr_power7 () from /lib64/libc.so.6

1 0x0000000010022d84 in strstr (needle=0x10066cc0 "^", haystack=) at /usr/include/string.h:333

2 main (orig_argc=, orig_argv=0x7ffffffff148) at /u/meaho/CAST/bb/src/bbcmd.cc:1026

CAST/bb/src/bbcmd.cc:1026 if(strstr(argv[1], "^") != NULL) argv[1] is NULL