delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <000501c2db7b$4a498df0$6679b550@pc350> |
From: | "Marco Giovannini" <mgiova AT libero DOT it> |
To: | <cygwin AT cygwin DOT com> |
Subject: | SIGSEGV in localtime()? |
Date: | Sun, 23 Feb 2003 21:36:44 +0100 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
I've got this simple piece of code: time_t current_time; struct tm *boot_time; current_time = time(NULL); boot_time = localtime(¤t_time); that is very stupid and *should* run on every posix machine, but.. with the latest cygwin dll release (1.3.20) I receive this error: Program received signal SIGSEGV, Segmentation fault. 0x6100d074 in cygwin_attach_handle_to_fd () from /usr/bin/cygwin1.dll Two more notes: - In the cygwin dll release I had before updating the last week (I cannot remember which one was, but I know it was two-three months old or so), localtime() worked without trobles. - It seems that I receive the same error also with gmtime and mktime. I cannot believe that this is an error of my stupid program... Does anybody have the same problem? Thank you all for your help, Marco Giovannini -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |