- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Crashes in sprintf saying memory not mapped to...
Operating System - HP-UX
1752810
Members
5916
Online
108789
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
тАО02-24-2009 01:08 AM
тАО02-24-2009 01:08 AM
Crashes in sprintf saying memory not mapped to object
I have a crash in my code. It is a multithreaded application nd so i am compiling it with -mt so that it is thread safe as we had earlier faced issue with this. But even now i have such error below is the backtrace
#0 0xc000000000338ab0:0 in T_19_73d5_cl___doprnt_main+0x85c0 ()
from /usr/lib/hpux64/libc.so.1
#1 0xc000000000328170:0 in _doprnt+0x30 () from /usr/lib/hpux64/libc.so.1
#2 0xc00000000034b7c0:0 in sprintf+0x100 () from /usr/lib/hpux64/libc.so.1
#3 0x4000000000019050:0 in MakeDatabaseCall (in_record={
NSN_Nr = "29999999\000\000|146|Re"}, out_record=0x9fffffffffffcec0)
at /hubd/home/id817019/xxx/src/xyz.pc:492
#4 0x4000000000016770:0 in S4202_PortingOperatorIdRetrieve (
reqbuffer=0x600000000015a530 "", respbuffer=0x9fffffffffffd320)
at /hubd/home/id817019/xxx/src/xyz.pc:280
#5 0x40000000000138b0:0 in S_4202 (rqst=0x600000000002a6d0)
at /hubd/home/id817019/xxx/src/xyz.pc:151
#6 0xc0000000035ccb50:0 in _tmsvcdsp () at tmsvcdsp.c:496
#7 0xc000000003625820:0 in _tmrunserver () at tmrunsvr.c:2014
#8 0xc0000000035caf60:0 in _tmstartserver () at tmstrtsrvr.c:148
#0 0xc000000000338ab0:0 in T_19_73d5_cl___doprnt_main+0x85c0 ()
from /usr/lib/hpux64/libc.so.1
#1 0xc000000000328170:0 in _doprnt+0x30 () from /usr/lib/hpux64/libc.so.1
#2 0xc00000000034b7c0:0 in sprintf+0x100 () from /usr/lib/hpux64/libc.so.1
#3 0x4000000000019050:0 in MakeDatabaseCall (in_record={
NSN_Nr = "29999999\000\000|146|Re"}, out_record=0x9fffffffffffcec0)
at /hubd/home/id817019/xxx/src/xyz.pc:492
#4 0x4000000000016770:0 in S4202_PortingOperatorIdRetrieve (
reqbuffer=0x600000000015a530 "", respbuffer=0x9fffffffffffd320)
at /hubd/home/id817019/xxx/src/xyz.pc:280
#5 0x40000000000138b0:0 in S_4202 (rqst=0x600000000002a6d0)
at /hubd/home/id817019/xxx/src/xyz.pc:151
#6 0xc0000000035ccb50:0 in _tmsvcdsp () at tmsvcdsp.c:496
#7 0xc000000003625820:0 in _tmrunserver () at tmrunsvr.c:2014
#8 0xc0000000035caf60:0 in _tmstartserver () at tmstrtsrvr.c:148
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 02:41 AM
тАО02-24-2009 02:41 AM
Re: Crashes in sprintf saying memory not mapped to object
you should look parameters in registers at frame 2 - or out registers at frame3
then check sprintf parameters.
but this looks like one of the parameter is corrupted. - like a string at a bad address in params due to some corruption.
then check sprintf parameters.
but this looks like one of the parameter is corrupted. - like a string at a bad address in params due to some corruption.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 06:02 AM
тАО02-24-2009 06:02 AM
Re: Crashes in sprintf saying memory not mapped to object
yeah i was passing bad parameters to it. for copying an interger to string i was using a string format specifier instead of integer format specifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 08:57 AM
тАО02-24-2009 08:57 AM
Re: Crashes in sprintf saying memory not mapped to object
>i was passing bad parameters to it. for copying an integer to string i was using a string format specifier instead of integer format specifier
If you use aCC6, the compiler should warn if your formats don't match your arguments.
If you use aCC6, the compiler should warn if your formats don't match your arguments.
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