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

202
Vistas
SIGABRT doesn't generate core dumps in MacOS

In macOS, I find that SIGABRT won't generate core dumps in some cases.

For example, I run a sleep in one terminal:

lianxin.wlx@mbp [01:08:21] [~/test]
-> % sleep 1000

And send a SIGABRT to it in another terminal:

lianxin.wlx@mbp [01:08:59] [~]
-> % ps -ef | grep sleep
  502 47679 20388   0  1:08AM ttys001    0:00.01 sleep 1000
lianxin.wlx@mbp [01:09:03] [~]
-> % kill -6 47679

Then the sleep process is aborted, but no core dump is generated.

lianxin.wlx@mbp [01:08:21] [~/test]
-> % sleep 1000
[1]    47679 abort      sleep 1000
lianxin.wlx@mbp [01:10:35] [~/test]
-> % ls /cores
lianxin.wlx@mbp [01:10:37] [~/test]
-> %

So why? I've tested the same operations in Linux, it did generate a core dump.

I'm sure I've opened the core dump right(ulimit -c unlimited, and /cores's privilege is 777). I wrote a program that will crash with SIGSEGV, and it did generate a core dump in /cores.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

If you make a simple program,

main() {
    abort();
}

It will generate a core dump if run with appropriate priv. Also, if you make a:

main() {
    sleep(100);
}

run it in the background and kill -ABRT , it will generate a core dump. But /bin/sleep doesn't, which is a bit odd.

This is assuming you have followed the recipe in man core.

over 4 years ago · Santiago Trujillo Denunciar
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