mdgtdude43vr / droidbox

Automatically exported from code.google.com/p/droidbox
0 stars 0 forks source link

Why does application crash while connecting Internet? #37

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
  1.Start emulator with system.img & zImage builded by source of droidbox 2.3
  2.open explorer or apks and connect the Internet 
  3.the application closes immediately   

What is the expected output? What do you see instead?
  I wish running droidbox in order to inspect the network situation of apks. 

What version of the product are you using? On what operating system?
  Using droidbox 2.3 on ubuntu 12.04.

Please provide any additional information below.
  I wonder what the problem is.I need for your help.Thanks.

Original issue reported on code.google.com by seuk...@gmail.com on 21 Jun 2013 at 4:36

GoogleCodeExporter commented 8 years ago
I've the same problem and I don't find the solution. :(

Original comment by antonio....@gmail.com on 22 Aug 2013 at 12:51

GoogleCodeExporter commented 8 years ago
It seems that the problem is located in OSNetworkSystem_readDirect and 
OSNetworkSystem_recvDirect 
(libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.c
pp).

The droidbox23 patch from 
https://code.google.com/p/droidbox/source/browse/trunk/droidbox23/libcore.patch#
931 adds:  

int len = strlen((char*)dst); 

which does not represent the correct length of bytes read from the network and 
therefore causes a memory access violation.
Using int len = (int)bytesReceived; in OSNetworkSystem_readDirect and 
OSNetworkSystem_recvDirect should fix the problem.

Cheers,
Lukas

Original comment by l.weichs...@gmail.com on 29 Jun 2014 at 11:39

GoogleCodeExporter commented 8 years ago
thank you.

Original comment by seuk...@gmail.com on 25 Sep 2014 at 7:48