- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Program terminated with signal 11, Segmentation fa...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2008 07:48 AM
тАО05-28-2008 07:48 AM
After looking at the core the error is
"Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object"
Here is the stack trace for the same.
(gdb) where
#0 0x158a9b0:0 in basic_string
#1 0x60000000c0888140:0 in __cxa_finalize+0x1e0 ()
from /usr/lib/hpux32/libCsup.so.1
#2 0x60000000c0887f10:0 in __cxxTerm_body()+0x30 ()
from /usr/lib/hpux32/libCsup.so.1
#3 0x60000000c0887dc0:0 in __cxxTerm+0x20 () from /usr/lib/hpux32/libCsup.so.1
#4 0x60000000c02a4700:0 in __exit_handler+0xa0 ()
from /usr/lib/hpux32/libc.so.1
Current language: auto; currently c++
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2008 09:05 AM
тАО05-28-2008 09:05 AM
Re: Program terminated with signal 11, Segmentation fault."SEGV_MAPERR - Address not mapped to object"
Is your application compiled with -AP?
Is your application threaded?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2008 09:40 AM
тАО05-28-2008 09:40 AM
Re: Program terminated with signal 11, Segmentation fault."SEGV_MAPERR - Address not mapped to object"
2. I have used -AP this time but didn't get much information and the new stack does not give any information. Here is what I am gettting now.
SEGV_MAPERR - Address not mapped to object
No object file symbols.
#0 0x149ed20 in
(gdb) where
#0 0x149ed20 in
warning: Attempting to unwind past bad PC 0x149ed20
#1 0x60000000c0888140 in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2008 09:55 AM
тАО05-28-2008 09:55 AM
Re: Program terminated with signal 11, Segmentation fault."SEGV_MAPERR - Address not mapped to object"
I'm saying you were already using -AP, which is not the default on IPF.
Are you looking at a core file or running it in the debugger?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2008 09:59 AM
тАО05-28-2008 09:59 AM
Re: Program terminated with signal 11, Segmentation fault."SEGV_MAPERR - Address not mapped to object"
I am not using any of the debugger but I am looking at core file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2008 10:10 AM
тАО05-28-2008 10:10 AM
Re: Program terminated with signal 11, Segmentation fault."SEGV_MAPERR - Address not mapped to object"
The symbol basic_string
only comes from the -AP version. The -AA version has std::basic_string. The address 0x158a9b0 is also very large for the executable.
You could try "info shared" to get a list of shlibs.
You might run it in the debugger to see if you are unloading a shlib before you are finished. Use:
catch load
catch unload
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2008 03:40 PM
тАО05-28-2008 03:40 PM
Re: Program terminated with signal 11, Segmentation fault."SEGV_MAPERR - Address not mapped to object"
Your advice was very helpful. Thank you for your time. But I have a question here, why this problem is occuring;
I had defined a ├в static public function├в in my class Xclass. The function had the following declaration:
static string empty;
I was using the above string to return empty string. I changed it to:
string empty=├в ├в ;
Now I├в m not getting any core dump.
In my process, at the very begining, I was calling delete on the Xclass object pointer. I don├в t understand, why in the end it would crash and not while calling the delete. Can you please explain what is happening here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2008 06:12 PM
тАО05-28-2008 06:12 PM
Re: Program terminated with signal 11, Segmentation fault."SEGV_MAPERR - Address not mapped to object"
Unfortunately we don't know yet.
>I had defined a "static public function" in my class Xclass. The function had the following declaration:
static string empty;
This is a static data member, not a function.
>I was using the above string to return empty string.
Do not do this. The aC++ runtime already has a special empty string, there is no need to have more.
>I changed it to: string empty="";
Did you remove "static"?
Also you don't need to have "". You can just use:
string Xclass::empty;
>I was calling delete on the Xclass object pointer.
That shouldn't change a static data member.
>Can you please explain what is happening here?
If you removed static, then it won't cause cause problems during static destruction.
But to answer your question, we would have to debug the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2008 08:23 AM
тАО05-29-2008 08:23 AM
Re: Program terminated with signal 11, Segmentation fault."SEGV_MAPERR - Address not mapped to object"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2008 06:24 PM
тАО05-29-2008 06:24 PM
SolutionIf you are happy with your answers, please read the following about assigning points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33