Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

190
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda