MLstate / opalang

The Opa Language for Web Application Development
http://opalang.org
Other
1.25k stars 126 forks source link

fail to run front page example in Ubuntu 12.04: killed #103

Closed btbonval closed 11 years ago

btbonval commented 11 years ago

As a first-run, I tried the example shown at http://opalang.org/

import stdlib.themes.bootstrap
database int /counter = 0;
function action(_) {
        /counter++;
        #msg = <div>Thank you, user number {/counter}!</div>
}
function page() {
        <h1 id=msg>Hello</h1>
        <a class="btn" onclick={action}>Click me</a>
}
Server.start(
        Server.http,
        { ~page, title: "Database demo" }
)

The process is killed with little in the way of helpful output:

$ opa -v --backtrace hello.opa --          
Opa version 1.1.0
(c) 2007-2012 MLstate, All Rights Reserved.
Build: 4051-(85657bf)
Select /usr/lib/opa/stdlib/opabsl.opp
loading file "/usr/lib/opa/stdlib/opabsl.opp/opabsl.bypass" (plugin)
Select /usr/lib/opa/stdlib/server.opp
loading file "/usr/lib/opa/stdlib/server.opp/server.bypass" (plugin)
Select /usr/lib/opa/stdlib/unix.opp
loading file "/usr/lib/opa/stdlib/unix.opp/unix.bypass" (plugin)
Select /usr/lib/opa/stdlib/server.opp
Select /usr/lib/opa/stdlib/server.opp
Select /usr/lib/opa/stdlib/server.opp
Select /usr/lib/opa/stdlib/socket.opp
loading file "/usr/lib/opa/stdlib/socket.opp/socket.bypass" (plugin)

Killed

The deb file used to install Opa (version and build noted above):

opa-1.1.0.x64.deb
52fa206e86338e543b34ca39f43570cc (md5)
180ec96f0f560997e765e00dd2e6fbbcd251c967 (sha1)

System info:

$ node -v
v0.6.12
$ npm -v
1.1.4
$ uname -a
Linux hostname 3.2.0-29-virtual #46-Ubuntu SMP Fri Jul 27 17:23:50 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"

I did a search of tickets for "bypass" thinking it might be related to socket.bypass, but that did not yield anything related to this problem. Google searches for "opa socket.bypass" yield an old SVN commit and some sites where people trade socket wrenches.

btbonval commented 11 years ago

Closer investigation yields nothing to do with Opa. So sayeth dmesg: [14477558.089091] Out of memory: Kill process 24753 (opa-bin) score 168 or sacrifice child