Hi All,
I am doing c++ application porting from Solaris/SPARK to Linux/x86. When i run my application on linux it crashes after a fork call.Actually parent process has exit call to make the child daemon process, but after fork call child gets SIGSEGV & terminates.
Can anyone help me to find out the actual cause. Thanks in advance.
following are the lines from strace output
Code:
clone(Process 23250 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7f40928) = 23250
[pid 23250] time([1247829456]) = 1247829456
[pid 23250] open("/etc/localtime", O_RDONLY) = 3
[pid 23250] fstat64(3, {st_mode=S_IFREG|0644, st_size=109, ...}) = 0
[pid 23250] fstat64(3, {st_mode=S_IFREG|0644, st_size=109, ...}) = 0
[pid 23250] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f61000
[pid 23250] read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 4096) = 109
[pid 23250] close(3) = 0
[pid 23250] munmap(0xb7f61000, 4096) = 0
[pid 23250] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 23250 detached
- Amit