Bug #71492 [Opn]: Segmentation faults all the time

From: Date: Thu, 11 Feb 2016 07:42:45 +0000
Subject: Bug #71492 [Opn]: Segmentation faults all the time
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199158@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71492&edit=1

 ID:                 71492
 User updated by:    Birman at Cerberox dot com
 Reported by:        Birman at Cerberox dot com
 Summary:            Segmentation faults all the time
 Status:             Open
 Type:               Bug
 Package:            *Web Server problem
 Operating System:   CentOS 7.1.1503
 PHP Version:        7.0.2
 Block user comment: N
 Private report:     N

 New Comment:

Hi!

I'm missing pcre.jit setting in my php.ini file. I don't have any other php versions on
the server, because I scraped it all clean before installing php7 and the ini file got placed there
by php7 installation.


Previous Comments:
------------------------------------------------------------------------
[2016-02-09 18:15:48] cmb@php.net

Have you contacted the developers of this forum software? Maybe
they already have a clue what might go wrong. If you should a file
a bug report with them, please add a link here for reference.

Also I suggest you check the pcre.jit ini setting, and disable it
if that's not already the case. Then check if the segfault still
happens.

------------------------------------------------------------------------
[2016-02-03 21:18:44] Birman at Cerberox dot com

Hi!

I'm running a big forum software, I have no idea what scripts there are that could be causing
this. 

How can I help?

------------------------------------------------------------------------
[2016-02-03 18:57:52] cmb@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------
[2016-02-01 16:22:09] Birman at Cerberox dot com

Description:
------------
Installed php70w package on CentOS. Everything installed fine and Apache 2.4.6 picked it up with no
problems and all the web services seem to work. However, when I take a look at the logs, after
around 5 minutes it gets spammed with Segmentation faults:

[Mon Feb 01 17:09:47.812393 2016] [core:notice] [pid 12430] AH00052: child pid 12457 exit signal
Segmentation fault (11)
[Mon Feb 01 17:13:37.999297 2016] [core:notice] [pid 12430] AH00052: child pid 12605 exit signal
Segmentation fault (11)
[Mon Feb 01 17:14:08.027445 2016] [core:notice] [pid 12430] AH00052: child pid 12601 exit signal
Segmentation fault (11)

Funny thing is that when using the website, everything seems to be fine, so whatever it is, it
doesn't affect the usage (or it's able to recover from it quickly).

Also ran the gdb for you, this is what I got:
Try 1:
Program received signal SIGSEGV, Segmentation fault.
sljit_malloc_exec (size=1968) at
/usr/src/debug/php-7.0.2/ext/pcre/pcrelib/sljit/sljitExecAllocator.c:196
196                                     header->prev_size = chunk_size;
(gdb) step

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.

Try 2:
Program received signal SIGSEGV, Segmentation fault.
0x00007fffea3c1e48 in sljit_malloc_exec (size=2032) at
/usr/src/debug/php-7.0.2/ext/pcre/pcrelib/sljit/sljitExecAllocator.c:189
189                     if (free_block->size >= size) {
(gdb) step

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)





------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=71492&edit=1


Thread (9 messages)

« previous php.bugs (#199158) next »