Enabling the RDF module over a fresh Drupal 6.20 base is causing the site to crash showing a WSOD.

(Please find the phpinfo() output in the attached PDF).

Apache's error.log is showing segmentation fault reports:
[Thu Dec 16 23:57:44 2010] [notice] child pid 1801 exit signal Segmentation fault (11)

Doing a basic binary breakup of the code, traced the problem to occur at the "return ..." statement (line no. 60)

File: rdf.api.inc
Lines: 44 to 61
Listing:

function rdf_define_vocabulary($class_name, $base_uri, array $properties) {
  ...
  ...
  return eval(implode("\n", $code));    ---> commenting this line brings the site back online.
}

Could somebody please verify this?

Comments

zyxware’s picture

Priority: Major » Critical
zyxware’s picture

Issue tags: +patch, +fix, +segmentation fault
StatusFileSize
new142 bytes

The issue seems to be fixed
when

the code on line no. 60, in rdf.api.inc

  return eval(implode("\n", $code));

was changed to

  $imploded_code_string = implode("\n", $code);
  return eval($imploded_code_string);

I have attached the patch file for this fix:
1000394-rdf.api_.inc-eval-segmentation-fault-fix.patch

alexander allen’s picture

Subscribing. Hasn't this patch been applied yet?

White-Buffalo’s picture

Issue tags: +Line 61, +Line 60, +rdf.api.inc

Changed:

return eval(implode("\n", $code));

to:

 $imploded_code_string = implode("\n", $code);
  return eval($imploded_code_string);

...As-per instructions in:

http://drupal.org/files/issues/1000394-rdf.api_.inc-eval-segmentation-fault-fix.patch

Now I get the following error:

Warning: Please contact support about failure in /example.com/sites/all/modules/rdf/rdf.api.inc on line 61.

Any suggestions?

avpaderno’s picture

Version: 6.x-1.0-alpha8 » 6.x-1.x-dev
Issue summary: View changes
Status: Needs review » Closed (outdated)
Issue tags: -WSOD, -RDF, -patch, -fix, -eval, -segmentation fault, -Line 61, -Line 60, -rdf.api.inc

I am closing this issue, which is for a not-supported Drupal version.