[SERVER-5633] 'mongo' on Solaris aborts on startup Created: 17/Apr/12  Updated: 11/Jul/16  Resolved: 05/Jul/12

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.1.1
Fix Version/s: 2.2.0-rc0

Type: Bug Priority: Critical - P2
Reporter: Eric Milkie Assignee: Gregor Macadam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Solaris


Issue Links:
Depends
depends on SERVER-6038 Get rid of stringToNum in mongo/bson/... Closed
is depended on by SERVER-3877 Solaris 1.8.2 mongo Doesn't Parse Use... Closed
Operating System: Solaris
Participants:

 Description   

[admin@fhm8e4dc ~/buildslaves/mongo/SolarisJoyent_64bit/mongo]$ ./mongo
terminate called after throwing an instance of 'int'
Abort (core dumped)

From the callstack, it looks like there is a problem in version.cpp constructing the global variable "versionArray":

 fffffd7ffef6abfa _lwp_kill () + a
 fffffd7ffef19969 raise () + 19
 fffffd7ffeef5b11 abort () + d1
 fffffd7fff2a1f33 ???????? ()
 fffffd7fff29f6be _ZN10__cxxabiv111__terminateEPFvvE () + b
 fffffd7fff29f6f3 _ZN10__cxxabiv112__unexpectedEPFvvE ()
 fffffd7fff29f7d8 _ZL23__gxx_exception_cleanup19_Unwind_Reason_CodeP17_Unwind_Exception ()
 0000000000534174 _ZN5mongoL13_versionArrayEPKc () + 214
 00000000005345af T.2649 () + ef
 0000000000589006 ???????? ()
 000000000064393e _init () + e
 00000000004e5d53 _start () + 63



 Comments   
Comment by Eric Milkie [ 05/Jun/12 ]

I experimented with a few changes to the catch(...) and the throw but I can't make the catch work on Solaris.
Is there some special compiler flag or library we need to make exception handling work?

Comment by Eric Milkie [ 02/Jun/12 ]

I disagree:

[admin@fhm8e4dc ~/buildslaves/mongo/SolarisJoyent_64bit/mongo]$ ./mongo
terminate called after throwing an instance of 'int'
Abort (core dumped)

Perhaps is specific to the machine config?

Comment by Gregor Macadam [ 02/Jun/12 ]

Seems to be fixed.

gen10@solaris:~/mongo$ file mongo
mongo: ELF 64-bit LSB executable AMD64 Version 1 [SSE2 SSE CMOV FPU], dynamically linked, not stripped
gen10@solaris:~/mongo$ ./mongo
MongoDB shell version: 2.1.2-pre-
connecting to: test
>

Generated at Thu Feb 08 03:09:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.