Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

193
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda