couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Vander Stichele (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COUCHDB-1169) Bad logging when the javascript view server crashes
Date Wed, 18 May 2011 14:41:47 GMT
Bad logging when the javascript view server crashes
---------------------------------------------------

                 Key: COUCHDB-1169
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1169
             Project: CouchDB
          Issue Type: Bug
          Components: JavaScript View Server
    Affects Versions: 1.0.2
         Environment: Fedora 15
            Reporter: Thomas Vander Stichele


I've been trying to rebuild my 1.0.x branch on Fedora 15.  I have applied all patches from
the Fedora RPM, which among other things fixes the update to libjs.

Now my view server terminates when I query a view:

[debug] [<0.127.0>] OS Process #Port<0.2618> Input  :: ["map_doc",{"_id":"b3d340d7aece621e8bf95f9545033aac","_rev":"1-26ef6f671b08ce78d8b338ef70b6035c","updated":"2011-05-01T20:29:00Z","end":null,"complete":null,"statuses":null,"title":"push
new version of flumotion for f14","contexts":null,"due":"2011-05-06T00:00:00Z","recurrence":null,"importance":null,"references":null,"projects":["flumotion"],"time":null,"type":"thing","start":"2011-05-01T20:29:00Z","urgency":null,"description":null}]
[error] [<0.125.0>] OS Process Error <0.127.0> :: {os_process_error,{exit_status,139}}
[error] [emulator] Error in process <0.125.0> with exit value: {{nocatch,{os_process_error,{exit_status,139}}},[{couch_os_process,prompt,2},{couch_query_servers,'-map_docs/2-fun-1-',2},{lists,map,2},{couch_query_servers,map_docs,2},{couch_view_updater,view_compute,2},{couch_view_updater...


This gives no clue whatsoever as to what is failing.  After reading the code and some painful
debugging, I was able to reproduce at least some kind of problem by hand:
[thomas@level 1.0.x]$ /home/thomas/dev/ext/couchdb/branches/1.0.x/bin/couchjs_dev /home/thomas/dev/ext/couchdb/branches/1.0.x/share/server/main.jsUnable
to destroy invalid CouchHTTP instance.
["map_doc",{"_id":"b3d340d7aece621e8bf95f9545033aac","_rev":"1-26ef6f671b08ce78d8b338ef70b6035c","updated":"2011-05-01T20:29:00Z","end":null,"complete":null,"statuses":null,"title":"push
new version of flumotion for f14","contexts":null,"due":"2011-05-06T00:00:00Z","recurrence":null,"importance":null,"references":null,"projects":["flumotion"],"time":null,"type":"thing","start":"2011-05-01T20:29:00Z","urgency":null,"description":null}]
["error","unnamed_error","(new TypeError(\"State.funs is undefined\", \"/home/thomas/dev/ext/couchdb/branches/1.0.x/share/server/main.js\",
1311))"]


However, it keeps running.  IIRC 139 means that the program got SIGSEGV ?

I'll try and replay all the requests to see if I can reproduce.



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message