-
Notifications
You must be signed in to change notification settings - Fork 7.5k
net-related logging: Don't see the expected output + crash in logging #11008
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
Also cc: @jukkar. Because you see, stuff works as expected in completely unrelated, barebones sample. And doesn't work with a proper networking sample, where one would expect everything work without a hitch. One could imagine that it's some bad interaction with networking logging. |
Ok, as that branch is actually for feature development, I created https://github.com/pfalcon/zephyr/tree/smsc9220-pfalcon-logging-issue to serve just for reproducing of the issue described here (will edit link in the description too). |
UPDATE: This crash is fixed in master.
Then:
|
Heh, nevermind, appears to be fixed in master. |
But the original issue from the description still holds with 2d78259 Actually, with that master, I would expect echo_server to log:
But it doesn't. (hello_world does) |
smsc9220-pfalcon-logging-issue branch has now been rebased on that master. |
@pfalcon, tried to reproduce but got following Cmake error:
|
@nordic-krch: D'oh! Pushed that file. |
@pfalcon i tried to reproduce, i'm getting following output:
Is this wrong? One thing that i noticed is that after quitting qemu im no longer able to use terminal, it does not accept any new characters. Have you seen something like that? I'm running terminal on mint 19 |
@nordic-krch , ok you tried "hello_world", and that's correct, expected output. Now please try net/echo_server, and there's no
line output, even though the settings are seemingly similar. (Well, they are definitely the same for me as a user.) |
Sure, I get that every day ;-). tty is in raw/no-echo mode. just type "reset" blindly. (may need twice, if you already typed something before). |
ok, reproduced. #10734 fixes it. It's ready to be merged. |
Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
Context: I'm developing a new network driver. I never wrote one from scratch, so doing a lot of stupid things. I would think that logging is there to help me, but instead, it puzzles me.
So, to reproduce this one, you'd need to look at the branch https://github.com/pfalcon/zephyr/tree/smsc9220-pfalcon-logging-issue . There lives the new WIP driver, and to test it, I made adhoc prj.conf changes to hello_world and echo_server samples. The changes are largely the same and include CONFIG_ETHERNET_LOG_LEVEL_DBG=y. I run:
That's the expected output (specifically
<err>
logging).Now I run:
Which is not the expected output, as I miss that err logging of mac address.
(If you run these samples, you'll notice that soon after that output, they crash. Well, that's the issue I'd like logging to help me with, and not sure if it can, because from my PoV it works erratically even with simpler things.)
The text was updated successfully, but these errors were encountered: