Get "Segmentation fault (core dumped)" but no core file found

Get "Segmentation fault (core dumped)" but no core file found

Post by Andrew Ta » Fri, 11 Mar 1994 09:21:40



On our Solaris, when a program has a segmentation fault, it crashes and
prints out the message "Segmentation fault (core dumped)" but the core file
is somehow not written to the disk and cannot be found afterwards. Does
anybody has similar experience? How can I fix this problem?

--
-------------------------------------------------------------------------------

 
 
 

Get "Segmentation fault (core dumped)" but no core file found

Post by Jussi Eloran » Sat, 12 Mar 1994 04:14:37



>On our Solaris, when a program has a segmentation fault, it crashes and
>prints out the message "Segmentation fault (core dumped)" but the core file
>is somehow not written to the disk and cannot be found afterwards. Does
>anybody has similar experience? How can I fix this problem?

When you set coredumpsize to 0 solaris 1.x doesn't print (core dumped) msg
but solaris 2.x erroneously does...

Jussi

--
============================================================================
Jussi Eloranta               Dept. of physical chemistry


 
 
 

Get "Segmentation fault (core dumped)" but no core file found

Post by John H. Petrange » Sat, 12 Mar 1994 05:06:29



: >On our Solaris, when a program has a segmentation fault, it crashes and
: >prints out the message "Segmentation fault (core dumped)" but the core file
: >is somehow not written to the disk and cannot be found afterwards. Does
: >anybody has similar experience? How can I fix this problem?
: >
:
: When you set coredumpsize to 0 solaris 1.x doesn't print (core dumped) msg
: but solaris 2.x erroneously does...

Actually, I find that under 2.3 (and 2.1 I think) I still get a core file, but
its size is 512 bytes, even after limiting coredumpsize to 0.

 
 
 

1. "Segmentation fault( core dumped ) "<--- sentence is driving me mad!!!!!

The following program (should) cut(s) ipaddr in 4 pieces and puts the digits
in an integer(a1-a4). when i compile it i get no error messages, but when i
try to run it, it returnes: Segmentation fault( core dumped ).
Could anyone tell me what im doing wrong.

M. Mortimer.
-----------------------------------------------------------
#include <string.h>

int main(void)
{
  char *ipaddr, *del;
  int a1, a2, a3, a4;

  ipaddr="10.0.0.1";
  del=strtok(NULL, ".");
  a1=atoi(del);
  del=strtok(NULL, ".");
  a2=atoi(del);
  del=strtok(NULL, ".");
  a3=atoi(del);
  del=strtok(NULL, ".");
  a4=atoi(del);

  return 0;
-----------------------------------------------------------

2. Pine shows spool lock error?

3. Help on "Segmentation fault (core dumped)"

4. SiS 6326

5. HELP! RPM: "Segmentation fault (core dumped)"

6. two questions

7. Several new programs, when run, crash with "Segmentation fault (core dumped)" ???

8. Html C-shell

9. "Segmentation fault: core dumped" message, redirection

10. why are core dumps always named "core"?

11. where can i find the "core dump" file

12. No "core" on segmentation fault

13. Improving on "memory fault - core dumped"