Ticket #3607 (new defect)

Opened 3 months ago

Last modified 3 months ago

Script fails to compile with segault

Reported by: gerhard@killesreiter.de Assigned to: anonymous
Priority: immediate Milestone:
Component: Apache 1 Version:
Severity: crash Keywords:
Cc:

Description

INTERNAL-ERROR: Illegal signal caught --- aborting...11

This is the error I get.

Below is the script which is the index.php of Drupal 5 with an empty function added. If you rm the function definition it will compile.

<?php // $Id: index.php,v 1.91 2006/12/12 09:32:18 unconed Exp $

/**

  • @file
  • The PHP page that serves all page requests on a Drupal installation. *
  • The routines here dispatch control to the appropriate handler, which then
  • prints the appropriate page. */

function foo(){ }

require_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

$return = menu_execute_active_handler();

// Menu status constants are integers; page content is a string. if (is_int($return)) {

switch ($return) {

case MENU_NOT_FOUND:

drupal_not_found(); break;

case MENU_ACCESS_DENIED:

drupal_access_denied(); break;

case MENU_SITE_OFFLINE:

drupal_site_offline(); break;

}

} elseif (isset($return)) {

// Print any value (including an empty string) except NULL or undefined: print theme('page', $return);

}

drupal_page_footer();

Change History

09/04/08 09:44:15 changed by killes

In fact, this script is suficient to make it segfault:

<?php

function foo() { }

09/04/08 09:46:03 changed by killes

This only happens with --fastcgi.

09/04/08 10:14:56 changed by killes