« first day (4617 days earlier)      last day (315 days later) » 

12:47 AM
Hi, I've run into a suspected PHP JIT bug, which I've worked around by disabling JIT. I want to file a good issue against PHP, and this understandably requires a self-contained reproduction case.

Unfortunately I've only been able to reproduce it in my proprietary code base in a production environment. Anybody have experience or advice on extracting a reproduction case from this type of situation? My worry is that in changing the conditions under which the code is running, I won't be able to reproduce anymore, and I'll waste tons of time on this. I also don't have a good understanding of wh
 
 
5 hours later…
5:50 AM
@GabrielCaruso who will take care of 8.0.29 ?
 
6:33 AM
I also ping Sara on mastodon
 
 
1 hour later…
7:45 AM
@RemiCollet I asked Sara - I'm in the middle of a job hunt with a deadline, unfortunately, so I'm grateful if she could handle it. Worse case scenario, please ping me via the RMs email and I can try and help next week
 
8:26 AM
@GabrielCaruso C or PHP (or other)?
 
 
2 hours later…
10:13 AM
Thanks for asking - “anything” at this point 😂

I moved to the low countries 4 years ago, and at the beginning of this year, I was laid off from my employer - the Silicon Valley layoffs affected me.

After a few months of taking care of myself, my body and my mind - I'm hunting for a job, I have until late August to find something. Otherwise, my Visa expires and I need to go back to Brazil.

I'm looking for PHP roles, and starting to expand to Java - learning a new language is a true blessing, it teaches you a lot. I’m not comfortable with coding C professionally, and I will use it wheneve
 
Do we still discuss about PHP coding here?
 
10:35 AM
Occasionally.
 
Keep it up!
 
@GabrielCaruso I'm keeping my eyes out for a mid-level PHP developer, but if you're used to silicon valley wages it may not match your expectations.
 
 
1 hour later…
12:05 PM
@MarkR Feel free to email me if you like - and no, those wages are not sustainable and I’m watching out my expectations, thanks for the note.
 
12:43 PM
@GabrielCaruso php is the future
 
Gabriel might agree there, given they're a PHP release manager :-)
 
12:54 PM
Ah ok, good to know
 
1:12 PM
Morning
 
Hello.
 
2:02 PM
user image
2
 
2:50 PM
@EvanShaw Just submit the bug with the piece of code that is being affected....yeah it won't be reproducible, but someone who understands what optimisations the JIT can do, will probably be able to guess which optimisation is going wrong, and start thinking about it from there.
 
 
3 hours later…
5:55 PM
@RemiCollet Done, apologies for the delay!
 
 
3 hours later…
9:12 PM
Sadly I don't know for sure which code is involved. The issue usually manifests as a segfault inside zend_gc_collect_cycles, which feels like a symptom of memory corruption rather than the direct cause of the crash.

The only good news is that we've had JIT enabled for months and only just started seeing the crash last week. We've ruled out any recent changes to PHP version or PHP extensions and changes in third-party dependencies, so we know it's something about our code, and we know what's changed prior to when the crashes started. But this still leaves quite a few possibilities, and it's
 
9:31 PM
@Trowski What e-mail should I use? The one linked from github? github.com/trowski
@EvanShaw Debugging JIT issues is hard... There are some instructions on wiki.php.net/rfc/jit. If you ./configure with the --with-capstone flag and pass the appropriate opcache.jit_debug ini options you can disassemble the JITted code with gdb. But even then it might be very difficult to understand where the bug originates.
@EvanShaw If the bug is easily reproducible without much setup, you might want to ask Dmitry Stogov (github.com/dstogov) if he can look at the bug by providing a private copy of the code base.
You could also try enabling the --enable-address-sanitizer flag. It won't help with the JITted code because it needs to be instrumented but it might catch any memory corruption it caused earlier.
 
10:33 PM
@IluTov Thank you, we do have reliable reproduction steps, but they involve exposing our customers to issues caused by the crashes, so it's not something we can do a lot of experimenting with at the moment. I think we need to find risk-free reproduction steps before doing too much debugging.
 

« first day (4617 days earlier)      last day (315 days later) »