Bug #69411 [Asn->Fbk]: Segmentation fault in _pcre_jit_compile
| From: | cmb@php.net | Date: | Sat, 20 Aug 2016 13:25:33 +0000 |
| Subject: | Bug #69411 [Asn->Fbk]: Segmentation fault in _pcre_jit_compile | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-203416@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69411&edit=1
ID: 69411
Updated by: cmb@php.net
Reported by: berdir@php.net
Summary: Segmentation fault in _pcre_jit_compile
-Status: Assigned
+Status: Feedback
Type: Bug
Package: PCRE related
Operating System: Linux
PHP Version: master-Git-2015-04-09 (Git)
Assigned To: laruence
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2016-08-20 13:24:54] cmb@php.net
> The _pcre_jit_compile segfaults might still exist, but they are
> not stable, so they don't happen all the time. I will get back
> to this...
Any news, Sascha? In doubt, try with newer PCRE.
------------------------------------------------------------------------
[2015-04-20 08:03:49] berdir@php.net
Sorry, didn't see the comments here before.
https://bugs.php.net/bug.php?id=69484 might have
fixed the curl related segfault that I've seen here.
You're running the migrate tests with sqlite, they are currently not working, try the same with
mysql. However, as I said in the other issue, that one might have fixed this problem and we actually
committed a workaround for this test.
The _pcre_jit_compile segfaults might still exist, but they are not stable, so they don't
happen all the time. I will get back to this...
------------------------------------------------------------------------
[2015-04-12 07:21:01] hzmester at freemail dot hu
Just a note: strange malloc errors could be caused by buffer overflows. Malloc stores descriptors of
allocated/unused memory in the memory, and when a buffer overflow happens, that data might be
damaged. Especially on buffer underflows, since this data is usually before the allocated block.
However, the crash happens only when the malloc/free is called again.
I recommend to use valgrind. If you use any kind of jit, don't forget --smc-check=all.
------------------------------------------------------------------------
[2015-04-11 09:54:08] laruence@php.net
hmm, I was really upset that I can not make the test run as you described...
I am using the drupal 8.0.x branch. the last commit is:
commit b75b691a47eea31515d336065e8a3ec53423e0bd
Author: Alex Pott <alex.a.pott@googlemail.com>
Date: Thu Apr 9 18:53:33 2015 +0100
Issue #2463417 by rpayanm, cilefen, hussainweb: Clean-up remaining test members in module tests
- ensure property de
finition and use of camelCase naming convention
And here is what I got while running it with --verbose:
$ /home/huixinchen/local/php-trunk/bin/php core/scripts/run-tests.sh --url http://d8/ --color --verbose --sqlite /tmp/test.sqlite --dburl
sqlite://tmp/db.sqlite --class "Drupal\migrate_drupal\Tests\d6\MigrateDrupal6Test"
Drupal test run
---------------
Tests to be run:
- Drupal\migrate_drupal\Tests\d6\MigrateDrupal6Test
Test run started:
Saturday, April 11, 2015 - 09:52
Test summary
------------
Drupal\migrate_drupal\Tests\d6\MigrateDrupal6Test 1 passes 1 exceptions
Test run duration: 42 sec
Detailed test results
---------------------
---- Drupal\migrate_drupal\Tests\d6\MigrateDrupal6Test ----
Status Group Filename Line Function
--------------------------------------------------------------------------------
Pass Other MigrateTestBase.p 52 Drupal\migrate\Tests\MigrateTestBas
Enabled modules: action, aggregator, block, book, comment, contact,
block_content, datetime, dblog, entity_reference, file, forum, image, link,
locale, menu_ui, node, options, search, simpletest, statistics, syslog,
taxonomy, telephone, text, update, views, migrate_drupal, migrate
Exception Uncaught e Connection.php 609 Drupal\Core\Database\Connection->ha
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[HY000]: General
error: 1 table "content_field_multivalue" has more than one
primary key: CREATE TABLE {content_field_multivalue} (
vid INTEGER PRIMARY KEY AUTOINCREMENT CHECK (vid>= 0),
nid INTEGER NOT NULL CHECK (nid>= 0) DEFAULT '0',
field_multivalue_value NUMERIC NULL DEFAULT NULL,
delta INTEGER NOT NULL CHECK (delta>= 0) DEFAULT '0',
PRIMARY KEY (delta)
);
; Array
(
)
in Drupal\migrate_drupal\Tests\Dump\DrupalDumpBase->createTable() (line
53 of
/home/huixinchen/drupal/core/modules/migrate_drupal/src/Tests/Dump/DrupalDumpBase.php).
Drupal\Core\Database\Connection->handleQueryException(Object, 'CREATE TABLE
{content_field_multivalue} (
vid INTEGER PRIMARY KEY AUTOINCREMENT CHECK (vid>= 0),
nid INTEGER NOT NULL CHECK (nid>= 0) DEFAULT '0',
field_multivalue_value NUMERIC NULL DEFAULT NULL,
delta INTEGER NOT NULL CHECK (delta>= 0) DEFAULT '0',
PRIMARY KEY (delta)
);
', Array, Array)
Drupal\Core\Database\Driver\sqlite\Connection->handleQueryException(Object,
'CREATE TABLE {content_field_multivalue} (
vid INTEGER PRIMARY KEY AUTOINCREMENT CHECK (vid>= 0),
nid INTEGER NOT NULL CHECK (nid>= 0) DEFAULT '0',
field_multivalue_value NUMERIC NULL DEFAULT NULL,
delta INTEGER NOT NULL CHECK (delta>= 0) DEFAULT '0',
PRIMARY KEY (delta)
);
', Array, Array)
Drupal\Core\Database\Connection->query('CREATE TABLE
{content_field_multivalue} (
vid INTEGER PRIMARY KEY AUTOINCREMENT CHECK (vid>= 0),
nid INTEGER NOT NULL CHECK (nid>= 0) DEFAULT '0',
field_multivalue_value NUMERIC NULL DEFAULT NULL,
delta INTEGER NOT NULL CHECK (delta>= 0) DEFAULT '0',
PRIMARY KEY (delta)
);
')
Drupal\Core\Database\Schema->createTable('content_field_multivalue', Array)
Drupal\migrate_drupal\Tests\Dump\DrupalDumpBase->createTable('content_field_multivalue',
Array)
Drupal\migrate_drupal\Tests\Table\d6\ContentFieldMultivalue->load()
Drupal\migrate\Tests\MigrateTestBase->loadDumps(Array)
Drupal\migrate_drupal\Tests\MigrateFullDrupalTestBase->testDrupal()
Drupal\simpletest\TestBase->run(Array)
simpletest_script_run_one_test('1',
'Drupal\migrate_drupal\Tests\d6\MigrateDrupal6Test')
did I do something wrong?
------------------------------------------------------------------------
[2015-04-11 07:19:59] berdir@php.net
Note that there is an issue with pcre too, just not in this test. InstallerTranslationTest, as
commented above does seem to segfault there.
Not sure what I should do now, possibly open two separate issues?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=69411
--
Edit this bug report at https://bugs.php.net/bug.php?id=69411&edit=1