- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SEGV_ACCERR - Invalid Permissions for object.
Operating System - HP-UX
1748065
Members
5467
Online
108758
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО10-31-2009 04:56 AM
тАО10-31-2009 04:56 AM
SEGV_ACCERR - Invalid Permissions for object.
I have a DLL which is being loaded by another DLL.
In the constructor for one of the classes I use a std::string -
AClass::AClass() {
std::string tempStr;
tempStr = "foo";
}
It crashes at the point where I assign a value to tempStr with
Program received signal SIGSEGV, Segmentation fault
si_code: 2 - SEGV_ACCERR - Invalid Permissions for object.
0x9fffffffb9a54360:0 in std::basic_string,std::alloc
ator >::operator= (this=0x9fffffffffff8ed8, __s=void)
at /opt/aCC/include_std/string.cc:290
290 _C_pref()->__nchars_ = 0;
When I look at the tempStr object, the _C_data pointer does not look right.
(gdb) p tempStr
$1 = {_C_data = 0x1f "", static __nullref =}
tempStr is a local object which I just declared 1 line back before the initialization. No chance that it can be corrupted in between the declaration and assignment.
So not sure whats going on.
In the constructor for one of the classes I use a std::string -
AClass::AClass() {
std::string tempStr;
tempStr = "foo";
}
It crashes at the point where I assign a value to tempStr with
Program received signal SIGSEGV, Segmentation fault
si_code: 2 - SEGV_ACCERR - Invalid Permissions for object.
0x9fffffffb9a54360:0 in std::basic_string
ator
at /opt/aCC/include_std/string.cc:290
290 _C_pref()->__nchars_ = 0;
When I look at the tempStr object, the _C_data pointer does not look right.
(gdb) p tempStr
$1 = {_C_data = 0x1f "", static __nullref =
tempStr is a local object which I just declared 1 line back before the initialization. No chance that it can be corrupted in between the declaration and assignment.
So not sure whats going on.
- Tags:
- SIGSEGV
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2009 05:20 AM
тАО10-31-2009 05:20 AM
Re: SEGV_ACCERR - Invalid Permissions for object.
You might want to combine the two:
std::string tempStr("foo");
Is this application threaded?
std::string tempStr("foo");
Is this application threaded?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2009 05:47 AM
тАО10-31-2009 05:47 AM
Re: SEGV_ACCERR - Invalid Permissions for object.
well this is a simplification of the code. So the assignment is based on some other conditions. Yes the DLL does use threads.
thanks
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2009 10:17 PM
тАО10-31-2009 10:17 PM
Re: SEGV_ACCERR - Invalid Permissions for object.
>Yes the DLL does use threads.
It could possibly be a thread stack overflow.
See my gdb commands in:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1345787
It could possibly be a thread stack overflow.
See my gdb commands in:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1345787
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP