Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
What is causing Apache to segfault while setting a cookie of 276 chars in PHP?

I'm setting a cookie in PHP, like this:

setcookie('searchParameters', '{"cordationages":"BY,BE,BO,BR,CA,DK,DO,FI,FR,DE,GR,IS,IN,IE,IT,JP,MT,MX,MN,NL,NZ,NO,PL,RO,RU,ES,CH","santarila":"ANY","frexin":"d","minimumCar":"98","maximumCar":"XD","requireDolprin":"NO","requireHousemath":"YES","maxinabilityFring":"PRIN-KOSLL","maxinabilityFor":"PRAZ-KO-LL"}', $expiry);

Which is causing the following segmentation fault in Apache:

[core:notice] [pid 42457] AH00052: child pid 45486 exit signal Segmentation fault (11)

The strange thing is that if I shorten the cookie string by 3 characters (by, say, removing any of the country codes from the comma-delineated list) it works just fine.

As far as I'm aware the limit for cookie length is far longer than this. Does anyone have any theories as to what is going on?

I'm on MacOS 10.14.6 Server version: Apache/2.4.34 (Unix) Server built: Feb 22 2019 20:20:11

Thanks!

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!