- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Migrating our app from HP-UX PA-RISC to HP-UX ...
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
Forums
Discussions
Discussions
Discussions
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
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-16-2007 05:38 AM
05-16-2007 05:38 AM
Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object
#0 0xc0000000001d2b20:0 in strcpy+0x40 () from /usr/lib/hpux64/libc.so.1
(gdb) bt
#0 0xc0000000001d2b20:0 in strcpy+0x40 () from /usr/lib/hpux64/libc.so.1
#1 0xc000000005445d30:0 in OpenFile (file=0x9fffffffbf7f1940,
fn=0x9a50 ) at clcomp.c:191
#2 0xc000000005444fc0:0 in ClCompile (kwlist=0x6000000000000370)
at clcomp.c:126
#3 0x4000000000005700:0 in main (argc=2, argv=0x9fffffffffffeae8)
at odlcomp.c:187
we are getting core dump here, i know that libc.a is no more in HP 11i but i am not sure how to check we new libc.sl lib file in 11i whether our code has to change to make compatible with new lib file. please clarrify.
Solved! Go to Solution.
- Tags:
- SIGSEGV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 06:09 AM
05-16-2007 06:09 AM
Re: Migrating our app from HPUX PA RISC to HPUX 11i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 07:22 AM
05-16-2007 07:22 AM
Re: Migrating our app from HPUX PA RISC to HPUX 11i
Can you confirm that all you are doing is upgrading from HP-UX 11.00 to 11i or are you also moving from PA-RISC (rp or 900 series) to Itanium (rx-series)
What can you tell me about this app that you are currently using. Is it installed as binaries or do you have source or object code avialable for it?
Regards
Andrew Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 08:04 AM
05-16-2007 08:04 AM
Re: Migrating our app from HPUX PA RISC to HPUX 11i
when we compile we are getting the core dump. before this we have almost settled all libary mismatch for both the box.
Any input in this regard will be helpful. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 08:23 AM
05-16-2007 08:23 AM
Re: Migrating our app from HPUX PA RISC to HPUX 11i
You will probably need significant code changes to make this work. Oracle for example maintains a separate compile and probably code base for the same Os 11.23, PA versus IA-64.
Its debug and development time for the app more than likely.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 12:59 PM
05-16-2007 12:59 PM
Re: Migrating our app from HPUX PA RISC to HPUX 11i
Anyhow, was the application 64-bit before on 11.0, or is this a 32-bit to 64 bit migration? Did the compiler emit any particular warnings about 64 bitness, or implied return values or the like?
Probably worth enabling the migration warnings available with the compiler.
Have you tried HP Cadvise on the source? (IIRC http://www.hp.com/go/cadvise)
- Tags:
- cadvise
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 04:01 PM - edited 10-02-2011 12:01 AM
05-16-2007 04:01 PM - edited 10-02-2011 12:01 AM
Solution(It would be helpful if you mentioned you were migrating to 11.23 IPF or Integrity. The term "11i" doesn't have enough details.)
Your stack trace indicates you are trying to copy to a bad address. Either you are trying to write to a readonly string, or the address is just bad.
Do the following:
(gdb) p /x $r32
(gdb) x /8x $r32
(gdb) x /s $r33
You should also look at line 191 in clcomp.c to see what you are passing to strcpy.
>Rick: was the application 64-bit before on 11.0, or is this a 32-bit to 64 bit migration?
Right, a good question.
Compile with +w64bit and +wlint.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2007 04:43 AM
05-18-2007 04:43 AM
Re: Migrating our app from HPUX PA RISC to HPUX 11i
we found our make file is seeking some 32 bits lib files so once we provide relevant lib file of new box we got the core dump issue resolved.But one of our C file is accessing a paculiar lib file named libdbtraps.sl in the path /usr/local/lib. we are not sure whether the lib file belongs to unix or sysbase or application's.
I know /usr/local/lib is for OS lib files but HP tech support in India told us that it is not a Unix file.
Do any one aware of this lib file, please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2007 08:36 AM
05-18-2007 08:36 AM
Re: Migrating our app from HPUX PA RISC to HPUX 11i
That suggests it might be something someone at your company developed themselves...
Maybe you can get a hint by running a what and a strings against it - the output might tell you something usefull about the lib:
what /usr/local/lib/libdbtraps.sl
strings /usr/local/lib/libdbtraps.sl
I guess a chatr and ldd might show up something interesting as well...
ldd /usr/local/lib/libdbtraps.sl
chatr /usr/local/lib/libdbtraps.sl
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2007 09:01 AM - edited 10-02-2011 12:03 AM
05-18-2007 09:01 AM - edited 10-02-2011 12:03 AM
Re: Migrating our app from HP-UX PA-RISC to HP-UX 11.23 Integrity
>I know /usr/local/lib is for OS lib files but HP tech support in India told us that it is not a Unix file.
/usr/local/lib does NOT contain any HP-UX official libs. They are all in /usr/lib/.
>Duncan: Maybe you can get a hint
You can also use "nm -px" on the libs to see what functions are there.
- Tags:
- nm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2007 07:18 PM
05-20-2007 07:18 PM
Re: Migrating our app from HPUX PA RISC to HPUX 11i
we did what, strings, ldd and chatr, but we got
What - it just display
/usr/local/lib/libdbtraps.sl:
Strings - we got all the strings in the lib but we got this info with nm command itself.
ldd - this lib file is 32 bit and ldd throws error as 'invalid file type'.
chatr - returns some info, which we are not sure how to take it.
/usr/local/lib/libdbtraps.sl:
shared library
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
data page size: D (default)
instruction page size: D (default)
Out of this lib file in our code we are using some functions. we are trying to figure out the src for this lib file.
Is there any command which will find a word in given dir and its sub dir,so that we can give a find from / path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 04:04 AM - edited 10-02-2011 12:04 AM
05-21-2007 04:04 AM - edited 10-02-2011 12:04 AM
Re: Migrating our app from HP-UX PA-RISC to HP-UX 11.23 Integrity
>strings - we got all the strings in the lib but we got this info with nm command itself.
Did you use "strings -a"?
>we are trying to figure out the src for this lib file.
If you used HP's PA32 compilers, you could use:
$ odump -comp libdbtraps.sl
This will tell you the source filename and the compiler options.
>Is there any command which will find a word in given dir and its subdir, so that we can give a find from / path.
You mean using grep?
$ find path -exec grep -w -e string1 -e string2 ... +
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 09:00 PM
05-21-2007 09:00 PM
Re: Migrating our app from HPUX PA RISC to HPUX 11i
No we are using Ansi C compiler for this migration. can we have any command which can get us the src file like odump?
and one more query, we have #ifdef MSC and declaration of some struct and varibles in the if block. we see this if condition is always failing and get undeclaration error for those variables and Structs.
we found in google that it is Microsoft C compiler in some links. but we are not sure about it. Is there any other possible value that might be get assigned to this MSC. or how to check this in old box? expecting your valuable comments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 09:10 PM - edited 10-02-2011 12:05 AM
05-21-2007 09:10 PM - edited 10-02-2011 12:05 AM
Re: Migrating our app from HP-UX PA-RISC to HP-UX 11.23 Integrity
>No we are using ANSI C compiler for this migration. can we have any command which can get us the src file like odump?
As I said, if you used HP's compilers (and didn't strip it) then you can use odump on your PA box:
$ /usr/ccs/bin/odump -comp libdbtraps.sl
If you used gcc, you are out of luck, unless you have debug info.
>we have #ifdef MSC ... we found in google that it is Microsoft C compiler in some links. ... Is there any other possible value that might be get assigned to this MSC.
It seems that MSC is Microsoft C. Some of our RogueWave headers test _MSC_VER.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 09:54 PM
05-21-2007 09:54 PM
Re: Migrating our app from HPUX PA RISC to HPUX 11i
how to check this whether MSC is compiler specific.
is there a possiblity that this might be there define in older version of Ansi C and some other variable for Ansi C V5.5?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 11:33 PM
05-21-2007 11:33 PM
Re: Migrating our app from HPUX PA RISC to HPUX 11i
could you please visit this one:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1126273
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 11:44 AM - edited 10-02-2011 12:07 AM
05-22-2007 11:44 AM - edited 10-02-2011 12:07 AM
Re: Migrating our app from HP-UX PA-RISC to HP-UX 11.23 Integrity
>how to check this whether MSC is compiler specific.
Look at some MS documentation?
>is there a possibility that this might be defined in older version of ANSI C and some other variable for ANSI C A.05.50?
Of course not. It is illegal for an ANSI C compiler to define any macros that are in the user's namespace. I.e. don't start with __ or _ uppercase.