-
Notifications
You must be signed in to change notification settings - Fork 64
[udp] Throw out error with building UDP server in qemu #758
Comments
Let me start with this one. So, there reason for that could be not following exactly the QEMU networking setup as described (linked) from a sample header itself: https://github.com/01org/zephyr.js/blob/master/samples/UDPEchoServ4.js#L6 For example, if I don't run ./loop-socat.sh or ./loop-slip-tap.sh scripts, I get:
Note that it's a different error message than reported above, but I may only imagine it mat be because of not following the instructions mentioned above exactly. So, getting errors like that is not ideal - they aren't helpful to an end user. But that's how Zephyr currently works (well, the error message comes from QEMU). It would be nice to be more user-friendly, but as I said few times already, I don't have an exact idea where and how to resolve that, we need to think about it all together. |
Now to the first error reported - a fatal exception.
I can only +1 that. I sometimes get similar things from QEMU too, and that happened with different examples (e.g. with Zephyr's own echo_server, etc.). It's unclear where the issue lies. It can be Zephyr, it can be even QEMU. Well, could be my code, but it's a thin lyer on top of Zephyr API calls. The problem is that it's not reproducible. If you can reproduce it with high probability, please give the instructions I'll be happy to look into it, or we can report it upstream. |
Ok, just an extra confirmation that I see these. I didn't see these crashes in a while, and now I got crash - uncrash - crash. Regdump from the latest one:
Just as above, it's "Trying to execute code outside RAM or ROM", though address is different. And yes, I got this with UDP code, but I simply don't run anything else now. Previously, I believe saw similar with other scripts, and definitely saw similar with native Zephyr samples. |
Now I instead got:
So, if you guys don't see these with other JS script, then well, I'd tend to agree that this is related to "dgram" module, but first relation would networking enabled in Zephyr. Though UDP networking is also enabled for OCF, I wonder if you ever see such with it (I ran it 4-5 times at the Portland Hackathon, so don't have representative sample set). If only it was reproducible... But it's completely random. So, if you guys see any case like that, please post the crash dump here (textual paste is definitely better than screenshot), let's see if we find any pattern. |
(Damn, maybe I don't initialize memory somewhere? I'll re-review stuff when I get a chance, in bag-packing mode now.) |
Is this on QEMU? If yes I wouldn't spend too much time on it. These things happen on QEMU and I was never able to explain them, specifically with networking. It even happens with the Zephyr samples. |
@jprestwo : Yes, QEMU, per the title. Well, as the ticket is still open, I just add info to it. And would be nice to figure out the issue eventually ;-). |
I'm not able to reproduce this today with a number of tries. One thing I noticed is that I hadn't updated my "net-tools" repo since I initially cloned it last March. There have been a number of patches in there, perhaps this matters? Can you see if you're able to reproduce, @cuiyanx? |
@grgustaf No, I can't reproduce. |
I am following the instructions on Networking with Qemu to build /samples/UDPEchoServ4.js and /samples/UDPEchoServ6.js, sometimes I have got some error messages.
command:
make BOARD=qemu_x86 qemu JS=sample/UDPEchoServ4.js
error message:
The text was updated successfully, but these errors were encountered: