app using desktopcouch error: couchdb.http.ServerError: (500, ('os_process_error', '{exit_status,139}'))

Bug #709324 reported by Rick Spencer on 2011-01-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
couchdb (Ubuntu)
Medium
Chris Coulson

Bug Description

Binary package hint: desktopcouch

Since yesterday's update, when I run daily-journal, I receive the follow error when it tries to start:

rick@rick-desktop:~/Projects/daily-journal$ quickly run
Traceback (most recent call last):
  File "bin/daily-journal", line 331, in <module>
    window = DailyJournalWindow()
  File "bin/daily-journal", line 84, in __new__
    new_object.finish_initializing(builder)
  File "bin/daily-journal", line 120, in finish_initializing
    self.grid = CouchGrid("daily_journal",record_type=record_type,keys=keys)
  File "/usr/lib/python2.7/dist-packages/quickly/widgets/couch_grid.py", line 144, in __init__
    self._refresh_treeview()
  File "/usr/lib/python2.7/dist-packages/quickly/widgets/couch_grid.py", line 254, in _refresh_treeview
    if len(results) == 0 and self._keys is None:
  File "/usr/lib/pymodules/python2.7/couchdb/client.py", line 987, in __len__
    return len(self.rows)
  File "/usr/lib/pymodules/python2.7/couchdb/client.py", line 1003, in rows
    self._fetch()
  File "/usr/lib/pymodules/python2.7/couchdb/client.py", line 990, in _fetch
    data = self.view._exec(self.options)
  File "/usr/lib/pymodules/python2.7/couchdb/client.py", line 880, in _exec
    _, _, data = self.resource.get_json(**self._encode_options(options))
  File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 393, in get_json
    status, headers, data = self.get(*a, **k)
  File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 374, in get
    return self._request('GET', path, headers=headers, **params)
  File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 419, in _request
    credentials=self.credentials)
  File "/usr/lib/pymodules/python2.7/desktopcouch/records/http.py", line 255, in request
    raise ServerError((status, error))
couchdb.http.ServerError: (500, ('os_process_error', '{exit_status,139}'))

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: desktopcouch 1.0.5-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.37-12.26-generic 2.6.37
Uname: Linux 2.6.37-12-generic i686
Architecture: i386
Date: Fri Jan 28 08:11:21 2011
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 LC_MESSAGES=en_US.utf8
 SHELL=/bin/bash
SourcePackage: desktopcouch

Related branches

Roberto Alsina (ralsina) on 2011-01-28
Changed in desktopcouch (Ubuntu):
importance: Undecided → High
importance: High → Medium
assignee: nobody → Chris Coulson (chrisccoulson)
status: New → Triaged
Chris Coulson (chrisccoulson) wrote :
Download full text (24.5 KiB)

This is because couchjs is still crashing:

