Running openssl 0.9.7g (this is the newest production version) with no arguments segfaults in lh_strhash when compiled with gcc 4.0.0 on Solaris 9, but runs fine when compiled with gcc-3.2.2.
Are you sure that this is a GCC bug, please add the preprocessed source.
Created attachment 9046 [details] C preprocessor output This is the C preprocessor output of lhash.c, the file with the offending function.
Please try with 4.0.1, 4.0.0 had known serious defects.
No feedback in 3 months (T-4 days).