BUG: core dump on 64-bit platform
PERL 5 regular expression pattern matching
Brought to you by:
mish_the_fish
When I do 'make test', I get a core dump inside
pcre_fullinfo simply because of the following
case PCRE_INFO_OPTIONS:
*((unsigned long int *)where) = re->options &
PUBLIC_OPTIONS;
break;
where is actually a pointer to a 32 bit integer and
unsigned long int is 64 bit. When I change the cast to
(int *), 'make test' ends up with many errors without
core dump.
I download 6.3 today. This problem is found on solaris
8 using gcc 3.4 and SunCC.
Logged In: NO
It is documented that "where" must point to an unsigned long int variable. (Comment from PH)