As a point of information, the X64 build works fine.
On Wednesday, September 5, 2012 2:33:03 PM UTC-7, mschwartz wrote:
>
> It is out of the blue that SilkJS compiled for 32-bit Ubuntu is throwing
> an error at startup. Actually it's V8 that is throwing the error.
>
> The script being compiled by v8 for SilkJS appears valid JavaScript and a
> hex dump of that file shows not odd encoding (plain ascii).
>
> I'm wondering if maybe a bug was introduced in V8?
>
>
> The output follows:
>
> $ httpd-silk.js
> abort: API call returned invalid object
>
> ==== Stack trace ============================================
>
> 1: 0xb5e4cc21 <Code>#0#/* warning: no JSFunction object or function
> name found */ (this=0x4d268795 <an Object>#1#)
> Security context: 0x44242279 <JS Object>#2#
> 2: runScript [builtin/require.js:11] (this=0x44242321 <JS Global
> Object>#3#,src=0x267fa4d1 <Very long string[3306]>#4#,fn=0x267f9629
> <String[42]: /home/ubuntu/src/SilkJS/modules/LogFile.js>)
> 3: require [builtin/require.js:113] (this=0x44242321 <JS Global
> Object>#3#,module=0x5a9121c5 <String[7]: LogFile>)
> 4: /* anonymous */ [/usr/local/bin/httpd-silk.js:8] (this=0x44242321
> <JS Global Object>#3#)
>
> ==== Details ================================================
>
> [1]: 0xb5e4cc21 <Code>#0#/* warning: no JSFunction object or function name
> found */ (this=0x4d268795 <an Object>#1#) {
> // expression stack (top to bottom)
> [09] : 0
> [08] : -608931120
> [07] : 0x267fc029 <Foreign>#5#
> [06] : -538220396
> [05] : -538220370
> [04] : -538220366
> [03] : 1
> [02] : 0
> [01] : 68866650
> [00] : 0x267fa4d1 <Very long string[3306]>#4#
> }
>
> [2]: runScript [builtin/require.js:11] (this=0x44242321 <JS Global
> Object>#3#,src=0x267fa4d1 <Very long string[3306]>#4#,fn=0x267f9629
> <String[42]: /home/ubuntu/src/SilkJS/modules/LogFile.js>) {
> // stack-allocated locals
> var script = 0x44208091 <undefined>
> var exports = 0x44208091 <undefined>
> // expression stack (top to bottom)
> [08] : 0x4d268795 <an Object>#1#
> [07] : 0x44245089 <JS Function compileScript>#6#
> [06] : 0x44208091 <undefined>
> [05] : 68768524
> [04] : 0x267f9629 <String[42]:
> /home/ubuntu/src/SilkJS/modules/LogFile.js>
> [03] : 0x267fa4d1 <Very long string[3306]>#4#
> [02] : 0x4d268795 <an Object>#1#
> --------- s o u r c e c o d e ---------
> function runScript(src, fn) {???var script = v8.compileScript(src,
> fn);???var exports =
> v8.runScript(script);???v8.freeScript(script);???return exports;??}
> -----------------------------------------
> }
>
> [3]: require [builtin/require.js:113] (this=0x44242321 <JS Global
> Object>#3#,module=0x5a9121c5 <String[7]: LogFile>) {
> // stack-allocated locals
> var m = 0x44208091 <undefined>
> var modulePath = 0x267f9629 <String[42]:
> /home/ubuntu/src/SilkJS/modules/LogFile.js>
> var content = 0x267f9661 <Very long string[3163]>#7#
> var fsPath = 0x267fa2c9 <JS Array[6]>#8#
> var exports = 0x267fa3b1 <an Object>#9#
> var script = 0x267fa4d1 <Very long string[3306]>#4#
> var context = 0x267fbeb1 <an Object>#10#
> var _module = 0x267fbebd <an Object>#11#
> // expression stack (top to bottom)
> [13] : 0x267f9629 <String[42]:
> /home/ubuntu/src/SilkJS/modules/LogFile.js>
> [12] : 0x267fa4d1 <Very long string[3306]>#4#
> [11] : 0x44242321 <JS Global Object>#3#
> [10] : 0x267ec9f1 <JS Function runScript>#12#
> [09] : 0x267f9629 <String[42]:
> /home/ubuntu/src/SilkJS/modules/LogFile.js>
> [08] : 0x267ece61 <an Object>#13#
> --------- s o u r c e c o d e ---------
> function (module) {???if (module.substr(0, 8) == 'builtin/') {????var m =
> builtin[module.substr(8)];????return m;???}???var modulePath =
> locateFile(module);???if (require.cache[modulePath]) {????return
> require.cache[modulePath];???}? if (soRegEx.test(modulePath)) {?
> require.cache[modulePath...
>
> -----------------------------------------
> }
>
> [4]: /* anonymous */ [/usr/local/bin/httpd-silk.js:8] (this=0x44242321 <JS
> Global Object>#3#) {
> // stack-allocated locals
> var .result = 0x44208091 <undefined>
> // expression stack (top to bottom)
> [02] : 0x5a9121c5 <String[7]: LogFile>
> [01] : 0x44242321 <JS Global Object>#3#
> --------- s o u r c e c o d e ---------
> ///usr/local/bin/silkjs?// httpd/main.js??print_r =
> require('builtin/print_r');?console = require('console');?fs =
> require('fs');??LogFile = require('LogFile');?net =
> require('builtin/net');?process = require('builtin/process');?async =
> require('builtin/async');?v8 = require('builtin/v8');?http = re...
>
> -----------------------------------------
> }
>
> ==== Key ============================================
>
> #0# 0xb5e4cc21: 0xb5e4cc21 <Code>
> #1# 0x4d268795: 0x4d268795 <an Object>
> #2# 0x44242279: 0x44242279 <JS Object>
> #3# 0x44242321: 0x44242321 <JS Global Object>
> #4# 0x267fa4d1: 0x267fa4d1 <Very long string[3306]>
> #5# 0x267fc029: 0x267fc029 <Foreign>
> #6# 0x44245089: 0x44245089 <JS Function compileScript>
> #7# 0x267f9661: 0x267f9661 <Very long string[3163]>
> #8# 0x267fa2c9: 0x267fa2c9 <JS Array[6]>
> 0: 0x46408125 <String[0]: >
> 1: 0x267fa2fd <String[4]: home>
> 2: 0x267fa30d <String[6]: ubuntu>
> 3: 0x267fa321 <String[3]: src>
> 4: 0x267fa331 <String[6]: SilkJS>
> 5: 0x267fa345 <String[7]: modules>
> #9# 0x267fa3b1: 0x267fa3b1 <an Object>
> #10# 0x267fbeb1: 0x267fbeb1 <an Object>
> #11# 0x267fbebd: 0x267fbebd <an Object>
> id: 0x5a9121c5 <String[7]: LogFile>
> uri: 0x267f9629 <String[42]:
> /home/ubuntu/src/SilkJS/modules/LogFile.js>
> #12# 0x267ec9f1: 0x267ec9f1 <JS Function runScript>
> #13# 0x267ece61: 0x267ece61 <an Object>
> =====================
>
> Trace/breakpoint trap (core dumped)
>
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users