Stacktrace:
 #0 getNext (cx=0x1a49aa0, funobj=0x0, native=0, nargs=0, flags=16384, parent=<value optimised out>, atom=0x0) at /build/buildd/xulrunner-2.0-2.0~b10+build1+nobinonly/build-tree/mozilla/js/src/jsgc.h:627
         top = 0x0
 #1 NewFinalizableGCThing<JSFunction> (cx=0x1a49aa0, funobj=0x0, native=0, nargs=0, flags=16384, parent=<value optimised out>, atom=0x0) at /build/buildd/xulrunner-2.0-2.0~b10+build1+nobinonly/build-tree/mozilla/js/src/jsgcinlines.h:122
         cell = 0x7ffffd51ed90
 #2 js_NewGCFunction (cx=0x1a49aa0, funobj=0x0, native=0, nargs=0, flags=16384, parent=<value optimised out>, atom=0x0) at /build/buildd/xulrunner-2.0-2.0~b10+build1+nobinonly/build-tree/mozilla/js/src/jsgcinlines.h:168
 No locals.
 #3 NewObject<false, true> (cx=0x1a49aa0, funobj=0x0, native=0, nargs=0, flags=16384, parent=<value optimised out>, atom=0x0) at /build/buildd/xulrunner-2.0-2.0~b10+build1+nobinonly/build-tree/mozilla/js/src/jsobjinlines.h:1064
         obj = <value optimised out>
 #4 NewFunction (cx=0x1a49aa0, funobj=0x0, native=0, nargs=0, flags=16384, parent=<value optimised out>, atom=0x0) at /build/buildd/xulrunner-2.0-2.0~b10+build1+nobinonly/build-tree/mozilla/js/src/jsobjinlines.h:1098
 No locals.
 #5 js_NewFunction (cx=0x1a49aa0, funobj=0x0, native=0, nargs=0, flags=16384, parent=<value optimised out>, atom=0x0) at /build/buildd/xulrunner-2.0-2.0~b10+build1+nobinonly/build-tree/mozilla/js/src/jsfun.cpp:2665
         fun = <value optimised out>
 #6 0x00007fc54543f7a5 in newFunction (fn=0x1a4c4b0, funtc=0x7ffffd51ee90, funAtom=<value optimised out>, lambda=<value optimised out>) at /build/buildd/xulrunner-2.0-2.0~b10+build1+nobinonly/build-tree/mozilla/js/src/jsparse.cpp:1981
         parent = <value optimised out>
         fun = <value optimised out>
 #7 EnterFunction (fn=0x1a4c4b0, funtc=0x7ffffd51ee90, funAtom=<value optimised out>, lambda=<value optimised out>) at /build/buildd/xulrunner-2.0-2.0~b10+build1+nobinonly/build-tree/mozilla/js/src/jsparse.cpp:2637
         tc = 0x7ffffd51f600
         fun = 0x7ffffd51f9b0
         funbox = <value optimised out>
 #8 0x00007fc54544d18f in js::Parser::functionDef (this=0x7ffffd51f1c0, funAtom=0x0, type=js::Parser::GENERAL, lambda=0) at /build/buildd/xulrunner-2.0-2.0~b10+build1+nobinonly/build-tree/mozilla/js/src/jsparse.cpp:3114
         funbox = <value optimised out>
         fun = <value optimised out>
         prelude = <value optimised out>
         tt = 1166635648
         body = <value optimised out>
         result = <value optimised out>
         op = <value optimised out>
         pn = 0x1a4c4b0
         bodyLevel = true
         outertc = 0x7ffffd51f600
         funtc = {flags = 0, bodyid = 0, blockidGen = 0, topStmt = 0x0, topScopeStmt = 0x0, blockChainBox = 0x0, blockNode = 0x0, decls = {<JSAtomSet> = {list = 0x0, table = 0x0, count = 0}, <No data fields>}, parser = 0x7ffffd51f1c0, {fun_ = 0x0, scopeChain_ = 0x0}, lexdeps = {<JSAtomSet> = {list = 0x0, table = 0x0, count = 0}, <No data fields>}, parent = 0x7ffffd51f600, staticLevel = 0, funbox = 0x0, functionList = 0x0, innermostWith = 0x0, bindings = {lastBinding = 0x198a...

affects: desktopcouch (Ubuntu) → couchdb (Ubuntu)
Chris Coulson (chrisccoulson) wrote :

Ah, figured it out now. We need to use the new JS_EnterCrossCompartmentCall/JS_LeaveCrossCompartmentCall API around calls using the sandbox object, as it's stored in a different compartment.

Changed in couchdb (Ubuntu):
status: Triaged → In Progress
Chris Coulson (chrisccoulson) wrote :

Uploaded now, sleep time...

Changed in couchdb (Ubuntu):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package couchdb - 1.0.1-0ubuntu9

---------------
couchdb (1.0.1-0ubuntu9) natty; urgency=low

  * Fix LP: #709324 - couchjs crashes with SIGSEGV in JS_EvaluateUCScript.
    Guard calls in the sandbox context with the new
    JS_{Enter/Leave}CrossCompartmentCall API
    - update debian/patches/mozjs2.0.patch
    - update debian/patches/mozjs2.0_autotools.patch
 -- Chris Coulson <email address hidden> Sat, 29 Jan 2011 02:52:44 +0000

Changed in couchdb (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers