-
Notifications
You must be signed in to change notification settings - Fork 7.5k
'net help' or 'kernel help' shell commands lead to a fatal fault #11250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What sample application you are using here? I tried "net help" in echo-server sample and I see no errors. |
This is a generic shell issue, i can reproduce the problem with the
|
bisected to:
@Vudentz, could you please have a look? |
Fixes: zephyrproject-rtos#11250 Signed-off-by: qianfan Zhao <[email protected]>
This issue happens after 'shell_help_print'. If print help message by using someting like this: 'kernel help', 'net help' or sometings in this way, can trigger 'shell_help_print'. The exec_cmd function doesn't exit after shell_help_print, shell->ctx->active_cmd.handler is a NULL pointer, after that the next code try do active_cmd.handler, the BUG happens.
|
Besides can we provide a way to report bug on NULL dereference at runtime? An idea of my own: Mark the address 0 as unacessed by using MPU? |
Fixes: #11250 Signed-off-by: qianfan Zhao <[email protected]>
Fixes: #11250 Signed-off-by: qianfan Zhao <[email protected]>
uart:~$ net help
net - Networking commands
Options:
-h, --help :Show command help.
Subcommands:
allocs :Print network memory allocations.
app :Print network application API usage information.
arp :Print information about IPv4 ARP cache.
conn :Print information about network connections.
dns :Show how DNS is configured.
gptp :Print information about gPTP support.
http :Print information about active HTTP connections.
iface :Print information about network interfaces.
ipv6 :Print information about IPv6 specific information and configuration.
mem :Print information about network memory usage.
nbr :Print neighbor information.
ping :Ping a network host.
route :Show network route.
rpl :Show RPL mesh routing status.
stacks :Show network stacks information.
stats :Show network statistics.
tcp :Connect/send/close TCP connection.
vlan :S***** USAGE FAULT *****
Illegal use of the EPSR
***** Hardware exception *****
Current thread ID = 0x204003c0
Faulting instruction address = 0x0
Fatal fault in thread 0x204003c0! Aborting.
The text was updated successfully, but these errors were encountered: