-
Notifications
You must be signed in to change notification settings - Fork 269
Provide a clearer error message when process binary isn't found #1522
Copy link
Copy link
Closed
Labels
Type: EnhancementNew functionality or improved designNew functionality or improved design
Milestone
Description
Describe the issue
Shadow is crashing on even the Getting Started Basic setup.
ubuntu@ip-172-31-7-139:~/shadow/exp$ shadow shadow.yaml
** Starting Shadow v2.0.0-pre.2-38-g277c2630-dirty 2021-07-16--15:40:16 with GLib v2.56.4 and IGraph v0.7.1
**ERROR ENCOUNTERED**
At process: 85045 (parent 84845)
At file: /home/ubuntu/shadow/src/main/core/controller.c
At line: 232
At function: _controller_registerProcessCallback
Message: The process binary could not be found
**BEGIN BACKTRACE**
Obtained 10 stack frames:
shadow(+0x13f4d6) [0x556a9b23e4d6]
shadow(utility_handleError+0x156) [0x556a9b23e936]
shadow(+0x131186) [0x556a9b230186]
shadow(hostoptions_iterProcesses+0x3a) [0x556a9b2e1c3a]
shadow(+0x130fc2) [0x556a9b22ffc2]
shadow(config_iterHosts+0x15c) [0x556a9b2e125c]
shadow(controller_run+0x17e) [0x556a9b23050e]
shadow(main_runShadow+0x642) [0x556a9b22fa32]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f490cffbbf7]
shadow(_start+0x2a) [0x556a9b22f2ea]
**END BACKTRACE**
**ABORTING**
Aborted (core dumped)
To Reproduce
The following are the configs from Getting Started Basic, I'm also able to reproduce this with other configs.
import http.server
httpd = http.server.HTTPServer(('', 80), http.server.SimpleHTTPRequestHandler)
httpd.serve_forever()general:
# stop after 10 simulated seconds
stop_time: 10s
network:
graph:
# use a built-in network graph containing
# a single vertex with a bandwidth of 1 Gbit
type: 1_gbit_switch
hosts:
# a host with the hostname 'server'
server:
processes:
- path: /bin/python3
args: ../../../server.py
start_time: 3s
# three hosts with hostnames 'client1', 'client2', and 'client3'
client:
quantity: 3
processes:
- path: /bin/curl
args: -s server
start_time: 5sshadow shadow.yamlOperating System (please complete the following information):
- OS and version:
Ubuntu 18.04.5 LTS - Kernel version:
Linux ip-172-31-7-139 5.4.0-1045-aws #47~18.04.1-Ubuntu SMP Tue Apr 13 15:58:14 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Shadow (please complete the following information):
- Version:
Shadow 2.0.0-pre.2 - Which plug-ins you are using: N/A
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: EnhancementNew functionality or improved designNew functionality or improved design