Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-72

Support Mongo C Extension Gem (mongo_ext) on Big-Endian systems (Solaris SPARC)

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      mongo_ext does not currently work.

      Client (Solaris SPARC) throws this error when trying to connect...

      1. ruby mongotest.rb
        /usr/local/lib/ruby/gems/1.8/gems/mongo-0.18.1/lib/../lib/mongo/connection.rb:518:in `receive_message_on_socket': Operation failed with the following exception: connection closed (Mongo::ConnectionFailure)
        from /usr/local/lib/ruby/gems/1.8/gems/mongo-0.18.1/lib/../lib/mongo/connection.rb:424:in `receive_header'
        from /usr/local/lib/ruby/gems/1.8/gems/mongo-0.18.1/lib/../lib/mongo/connection.rb:417:in `receive'
        from /usr/local/lib/ruby/gems/1.8/gems/mongo-0.18.1/lib/../lib/mongo/connection.rb:245:in `receive_message'
        from /usr/local/lib/ruby/gems/1.8/gems/mongo-0.18.1/lib/../lib/mongo/cursor.rb:307:in `send_query_if_needed'
        from /usr/local/lib/ruby/gems/1.8/gems/mongo-0.18.1/lib/../lib/mongo/cursor.rb:282:in `refill_via_get_more'
        from /usr/local/lib/ruby/gems/1.8/gems/mongo-0.18.1/lib/../lib/mongo/cursor.rb:270:in `num_remaining'
        from /usr/local/lib/ruby/gems/1.8/gems/mongo-0.18.1/lib/../lib/mongo/cursor.rb:55:in `next_object'
        from /usr/local/lib/ruby/gems/1.8/gems/mongo-0.18.1/lib/../lib/mongo/db.rb:359:in `command'
        from /usr/local/lib/ruby/gems/1.8/gems/mongo-0.18.1/lib/../lib/mongo/connection.rb:262:in `connect_to_master'
        from /usr/local/lib/ruby/gems/1.8/gems/mongo-0.18.1/lib/../lib/mongo/connection.rb:255:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/mongo-0.18.1/lib/../lib/mongo/connection.rb:255:in `connect_to_master'
        from /usr/local/lib/ruby/gems/1.8/gems/mongo-0.18.1/lib/../lib/mongo/connection.rb:133:in `initialize'
        from mongotest.rb:6:in `new'
        from mongotest.rb:6

      The mongod server console shows this...
      Mon Dec 21 13:40:48 connection accepted from X.X.X.X:59943 #1
      Mon Dec 21 13:40:48 Assertion: Invalid BSONObj spec size: 318767104
      0x4ca5c3 0x4a1e59 0x519786 0x59b1b5 0x60b753 0x61e8b7 0x61e4bf 0x3ea78064a7 0x3ea6cd3c2d
      /opt/mongodb-linux-x86_64-2009-12-21/bin/mongod(_ZN5mongo11msgassertedEPKc+0x203) [0x4ca5c3]
      /opt/mongodb-linux-x86_64-2009-12-21/bin/mongod(_ZN5mongo7BSONObjC1EPKcb+0x119) [0x4a1e59]
      /opt/mongodb-linux-x86_64-2009-12-21/bin/mongod(_ZN5mongo12QueryMessageC1ERNS_9DbMessageE+0xc6) [0x519786]
      /opt/mongodb-linux-x86_64-2009-12-21/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERK11sockaddr_in+0x10e5) [0x59b1b5]
      /opt/mongodb-linux-x86_64-2009-12-21/bin/mongod(_ZN5mongo10connThreadEv+0x1f3) [0x60b753]
      /opt/mongodb-linux-x86_64-2009-12-21/bin/mongod(_ZNK5boost9function0IvSaINS_13function_baseEEEclEv+0xa7) [0x61e8b7]
      /opt/mongodb-linux-x86_64-2009-12-21/bin/mongod [0x61e4bf]
      /lib64/libpthread.so.0 [0x3ea78064a7]
      /lib64/libc.so.6(clone+0x6d) [0x3ea6cd3c2d]
      Mon Dec 21 13:40:48 AssertionException in connThread, closing client connection

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            chewie71 Matt Mencel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: