This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
mktime() - Segmentation fault: If it is a multithread unsafe problem?
- To: help-gcc at gnu dot org
- Subject: mktime() - Segmentation fault: If it is a multithread unsafe problem?
- From: Stephen Lee <stephenl at tianjin dot china dot css dot mot dot com>
- Date: Fri, 19 Nov 1999 16:47:56 +0800
- Newsgroups: gnu.gcc.help
- Organization: Motorola
- Xref: wodc7nx0 gnu.gcc.help:1892
Does' anybody know how to resolve my problem:
Our development team wrote a multithread program which is running
in Solaris.
There is a strange error:
The program is running in server 1 but crash in server 2,
and we get the exit information indicating a segmentation fault.
I xxgdb this program, and find the error is take place at the
calling of mktime().
when I man mktime(), I find there is an comments,
MT-LEVEL Unsafe
Is this the right reason for this problem?
How to resolve it?