Unaligned access from free()

From: Bivins, Jeff <BIVINS_at_nebeng.otis.com>
Date: Thu, 12 Jun 1997 13:10:00 -0400

Does anyone know what this message refers to and how to correct the
problem.

Unaligned access pid=31174 <frnpgm> va=1401f7e3f pc=1200f7eb8
ra=120023510 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f7efd pc=1200f7eb8
ra=120023510 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f7fbe pc=1200f7eb8
ra=120023510 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f807f pc=1200f7eb8
ra=120023510 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f813c pc=1200f7eb8
ra=120023510 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f8319 pc=1200f7eb8
ra=12001d030 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f85bb pc=1200f7eb8
ra=12001bf28 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f8679 pc=1200f7eb8
ra=12001bf28 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f87fb pc=1200f7eb8
ra=12001bf28 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f891b pc=1200f7eb8
ra=12001bf28 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f8a99 pc=1200f7eb8
ra=12001bee8 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f8cd9 pc=1200f7eb8
ra=12001bf28 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f8d99 pc=1200f7eb8
ra=12001d030 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f91bb pc=1200f7eb8
ra=12001bf28 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f92db pc=1200f7eb8
ra=12001bf28 type=ldq
Unaligned access pid=31174 <frnpgm> va=1401f9459 pc=1200f7eb8
ra=12001bee8 type=ldq
...

I have a c program that runs and outputs the correct solution but I get
the above error messages from the following lines of code

        for ( i=0;i<1000;i++) {
        char=(char *)calloc(sizeof(char[MAX_LENGTH]),1)
                ...
        strcpy(char,"HELP")
                ...
        free(char)
        }

This does not happen every time in the loop.

Thanks,

Jeff
Received on Thu Jun 12 1997 - 19:26:51 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT