delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2016/05/09/10:15:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Wiktor S. (wswiktorSP AT Mpoczta DOT fm) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [ANNOUNCE] DJGPP port of gcc-6.1.0
Date: Mon, 9 May 2016 16:07:23 +0200
Organization: INTERIA.PL S.A.
Lines: 31
Message-ID: <ngq5iu$9e7$1@usenet.news.interia.pl>
References: <201604281739 DOT u3SHdF9o009018 AT delorie DOT com> <572B61D5 DOT 2040400 AT gmx DOT de> <16909c8a-d835-21ab-67fb-9dcd397b630b AT iki DOT fi> <572F7363 DOT 10503 AT gmx DOT de>
NNTP-Posting-Host: user-109-243-229-254.play-internet.pl
Mime-Version: 1.0
X-Trace: usenet.news.interia.pl 1462802846 9671 109.243.229.254 (9 May 2016 14:07:26 GMT)
X-Complaints-To: usenet AT firma DOT interia DOT pl
NNTP-Posting-Date: Mon, 9 May 2016 14:07:26 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
Bytes: 1952
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

// genautomata.c line 5816

static void
pass_state_graph (state_t start_state, void (*applied_func) (state_t state))
{
  arc_t arc;

  if (start_state->pass_num == curr_state_graph_pass_num)
    return;
  start_state->pass_num = curr_state_graph_pass_num;
  (*applied_func) (start_state);
  for (arc = first_out_arc (start_state);
       arc != NULL;
       arc = next_out_arc (arc))
    pass_state_graph (arc->to_state, applied_func); // <---- HERE
}


This is very deep recursion causing stack overflow.
After modifying genautomata.exe with stubedit and giving it 1 MB stack the 
problem disappears.

The question is why doesn't it crash in Vista. Probably Vista gives bigger 
stack by default.


-- 
Wiktor S.



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019