public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* PHP 7.0.14 crashing with minimal set of extensions
@ 2016-12-13 18:20 Andrey Repin
  2016-12-13 19:07 ` Brian Inglis
  2016-12-14  7:35 ` Yaakov Selkowitz
  0 siblings, 2 replies; 11+ messages in thread
From: Andrey Repin @ 2016-12-13 18:20 UTC (permalink / raw)
  To: All

Greetings, All!

Here's strace and stackdump from latest crash with Cygwin 2.6.1-2
project.rootdir.org/.offload/crash-php-7.14.tar.xz

I've tried full Cygwin rebase to no avail.
Particularly, I've attempted to run Composer test suite.


-- 
With best regards,
Andrey Repin
Tuesday, December 13, 2016 21:02:57

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PHP 7.0.14 crashing with minimal set of extensions
  2016-12-13 18:20 PHP 7.0.14 crashing with minimal set of extensions Andrey Repin
@ 2016-12-13 19:07 ` Brian Inglis
  2016-12-13 21:50   ` Andrey Repin
  2016-12-14  7:35 ` Yaakov Selkowitz
  1 sibling, 1 reply; 11+ messages in thread
From: Brian Inglis @ 2016-12-13 19:07 UTC (permalink / raw)
  To: cygwin

On 2016-12-13 11:06, Andrey Repin wrote:
> Here's strace and stackdump from latest crash with Cygwin 2.6.1-2
> project.rootdir.org/.offload/crash-php-7.14.tar.xz
> I've tried full Cygwin rebase to no avail.
> Particularly, I've attempted to run Composer test suite.

strace? stackdump? attachments? cygcheck -svr? 
Remember - mailer *MUST* attach as text to get thru!

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PHP 7.0.14 crashing with minimal set of extensions
  2016-12-13 19:07 ` Brian Inglis
@ 2016-12-13 21:50   ` Andrey Repin
  2016-12-13 22:23     ` Brian Inglis
  0 siblings, 1 reply; 11+ messages in thread
From: Andrey Repin @ 2016-12-13 21:50 UTC (permalink / raw)
  To: Brian Inglis, cygwin

Greetings, Brian Inglis!

> On 2016-12-13 11:06, Andrey Repin wrote:
>> Here's strace and stackdump from latest crash with Cygwin 2.6.1-2
>> project.rootdir.org/.offload/crash-php-7.14.tar.xz
>> I've tried full Cygwin rebase to no avail.
>> Particularly, I've attempted to run Composer test suite.

> strace? stackdump? attachments? cygcheck -svr? 
> Remember - mailer *MUST* attach as text to get thru!

40MB strace? As attach? I'm not sure you're serious.


-- 
With best regards,
Andrey Repin
Wednesday, December 14, 2016 00:37:29

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PHP 7.0.14 crashing with minimal set of extensions
  2016-12-13 21:50   ` Andrey Repin
@ 2016-12-13 22:23     ` Brian Inglis
  0 siblings, 0 replies; 11+ messages in thread
From: Brian Inglis @ 2016-12-13 22:23 UTC (permalink / raw)
  To: cygwin

On 2016-12-13 14:37, Andrey Repin wrote:
> Greetings, Brian Inglis!
>> On 2016-12-13 11:06, Andrey Repin wrote:
>>> Here's strace and stackdump from latest crash with Cygwin
>>> 2.6.1-2
>>> project.rootdir.org/.offload/crash-php-7.14.tar.xz
>>> I've tried full Cygwin rebase to no avail.
>>> Particularly, I've attempted to run Composer test suite.
>> strace? stackdump? attachments? cygcheck -svr? 
>> Remember - mailer *MUST* attach as text to get thru!
> 40MB strace? As attach? I'm not sure you're serious.

Ah, you meant: 
  *http://*project.rootdir.org/.offload/crash-php-7.14.tar.xz

*40MB* strace for someone to look at? 
I'm not sure *you're* serious.

Complete info is good but reasonable summary is more workable.

Could perhaps junk the boilerplate strace env and dll setup 
chunks and file lookups; or just post stackdump and the last 
part of the strace with the symptoms leading up to the crash; 
maybe the last part of the PHP log, with an STC to provoke 
failure, to get someone's interest piqued to look further?

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PHP 7.0.14 crashing with minimal set of extensions
  2016-12-13 18:20 PHP 7.0.14 crashing with minimal set of extensions Andrey Repin
  2016-12-13 19:07 ` Brian Inglis
@ 2016-12-14  7:35 ` Yaakov Selkowitz
  2016-12-14 14:25   ` cyg Simple
  2016-12-14 17:20   ` Andrey Repin
  1 sibling, 2 replies; 11+ messages in thread
From: Yaakov Selkowitz @ 2016-12-14  7:35 UTC (permalink / raw)
  To: cygwin

On 2016-12-13 12:06, Andrey Repin wrote:
> Here's strace and stackdump from latest crash with Cygwin 2.6.1-2
> project.rootdir.org/.offload/crash-php-7.14.tar.xz

Are you 100% sure that your code is compatible with PHP 7?  The only 
segfaults I have seen so far is with old code.

-- 
Yaakov

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PHP 7.0.14 crashing with minimal set of extensions
  2016-12-14  7:35 ` Yaakov Selkowitz
@ 2016-12-14 14:25   ` cyg Simple
  2016-12-14 17:20   ` Andrey Repin
  1 sibling, 0 replies; 11+ messages in thread
From: cyg Simple @ 2016-12-14 14:25 UTC (permalink / raw)
  To: cygwin

On 12/14/2016 2:34 AM, Yaakov Selkowitz wrote:
> On 2016-12-13 12:06, Andrey Repin wrote:
>> Here's strace and stackdump from latest crash with Cygwin 2.6.1-2
>> project.rootdir.org/.offload/crash-php-7.14.tar.xz
> 
> Are you 100% sure that your code is compatible with PHP 7?  The only
> segfaults I have seen so far is with old code.
> 

That was my first thought on the issue and I haven't even tried php
7.x.x yet.  If the code works with php 5.x.x then you may need to modify
the use of the API.

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PHP 7.0.14 crashing with minimal set of extensions
  2016-12-14  7:35 ` Yaakov Selkowitz
  2016-12-14 14:25   ` cyg Simple
@ 2016-12-14 17:20   ` Andrey Repin
  2016-12-17  7:30     ` Brian Inglis
  1 sibling, 1 reply; 11+ messages in thread
From: Andrey Repin @ 2016-12-14 17:20 UTC (permalink / raw)
  To: Yaakov Selkowitz, cygwin

Greetings, Yaakov Selkowitz!

> On 2016-12-13 12:06, Andrey Repin wrote:
>> Here's strace and stackdump from latest crash with Cygwin 2.6.1-2
>> project.rootdir.org/.offload/crash-php-7.14.tar.xz

> Are you 100% sure that your code is compatible with PHP 7?  The only 
> segfaults I have seen so far is with old code.

It's Composer. It runs with native PHP7 of the same version just fine.


-- 
With best regards,
Andrey Repin
Wednesday, December 14, 2016 13:05:58

Sorry for my terrible english...



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PHP 7.0.14 crashing with minimal set of extensions
  2016-12-14 17:20   ` Andrey Repin
@ 2016-12-17  7:30     ` Brian Inglis
  2016-12-18 18:51       ` Andrey Repin
  0 siblings, 1 reply; 11+ messages in thread
From: Brian Inglis @ 2016-12-17  7:30 UTC (permalink / raw)
  To: cygwin

On 2016-12-14 04:04, Andrey Repin wrote:
> Greetings, Yaakov Selkowitz!
>> On 2016-12-13 12:06, Andrey Repin wrote:
>>> Here's strace and stackdump from latest crash with Cygwin
>>> 2.6.1-2 project.rootdir.org/.offload/crash-php-7.14.tar.xz
>> Are you 100% sure that your code is compatible with PHP 7?
>> The only segfaults I have seen so far is with old code.
> It's Composer. It runs with native PHP7 of the same version just fine.

Possibly JIT/DEP conflict see https://cygwin.com/ml/cygwin/2016-11/msg00336.html

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PHP 7.0.14 crashing with minimal set of extensions
  2016-12-17  7:30     ` Brian Inglis
@ 2016-12-18 18:51       ` Andrey Repin
  2016-12-18 19:47         ` Brian Inglis
  0 siblings, 1 reply; 11+ messages in thread
From: Andrey Repin @ 2016-12-18 18:51 UTC (permalink / raw)
  To: Brian Inglis, cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 967 bytes --]

Greetings, Brian Inglis!

> On 2016-12-14 04:04, Andrey Repin wrote:
>> Greetings, Yaakov Selkowitz!
>>> On 2016-12-13 12:06, Andrey Repin wrote:
>>>> Here's strace and stackdump from latest crash with Cygwin
>>>> 2.6.1-2 project.rootdir.org/.offload/crash-php-7.14.tar.xz
>>> Are you 100% sure that your code is compatible with PHP 7?
>>> The only segfaults I have seen so far is with old code.
>> It's Composer. It runs with native PHP7 of the same version just fine.

> Possibly JIT/DEP conflict see
> https://cygwin.com/ml/cygwin/2016-11/msg00336.html

Gah… confirmed.
Setting pcre.jit = Off let it run.


-- 
With best regards,
Andrey Repin
Sunday, December 18, 2016 21:40:12

Sorry for my terrible english...\0ТÒÐÐ¥\a&ö&ÆVÒ\a&W\x06÷'G3¢\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒ÷\a&ö&ÆV×2æ‡FÖÀФd\x15\x13¢\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöf\x17\x12ðФFö7VÖVçF\x17F–öã¢\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöFö72æ‡FÖÀÐ¥Vç7V'67&–&R\x06–æfó¢\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöÖÂò7Vç7V'67&–&R×6–×\x06ÆPРÐ

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PHP 7.0.14 crashing with minimal set of extensions
  2016-12-18 18:51       ` Andrey Repin
