Segmentation Fault #3

  • Follow


Hi,

We are in the process of migrating our old HP-UX 11.00, PA-RISC
architecture to a new HP-UX 11.23i, Itanium architecture. We have
compiled the codes and now we are testing the executables. While
running the executable, we get the following error.


SEGV_ACCERR - Invalid Permissions for object
#0  0x60000000c0340160:1 in _wrtchk+0x341 () from /usr/lib/hpux32/
libc.so.1


I am not sure why we are getting this error. Am pretty new to C and
it
would great if someone can help me in this.


Thanks,
nan

0
Reply rajanandhini (2) 5/28/2007 8:42:52 AM

nan <rajanandhini@gmail.com> writes:

> running the executable, we get the following error.
>
> SEGV_ACCERR - Invalid Permissions for object
> #0  0x60000000c0340160:1 in _wrtchk+0x341 () from /usr/lib/hpux32/libc.so.1
>
> I am not sure why we are getting this error. 

You are getting this error because there is (at least one) bug in
your program.

Your first step is to issue gdb 'where' command, and examine
the stack. If you don't know what that stack means, post it here
and someone will explain.

> Am pretty new to C and

Also note, that porting to new machine architecture, or even to new
OS, often requires quite a bit of skill. You may wish to hire a
consultant to help you along -- usenet will generally provide
answers with round-trip time in hours or days, and if your software
has not been ported to several 64-bit architectures before, you'll
likely see *many* more bugs.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
0
Reply Paul 5/28/2007 1:57:29 PM


> if your software has not been ported to several 64-bit architectures
> before, you'll likely see *many* more bugs.

Thankfully, the default compilation mode in HP-UX, even on Itanium, is
32-bit. At least with the HP compilers.

rick jones
-- 
web2.0 n, the dot.com reunion tour...
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
0
Reply Rick 5/29/2007 5:16:07 PM

2 Replies
354 Views

(page loaded in 0.021 seconds)

Similiar Articles:













7/23/2012 5:08:04 PM


Reply: