- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Error strlen+0x41 () from /usr/lib/hpux32/libc...
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
тАО11-17-2009 04:22 AM
тАО11-17-2009 04:22 AM
Error strlen+0x41 () from /usr/lib/hpux32/libc.so.1
I am starting a tuxedo server on HP Itanium machine. This server starts perfectly on HP UX PA RISC system. However on itanium its coring.
here is the gdb trace,
==========================================
#0 0x60000000c01f4ea0:1 in strlen+0x41 () from /usr/lib/hpux32/libc.so.1
#1 0x4051850:2 in inline string_char_traits
s=0x80000000 )
at /opt/aCC/include/string:252
#2 0x4051820:0 in basic_string
alloc=@0x7fffa931) at /opt/aCC/include/string.cc:166
#3 0x4103790:2 in inline allocator::allocator() ()
#4 0x4103770:0 in RoutingServer::registerMapFiles (this=0x40029f80,
file=0x4006bdb4 "../data/adr_npanxx_area_host-prod.dat")
at RoutingServer.cpp:100
#5 0x404c330:0 in ADDR_router::initialize (this=0x40029f80)
at ADDR_router.cpp:193
#6 0x41092a0:0 in tpsvrinit (argc=18, argv=0x7fffd7d0)
at RoutingTuxFront.cpp:39
#7 0x60000000ccd2ce40:0 in _tmmain () at stdmain.c:262
#8 0x60000000ccd01cd0:0 in _tmstartserver () at tmstrtsrvr.c:129
#9 0x4048ef0:0 in main+0x50 ()
(gdb) frame 4
#4 0x4103770:0 in RoutingServer::registerMapFiles (this=0x40029f80,
file=0x4006bdb4 "../data/adr_npanxx_area_host-prod.dat")
at RoutingServer.cpp:100
100 _mapFileList.push_back(string(mapFile));
(gdb) whatis _mapFileList
type = class list
(gdb) list
95 //
96 _mapFileList.push_back(string(file));
97 va_list vargs;
98 va_start(vargs, file);
99 while (mapFile = va_arg(vargs, const char*))
100 _mapFileList.push_back(string(mapFile));
101 va_end(vargs);
102 };
==========================================
Thanks in advance.
Regards,
Mustapha Shaikh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2009 05:14 AM
тАО11-17-2009 05:14 AM
Re: Error strlen+0x41 () from /usr/lib/hpux32/libc.so.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2009 11:48 PM
тАО11-17-2009 11:48 PM
Re: Error strlen+0x41 () from /usr/lib/hpux32/libc.so.1
99 while (mapFile = va_arg(vargs, const char*))
100 _mapFileList.push_back(string(mapFile));
Have you passed an explicit NULL to registerMapFiles to terminate your variable argument list?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2009 04:32 AM
тАО11-18-2009 04:32 AM
Re: Error strlen+0x41 () from /usr/lib/hpux32/libc.so.1
registerMapFiles(f1.c_str(),
f2.c_str(),f3.c_str(),f4.c_str(),f5.c_str(),f6.c_str(),f7.c_str(),f8.c_str(),f9.c_str(),f10.c_str(),f11.c_str(),f12.c_str(),f13.c_str(),f14.c_str());
After puttng some couts I got the following trace in registerMapFiles(),
============
cout<< string(file)<< endl;
int i=0;
while (mapFile = va_arg(vargs, const char*))
{
cout << i++ << ":"<
../data/1.dat
0:../data/2.dat
1:../data/3.dat
2:../data/4.dat
3:../data/5.dat
4:../data/6.dat
5:../data/7.dat
6:../data/8.dat
7:../data/9.dat
8:../data/10.dat
9:../data/11.dat
10:../data/12.dat
11:../data/13.dat
12:../data/14.dat
13:
14:`
15:
It looks like 13,14 and 15th parameters are having some junk characters. However the intersting thing is that we are not passing it to the function, still how its getting passed is a mystery.
Many Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2009 09:53 AM
тАО11-21-2009 09:53 AM
Re: Error strlen+0x41 () from /usr/lib/hpux32/libc.so.1
As I guessed, you are NOT passing in NULL. You must have that at the end.
>the interesting thing is that we are not passing it to the function
va_arg doesn't know how many args you are passing. You have it going until it sees a NULL.