Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1169

Bad logging when the javascript view server crashes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.2
    • None
    • None
    • Fedora 15

    Description

      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.

      Attachments

        1. view.input
          9 kB
          Thomas Vander Stichele

        Activity

          People

            Unassigned Unassigned
            thomasvs Thomas Vander Stichele
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: