Hi,
I tried to implement 1024 byte shared memory segment with semaphore (C -language) in simple client/server application but now I get "segmentation fault - core dumped" every time I try to run the executable. Neither the shmemory nor the semaphore was deallocated/removed within the code. Changing the ids returned by semget and shmget functions didn't work. I rebooted and checked with ipcs -s and -m for existing shared memory segments and semaphores created by the program but it showed nothing ...What causes this core dumping?
I tried to implement 1024 byte shared memory segment with semaphore (C -language) in simple client/server application but now I get "segmentation fault - core dumped" every time I try to run the executable. Neither the shmemory nor the semaphore was deallocated/removed within the code. Changing the ids returned by semget and shmget functions didn't work. I rebooted and checked with ipcs -s and -m for existing shared memory segments and semaphores created by the program but it showed nothing ...What causes this core dumping?