[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: g++ 3.4.1 core dump with -O2
From: |
Ralf Fassel |
Subject: |
Re: g++ 3.4.1 core dump with -O2 |
Date: |
Wed, 14 Jul 2004 15:14:22 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) |
* Guy Harrison <swamp-DEL-dog@ntlworld.com>
| Hopefully you have, or some other cockpit corruption.
Seems like the latter. By using the SGI-provided speedshop malloc
library (which contains a fencepost-check version of malloc) my
attention was drawn to an earlier stage in the particular
application's code:
for(long m = 0; m<weightlen; m++){
*ptmp1 = *ptmp1++ * *ptmp2;
*ptmp1 = *ptmp1++ * *ptmp2++;
}
Note especially the
*ptmp1 = *ptmp1++
part.
Case resolved, thanks.
R'