Date: Wed, 3 May 2006 16:47:22 -0300 (BRT) From: Marcus Alves Grando <mnag@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/96730: Update port: databases/pecl-memcache fix SIGSEGV Message-ID: <20060503194722.936C41A@marcus.grupos.com.br> Resent-Message-ID: <200605031950.k43JoMU5089534@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 96730 >Category: ports >Synopsis: Update port: databases/pecl-memcache fix SIGSEGV >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed May 03 19:50:21 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Marcus Alves Grando >Release: FreeBSD 6.1-RC i386 >Organization: Grupos Internet S/A >Environment: System: FreeBSD marcus.grupos.com.br 6.1-RC FreeBSD 6.1-RC #14: Mon May 1 13:40:37 BRT 2006 root@marcus.grupos.com.br:/space/obj/usr/src/sys/MARCUS i386 >Description: - Fix segmentation fault when server are restarted (http://pecl.php.net/bugs/bug.php?id=7331). - Use USE_DOS2UNIX. - Bump PORTREVISION. >How-To-Repeat: >Fix: --- pecl-memcache.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/databases/pecl-memcache/Makefile,v retrieving revision 1.7 diff -u -r1.7 Makefile --- Makefile 15 Mar 2006 15:27:19 -0000 1.7 +++ Makefile 3 May 2006 19:43:44 -0000 @@ -7,6 +7,7 @@ PORTNAME= memcache PORTVERSION= 2.0.1 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= http://pecl.php.net/get/ PKGNAMEPREFIX= pecl- @@ -20,11 +21,9 @@ USE_PHPEXT= yes PHP_MODNAME= memcache -CONFIGURE_ARGS= --with-zlib-dir=/usr +USE_DOS2UNIX= yes -post-extract: - @${FIND} -E ${WRKDIR} -type f -iregex ".*\.(c|cpp|h|txt|php)" -print0 | \ - ${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' +CONFIGURE_ARGS= --with-zlib-dir=/usr .if !defined(NOPORTDOCS) post-install: Index: files/patch-memcache.c =================================================================== RCS file: /home/pcvs/ports/databases/pecl-memcache/files/patch-memcache.c,v retrieving revision 1.1 diff -u -r1.1 patch-memcache.c --- files/patch-memcache.c 21 Jan 2006 17:27:36 -0000 1.1 +++ files/patch-memcache.c 3 May 2006 19:43:44 -0000 @@ -1,5 +1,5 @@ ---- ./memcache.c.orig Wed Jan 4 23:33:18 2006 -+++ ./memcache.c Wed Jan 4 23:33:25 2006 +--- memcache.c.orig Wed May 3 16:41:31 2006 ++++ memcache.c Wed May 3 16:42:05 2006 @@ -120,7 +120,7 @@ /* {{{ macros */ @@ -9,3 +9,14 @@ #if ZEND_DEBUG +@@ -580,7 +580,9 @@ + if ((version = mmc_get_version(mmc TSRMLS_CC)) == NULL && !_mmc_open(mmc, error_string, errnum TSRMLS_CC)) { + break; + } +- efree(version); ++ if (version) { ++ efree(version); ++ } + mmc->status = MMC_STATUS_CONNECTED; + } + return 1; --- pecl-memcache.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060503194722.936C41A>