[wp-trac] [WordPress Trac] #23001: invoking post_gallery filter causes segfault
WordPress Trac
noreply at wordpress.org
Wed Dec 19 06:15:43 UTC 2012
#23001: invoking post_gallery filter causes segfault
-----------------------------+--------------------------
Reporter: gcrumb | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Media
Version: 3.5 | Severity: major
Keywords: |
-----------------------------+--------------------------
Attempting to change some default values in the gallery_shortcode
function. I copied and pasted it into functions.php, changed the values of
the 'columns' and 'size' attributes, and then added the filter hook:
add_filter('post_gallery', 'pipp_gallery_shortcode', 10,1 );
Reloading a post with a gallery included causes a segmentation fault:
user at host:/srv/www-apps/folder/wp-content/themes/pipp$ sudo tail
/var/log/apache2/error.log
[Wed Dec 19 16:40:06 2012] [notice] child pid 25830 exit signal
Segmentation fault (11)
Commenting the add_filter line causes the post to display properly.
$uname -r
3.2.0-3-686-pae
$ apache2 -v
Server version: Apache/2.2.22 (Debian)
Server built: Aug 3 2012 22:41:19
$ cat /etc/debian_version
wheezy/sid
Wordpress v 3.5 (newly upgraded)
functions.php attached for reference.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23001>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list