Skip to content
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

Network emulator interface: crash and debug output #8

Open
ThomasVolkert opened this issue Mar 7, 2013 · 1 comment
Open

Network emulator interface: crash and debug output #8

ThomasVolkert opened this issue Mar 7, 2013 · 1 comment
Labels

Comments

@ThomasVolkert
Copy link
Member

Sometimes the emulator interface gives the output "Given payload buffer is too small". This message is too short. It should include a hint about the desired and the provided buffer sizes. After such an error message, the program sometimes crashes inside memcpy() which is called by DoGetFoGPayload() from the JNI proxy.

@FlorianLiers
Copy link
Member

Typical error message of a Linux Java VM:

Stack: [0x00007f67526b1000,0x00007f67527b2000], sp=0x00007f67527b0048, free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libc.so.6+0x128f49] __memcpy_ssse3_back+0xb9
C [libEthernetJni.so+0x5a2e] Java_jniImports_PacketFoG_DoGetFoGPayload+0x57
J jniImports.PacketFoG.DoGetFoGPayload(I)[B

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J jniImports.PacketFoG.DoGetFoGPayload(I)[B
J de.tuilmenau.ics.fog.emulator.ethernet.InterfaceMAC.receive()Lde/tuilmenau/ics/fog/emulator/Interface$ReceiveResult;
j de.tuilmenau.ics.fog.emulator.Ethernet.receivedPacket()V+4
j de.tuilmenau.ics.fog.emulator.Ethernet.run()V+4
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants