#64 __arch64__ casts seg fault on alpha

High_Severity
closed-fixed
Tom Woodburn
Other (8)
5
2002-03-23
2002-03-22
Tom Woodburn
No

The following __arch64__ casts cause seg faults on the
Alpha architecture:

#ifdef __arch64__
(ISL_FUNCTION_PTR)(*(void **)pfnModuleAttach)
#else
(ISL_FUNCTION_PTR)pfnModuleAttach
#endif

The casts are intended for the IA64 architecture, but
they kick in on Alpha as well because the Alpha
compilers define __arch64__.

Here's the fix:

#if defined (__arch64__) && !defined (__alpha)
(ISL_FUNCTION_PTR)(*(void **)pfnModuleAttach)
#else
(ISL_FUNCTION_PTR)pfnModuleAttach
#endif

This affects the following files in cdsa_dev:

./cdsa/src/addins/intel/dummyemm/dummy.c
./cdsa/src/addins/intel/dummytestemm/dummytest.c
./cdsa/src/addins/intel/hrsemm/mef_manage.c
./cdsa/src/addins/intel/maf/maf_integ.c
./cdsa/src/fwk/aal/aalintrn.c
./cdsa/src/fwk/cssm/cssmintgr.c
./cdsa/src/fwk/cssm/emmintrn.c
./cdsa/src/fwk/cssm/keymgmt.c

Discussion

  • Tom Woodburn
    Tom Woodburn
    2002-03-23

    • status: open --> closed-fixed