Hi, I downloaded the code yesterday and I after compiling it, I am trying to run it on the emulator by following steps:-
1) ANDROID_PRODUCT_OUT=/path_to_my_android/out/target/product/generic 2) out/host/linux-x86/bin/emulator -sysdir out/target/product/generic/ -kernel prebuilt/android-arm/kernel/kernel-qemu I am getting a segmentation fault immediately after running #2. After debugging I have found that the code is failing in external/qemu/ sockets.c function "sock_address_from_bsd" which is trying to derefernce a NULL pointer passed to it by the function "sock_address_init_resolve". The stacktrace obtained by running gdb after seg fault is:- (gdb) backtrace #0 sock_address_from_bsd (a=0xffed7a6c, from=0x0, fromlen=16) at external/qemu/sockets.c:560 #1 0x080af37b in sock_address_init_resolve (a=0xffed7a6c, hostname=0x822cc20 "manasa-linux", port=0, preferIn6=0) at external/ qemu/sockets.c:652 #2 0x0807fee1 in getouraddr () at external/qemu/slirp2/misc.c:57 #3 0x08080dd2 in slirp_init () at external/qemu/slirp2/slirp.c:226 #4 0x0809fa45 in net_client_init (device=0xffed9248 "user", p=0x81c71b4 "") at external/qemu/vl.c:4401 #5 0x080a1193 in qemu_main (argc=21, argv=0xffed9340) at external/ qemu/vl.c:5587 #6 0x080dd24b in main (argc=-1, argv=0xffedb6f4) at external/qemu/ android/main.c:2587 It looks like it calls bionic "getaddrinfo" library function in "sock_address_init_resolve" which doesn't return proper value, but I am not sure about this. Does anybody has any idea why is this happening or where I am going wrong? --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
