I'd like to mention that this is a so called hosted vserver, so its not a native OS I'm dealing with here using Fedora Core 8. I don't know however the OS hosting the vservers.
Using startup.sh as suggested create core dump before writing creating any logs, however I get the following messages in /var/log/messages:
# tail /var/log/messages
Sep 27 10:27:59 vs156169 OpenSBC
22007: Starting service process "OpenSBC" v1.1.5-12
Sep 27 10:27:59 vs156169 OpenSBC
22009: !
Sep 27 10:28:01 vs156169 OpenSBC
22251: Starting service process "OpenSBC" v1.1.5-12
Sep 27 10:28:01 vs156169 OpenSBC
22252: !
Sep 27 10:28:02 vs156169 OpenSBC
22407: Starting service process "OpenSBC" v1.1.5-12
Sep 27 10:28:02 vs156169 OpenSBC
22408: !
Sep 27 10:28:04 vs156169 OpenSBC
22516: Starting service process "OpenSBC" v1.1.5-12
Sep 27 10:28:04 vs156169 OpenSBC
23558: !
Sep 27 10:28:06 vs156169 OpenSBC
23795: Starting service process "OpenSBC" v1.1.5-12
Sep 27 10:28:06 vs156169 OpenSBC
23796: !
- gdb opensbc core.5748
GNU gdb Red Hat Linux (6.6-45.fc8rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...
Using host libthread_db library "/lib64/libthread_db.so.1".
Cannot access memory at address 0x2a95771c48
(gdb) bt
\#0 0x0000002a9678d357 in ?? ()
Cannot access memory at address 0x7fbfffd9a8
(gdb)
I also tried the binary from ../obj_linux_x86_64_d but the core had the same error (with a different address pointer though every time it ran).
Once I managed to produce this, which might shed some light:
# ./startup.sh
Core file size set to 1024000/18446744073709551615
Daemon started with pid 30088
]# ls -l
Message from syslogd@vs156169 at Sep 27 09:53:51 ...
OpenSBC
30087: Starting service process "OpenSBC" v1.1.5-12
art
Message from syslogd@vs156169 at Sep 27 09:53:51 ...
OpenSBC
30088: Assertion fail: Function pthread_create failed, file tlibthrd.cxx, line 930, Error=12
Might it be related to the way threads are created at startup and hence kernel related?