FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › General Discussion › Segmentation fault but no core dump
- This topic has 3 replies, 2 voices, and was last updated 17 years, 1 month ago by rpedde.
-
AuthorPosts
-
25/08/2007 at 10:51 AM #1650version5Participant
Hey guys,
I’ve an issue thats causing the server to crash but for some reason I can’t get it do dump a core file so I can find out what the problem is. The ulimit is set to ‘unlimited’ for core files, the program has write permissions in the directory and I haven’t seen any thing in the source code like setrlimit() that would appear to affect its ability to dump a core file.Any ideas?
Thanks,
version526/08/2007 at 7:26 AM #12172rpeddeParticipant@version5 wrote:
Hey guys,
I’ve an issue thats causing the server to crash but for some reason I can’t get it do dump a core file so I can find out what the problem is. The ulimit is set to ‘unlimited’ for core files, the program has write permissions in the directory and I haven’t seen any thing in the source code like setrlimit() that would appear to affect its ability to dump a core file.Any ideas?
Thanks,
version5os-unix.c chdirs to /, so once it drops privs, it doesn’t have permissions to dump core in /.
I think there are some sysctls to set default core dumps, or you could set the “run_as” user to root to allow it to core in /, or you could move the chdir in os-unix.c to put it in a directory the run_as user can core to.
— Ron
27/08/2007 at 12:08 AM #12173version5ParticipantHey,
I’ve tried changing that chdir to a directory thats writable by everyone but that had no effect.When i change the runas user though I get “Segmentation fault(core dumped)” which is an improvement but the core file still doesnt appear to actually be created. Its not in / and any find’s i’ve ran dont bring back anything. Wierd.
27/08/2007 at 2:41 AM #12174rpeddeParticipant@version5 wrote:
Hey,
I’ve tried changing that chdir to a directory thats writable by everyone but that had no effect.When i change the runas user though I get “Segmentation fault(core dumped)” which is an improvement but the core file still doesnt appear to actually be created. Its not in / and any find’s i’ve ran dont bring back anything. Wierd.
Hrm… Well, failing all that, I guess one could just run it in gdb and get backtrace info that way.
— Ron
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.