|
From: <Bil...@lt...> - 2005-07-07 19:58:20
|
HI,
I'm running valgrind on RedHat Enterprise 3.0 on some threaded apps. I'm
getting a lot of the following type of errors:
==6316== Invalid write of size 4
==6316== at 0x1F674ACE: evK_load_timing_cal(int, char const*)
(FX1_ev_load_std_cal.cxx:380)
==6316== by 0x1F67623A: evK_diskload_std_cal(evK_std_cal_indexes, int,
char const*) (FX1_ev_load_std_cal.cxx
:666)
==6316== by 0x1C6BE98B: ev_ReadyCalLoad() (tester_ready.cxx:276)
==6316== by 0x1C6BE8DD: tester_ready() (tester_ready.cxx:255)
==6316== by 0x1C56A921: UpdateConfig() (Ghost.cxx:1554)
==6316== by 0x1C71C0B2: TPA_ChangeFlag::Check(TPA_ChangeFlag**,
TPA_ChangeFlag::TPA_ChangeType, void (*)(),
void (*)()) (TPA_ChangeFlag.cxx:110)
==6316== by 0x1C56B7BD: test_tpa_status() (Ghost.cxx:1815)
==6316== by 0x1C57AF2B: EV_ServerMain(int) (Ghost.cxx:6329)
==6316== by 0x1F9A4944: exec_thread_real (exec_thread.cxx:223)
==6316== by 0x1F9A49C6: exec_thread (exec_thread.cxx:246)
==6316== by 0x1F9B5DAB: start_thread (in /lib/tls/libpthread-0.60.so)
==6316== by 0x1FAD99E9: clone (in /lib/tls/libc-2.3.2.so)
==6316== Address 0x2C12981C is on thread 4's stack
<<<<<<<<<<<<<<<<<<<<<<<<< ???????
The code it's complaining about is (snipit)
static int evK_load_timing_cal (int32 head, const char *fname)
{
TR_DEBUG0(STD_CAL, BIT_0, FALSE, "Enter -- evK_load_timing_cal");
int retval = 0; <<<<<<<<<<<<<<<<<<<<<<<<<<< line 380
void *cal_index = NULL;
int num_elements, size;
int load_elements, farm_elements, tsint_elements;
evK_caltable_ptrs ct_pointers;
void *cal_array;
EVc_TCal_SystemInfo SysInfo; //Instantiate system information file
class (for serial numbers)
EVc_TCal_FocusInfo FocInfo; //Instantiate focus information file
class
...
This code runs in the context of a thread, probably thread 4.
_______________________
Any wizards out there have any ideas ???
Thanks in advance -Bill |