1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Fix a segfault in mod_perl startup due to a bug

in gcc related optimizations.
- Fixed upstream in branches/1.x@r781917
- Bump PORTREVISION

PR:             ports/13479
Reported by:    Troy <troy@twisted.net>
Submitted by:   Tim Zingelman <zingelman@fnal.gov>
This commit is contained in:
Philip M. Gollucci 2009-06-05 06:23:06 +00:00
parent 99896ac9f6
commit 9a30e826b3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235192
2 changed files with 20 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= mod_perl
PORTVERSION= 1.31
PORTREVISION= 1
CATEGORIES= www perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= ModPerl/GOZER

View File

@ -0,0 +1,19 @@
--- ./src/modules/perl/mod_perl.c.orig 2008-11-20 13:12:31.000000000 -0500
+++ ./src/modules/perl/mod_perl.c 2009-06-05 02:07:17.882792245 -0400
@@ -596,6 +596,7 @@
void perl_startup (server_rec *s, pool *p)
{
char *argv[] = { NULL, NULL, NULL, NULL, NULL, NULL, NULL };
+ char **temp_argv=argv;
char **entries, *dstr;
int status, i, argc=1;
dPSRV(s);
@@ -679,7 +680,7 @@
MP_TRACE_g(fprintf(stderr, "..."));
#ifdef PERL_SYS_INIT
- PERL_SYS_INIT(&argc,(char***)&argv);
+ PERL_SYS_INIT(&argc,(char***)&temp_argv);
#endif
#ifndef perl_init_i18nl10n