Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

C Programming Language

Segmentation Fault


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

nan <rajanandh@gmail.com> writes:
> 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.

Try comp.sys.hp.hpux -- and give the folks over there some clue about
what you're trying to do.

--
Keith Thompson (The_Other_Keith) k@mib.org  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center             <*>  <http://users.sdsc.edu/~kst>
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

"nan" <rajanandh@gmail.com> wrote in message

news:1180332316.782795.16690@x35g2000prf.googlegroups.com...
> 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.

It is the evils of undefined behaviour.
The original code must have accessed memory in some illegal way.
Unfortunately, and this really is the worst scenario for UB, it appeared in
testing as if the program was working correctly. When you move it to another
platform, the error becomes obvious.

The problem is probably deep in the logic somewhere. Compile and run with a
debug boundschecker, and then try to work out why it is, probably, either
exceeding an array or writing to a garbage pointer.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

If you do not know what a segmentation  fault is,
you should get someone qualified to do this job.

If you are pretty new to C, you should not attempt
to do what you are doing. It is a bad idea to start
by porting complex applications from one system to
another.

Again, the only real solution is to get someone
qualified for this work.

jacob

In article <1180332316.782795.16@x35g2000prf.googlegroups.com>,

nan  <rajanandh@gmail.com> wrote:
>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

Start by running the program under a debugger, so that you can see
where the error is occurring.  The error message you have only
indicates where in some system library code the error is detected.
You need to find out where in *your* code it is failing.

-- Richard

--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc