Actually, now that I think of it the file on the sdcard was created in a
previous run where the result was a Segmentation Fault. I think I mixed up
the generic and hardware versions of the binary. Now when I try and run the
generic binary on the emulator, I get this again:

$ adb shell /data/local/webcore_test file:///data/local/hello_world.html
virtual void WebCore::Widget::show()
void WebCore::ScriptController::updatePlatformScriptObjects()
void WebCore::ScriptController::updatePlatformScriptObjects()
void WebCore::ScriptController::updatePlatformScriptObjects()
[1]   Segmentation fault      /data/local/webc...

This is from my debug session:
(gdb) set verbose on
(gdb) b main
Reading in symbols for external/webkit/perf/main.cpp...done.
Breakpoint 1 at 0x1c12a: file external/webkit/perf/main.cpp, line 103.
(gdb) c
Continuing.
Reading in symbols for bionic/linker/rt.c...done.
Reading in symbols for bionic/linker/linker.c...done.
warning: .dynamic section for
"/home/bsan/android/out/target/product/generic/symbols/system/lib/libc.so"
is not at the expected address (wrong library or version mismatch?)
Reading symbols from
/home/bsan/android/out/target/product/generic/symbols/system/lib/libc.so...done.
[New Thread 246]
warning: .dynamic section for
"/home/bsan/android/out/target/product/generic/symbols/system/lib/libstdc++.so"
is not at the expected address (wrong library or version mismatch?)
Reading symbols from
/home/bsan/android/out/target/product/generic/symbols/system/lib/libstdc++.so...done.
warning: .dynamic section for
"/home/bsan/android/out/target/product/generic/symbols/system/lib/libm.so"
is not at the expected address
warning: difference appears to be caused by prelink, adjusting expectations
Reading symbols from
/home/bsan/android/out/target/product/generic/symbols/system/lib/libm.so...done.
warning: .dynamic section for
"/home/bsan/android/out/target/product/generic/symbols/system/lib/libexpat.so"
is not at the expected address (wrong library or version mismatch?)
Reading symbols from
/home/bsan/android/out/target/product/generic/symbols/system/lib/libexpat.so...done.
warning: .dynamic section for
"/home/bsan/android/out/target/product/generic/symbols/system/lib/libcrypto.so"
is not at the expected address (wrong library or version mismatch?)
Reading symbols from
/home/bsan/android/out/target/product/generic/symbols/system/lib/libcrypto.so...
./debug:  line 69:  1097 Segmentation fault      arm-eabi-gdb -silent -x
"$OUT_ROOT/gdbclient.cmds" "$OUT_EXE_SYMBOLS/$LOCAL_EXE"
readchar: Got EOF
Remote side has terminated connection.  GDBserver will reopen the
connection.

On Fri, Nov 13, 2009 at 2:43 PM, Patrick Scott <[email protected]> wrote:

> That is very interesting. It could be that the binary could not find that
> symbol while building but the linker didn't care. The png should not have
> been created if the executable did not link so something very weird is going
> on. Did this just start happening? Did you change anything or do a sync?
>
>
> On Fri, Nov 13, 2009 at 1:38 PM, Buakaw San <[email protected]> wrote:
>
>> Okay, I've tried this and I get:
>>
>> reloc_library[1175]:  1476 cannot locate
>> '_ZN11GraphicsJNI12createBitmapEP7_JNIEnvP8SkBitmapbP11_jbyteArray'..
>> .CANNOT LINK EXECUTABLE
>>
>> I get this on the emulator and on the hardware. The png file gets created
>> on the sdcard but it's empty. When I try to debug this using gdbserver, I
>> set a breakpoint at main.cpp:main but it just continues running apparently
>> stuck loading bionic/linker/linker.c symbols or something. If you have an
>> answer for any of these two issues it would be very helpful.
>>
>> Thanks.
>>
>>
>> On Mon, Nov 2, 2009 at 3:52 PM, Patrick Scott <[email protected]> wrote:
>>
>>> You need to supply the url as part of the command. Currently,
>>> webcore_test does not access the network since it does not start up a vm.
>>> You will need to supply a sdcard url (file:///sdcard/some/site.html).
>>>
>>>  Some of the output is debugging statements used by libwebcore.so which
>>> are normally piped to /dev/null and not seen. The actual png output is sent
>>> to /sdcard/webcore_test.png.
>>>
>>>
>>> On Mon, Nov 2, 2009 at 12:58 PM, Buakaw San <[email protected]>wrote:
>>>
>>>> I'm trying to use webcore_test to execute performance tests, in
>>>> particular measuring the speed of page loads for numerous websites.
>>>> I've built webcore_test after including external/webkit/perf to the
>>>> android build. I used adb push to copy it to the system. When I run
>>>> the executable using adb shell, I get the following output:
>>>>
>>>> # ./webcore_test d
>>>> virtual void WebCore::Widget::show()
>>>> void WebCore::ScriptController::updatePlatformScriptObjects()
>>>> void WebCore::ScriptController::updatePlatformScriptObjects()
>>>> void WebCore::ScriptController::updatePlatformScriptObjects()
>>>>
>>>> Not sure where this output is coming from. From looking at the code it
>>>> would seem that it should prompt for a web address then load it in a
>>>> webview and save the image to the sdcard.
>>>>
>>>> What is going on here? How do I use this command line utility
>>>> properly?
>>>>
>>>> Thanks.
>>>>
>>>
>>>
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to