@ 2016-12-18 19:47         ` Brian Inglis
  2016-12-19 20:21           ` Andrey Repin
  0 siblings, 1 reply; 11+ messages in thread
From: Brian Inglis @ 2016-12-18 19:47 UTC (permalink / raw)
  To: cygwin

On 2016-12-18 11:40, Andrey Repin wrote:
> Greetings, Brian Inglis!
>> On 2016-12-14 04:04, Andrey Repin wrote:
>>> Greetings, Yaakov Selkowitz!
>>>> On 2016-12-13 12:06, Andrey Repin wrote:
>>>>> Here's strace and stackdump from latest crash with Cygwin 
>>>>> 2.6.1-2 project.rootdir.org/.offload/crash-php-7.14.tar.xz
>>>> Are you 100% sure that your code is compatible with PHP 7?
>>>> The only segfaults I have seen so far is with old code.
>>> It's Composer. It runs with native PHP7 of the same version just
>>> fine.
>> Possibly JIT/DEP conflict see 
>> https://cygwin.com/ml/cygwin/2016-11/msg00336.html
> Gah… confirmed. Setting pcre.jit = Off let it run.

Does the native app use JIT and have no problems with Windows DEP?
Does PHP need some Cygwin specific patches to re-mmap JIT code as rx, 
or Cygwin patches so Windows sees mmap rx regions as executable code, 
or otherwise "blesses" JIT code so it is not crashed by DEP?
There should at least be some way to indicate there is a DEP issue 
rather than just crashing with a segv!

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PHP 7.0.14 crashing with minimal set of extensions
  2016-12-18 19:47         ` Brian Inglis
@ 2016-12-19 20:21           ` Andrey Repin
  0 siblings, 0 replies; 11+ messages in thread
From: Andrey Repin @ 2016-12-19 20:21 UTC (permalink / raw)
  To: Brian Inglis, cygwin

Greetings, Brian Inglis!

> On 2016-12-18 11:40, Andrey Repin wrote:
>> Greetings, Brian Inglis!
>>> On 2016-12-14 04:04, Andrey Repin wrote:
>>>> Greetings, Yaakov Selkowitz!
>>>>> On 2016-12-13 12:06, Andrey Repin wrote:
>>>>>> Here's strace and stackdump from latest crash with Cygwin 
>>>>>> 2.6.1-2 project.rootdir.org/.offload/crash-php-7.14.tar.xz
>>>>> Are you 100% sure that your code is compatible with PHP 7?
>>>>> The only segfaults I have seen so far is with old code.
>>>> It's Composer. It runs with native PHP7 of the same version just
>>>> fine.
>>> Possibly JIT/DEP conflict see 
>>> https://cygwin.com/ml/cygwin/2016-11/msg00336.html
>> Gah… confirmed. Setting pcre.jit = Off let it run.

> Does the native app use JIT and have no problems with Windows DEP?

pcre.jit => 1 => 1
Seems like "yes".

> Does PHP need some Cygwin specific patches to re-mmap JIT code as rx, 
> or Cygwin patches so Windows sees mmap rx regions as executable code, 
> or otherwise "blesses" JIT code so it is not crashed by DEP?

That, I do not know.

> There should at least be some way to indicate there is a DEP issue 
> rather than just crashing with a segv!

I do not enforce DEP here.
But I just found references that this can be a stack overflow issue.


-- 
With best regards,
Andrey Repin
Monday, December 19, 2016 23:12:14

Sorry for my terrible english...
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-12-19 20:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-13 18:20 PHP 7.0.14 crashing with minimal set of extensions Andrey Repin
2016-12-13 19:07 ` Brian Inglis
2016-12-13 21:50   ` Andrey Repin
2016-12-13 22:23     ` Brian Inglis
2016-12-14  7:35 ` Yaakov Selkowitz
2016-12-14 14:25   ` cyg Simple
2016-12-14 17:20   ` Andrey Repin
2016-12-17  7:30     ` Brian Inglis
2016-12-18 18:51       ` Andrey Repin
2016-12-18 19:47         ` Brian Inglis
2016-12-19 20:21           ` Andrey Repin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).