Click Here
home features news forums classifieds faqs links search
6133 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
22 crawler(s) on-line.
 95 guest(s) on-line.
 3 member(s) on-line.


 zipper,  PhantomInterrogative,  1Mouse

You are an anonymous user.
Register Now!
 PhantomInterrogative:  1 min ago
 zipper:  1 min ago
 1Mouse:  2 mins ago
 Mason:  6 mins ago
 saimo:  10 mins ago
 Kronos:  27 mins ago
 kamelito:  56 mins ago
 Rob:  1 hr 3 mins ago
 matthey:  1 hr 4 mins ago
 -Sam-:  1 hr 10 mins ago

/  Forum Index
   /  Amiga General Chat
      /  The Grim Reaper visits my compilations
Register To Post

PosterThread
OldFart 
The Grim Reaper visits my compilations
Posted on 13-Apr-2005 7:05:40
#1 ]
Elite Member
Joined: 12-Sep-2004
Posts: 3070
From: Stad; en d'r is moar ain stad en da's Stad. Makkelk zat!

Hi,

Been trying to compile a nondescript C-project on my A1. The grim reaper jumps in saying that red zone was damaged. Later on, when trying again I get a stack overflow to acknowledge. Somewhere on 3.4.2/ccl or something. (Oops, forgot which specific funktion it was about...)

Could stacksize be the culprit? What is its initial size? And how do I increase it?

OldFart

_________________
Life is a waste of time.
Time is a waste of life.
Get wasted all the time
and you'll have the time of your life!

 Status: Offline
Profile     Report this post  
Mr_Capehill 
Re: The Grim Reaper visits my compilations
Posted on 13-Apr-2005 7:09:36
#2 ]
Super Member
Joined: 15-Mar-2003
Posts: 1933
From: Yharnam

@OldFart

Use DOS preferences or type "stack 123456" in shell (replacing 123456 maybe ;)

 Status: Offline
Profile     Report this post  
nicomen 
Re: The Grim Reaper visits my compilations
Posted on 13-Apr-2005 7:15:07
#3 ]
Cult Member
Joined: 5-Nov-2003
Posts: 539
From: Trondheim, Norway

@OldFart

There at least four ways to set the stack

1) prefs/DOS - globally for all commands

2) in the icon of a Tool

3) as a stack cookie in the executable itself

4) run as "stack 100000" right before you run the command in a shell


As Juha pointed out the most sensible way for gcc would be the 4th way. Maybe make yourself a compile-shell script or icon that you use solely for stack-heavy tasks like compiling big projects, specially c++ ones are.

_________________
Nicolas Mendoza

 Status: Offline
Profile     Report this post  
OldFart 
Re: The Grim Reaper visits my compilations
Posted on 13-Apr-2005 7:33:50
#4 ]
Elite Member
Joined: 12-Sep-2004
Posts: 3070
From: Stad; en d'r is moar ain stad en da's Stad. Makkelk zat!

@nicomen & Juha


Running the makefile from its icon. Default tool is 'Make'. Set stack to 300.000. Same thing.

Maybe there is some other thing in the source that upsets the compiler. I'll downgrade the source until there is nothing left to compile anymore.


Thanks,

OldFart

P.s.: It is InternalRunCommand() that suffers from a stack overrun.

Last edited by OldFart on 13-Apr-2005 at 07:36 AM.

_________________
Life is a waste of time.
Time is a waste of life.
Get wasted all the time
and you'll have the time of your life!

 Status: Offline
Profile     Report this post  
Agafaster 
Re: The Grim Reaper visits my compilations
Posted on 13-Apr-2005 9:45:28
#5 ]
Super Member
Joined: 10-Mar-2003
Posts: 1413
From: West Midlands, England - sector ZZ9 plural Z alpha

@OldFart

what version of OS4 pre are you running - Update 2 ?

did you update the SDK ?

I found that I could no longer compile with the SDK off the original Pre-Release CD
once I did the big update (similar symptoms)

re-installing the SDK off the 2nd CD fixed it for me.

of course, hardly any of my makefile scripts worked, but a smidge of fiddling solved that.

_________________
XH558 - the worlds last flying Vulcan.
ok, its actually XL426 in the picture but you know what I mean.

 Status: Offline
Profile     Report this post  
OldFart 
Re: The Grim Reaper visits my compilations
Posted on 13-Apr-2005 12:05:52
#6 ]
Elite Member
Joined: 12-Sep-2004
Posts: 3070
From: Stad; en d'r is moar ain stad en da's Stad. Makkelk zat!

@Agafaster

Tracked it down to exactly 1 line of offending code. But that code, being a macro, expands to some 15 lines of code, mostly tags for a CHOOSER-gadget. Must have overlooked some fact while thinking it up. After commenting-out that one line, it compiles fine.

Thanks anyway,

OldFart

P.s.: have indeed upgraded to the latest version, i.e. 2nd upgrade, but do not know whether I've upgraded the SDK as well. If it had to be done manually then certainly not. If it did so automatically then probably I have the latest in SDK.

_________________
Life is a waste of time.
Time is a waste of life.
Get wasted all the time
and you'll have the time of your life!

 Status: Offline
Profile     Report this post  
fricopal! 
Re: The Grim Reaper visits my compilations
Posted on 20-Mar-2025 2:31:53
#7 ]
Cult Member
Joined: 12-Mar-2025
Posts: 799
From: Unknown

Quote:
by OldFart on 13-Apr-2005 7:33:50

@nicomen & Juha


Running the makefile from its icon. Default tool is 'Make'. Set stack to 300.000. Same thing.

Maybe there is some other thing in the source that upsets the compiler. I'll downgrade the source until there is nothing left to compile anymore.


Thanks,

OldFart

P.s.: It is InternalRunCommand() that suffers from a stack overrun.


@nicomen & Juha, thank you for your input on the makefile issue with 'Make'. Adjusting the default tool and setting STACK size to 300,000 should help manage memory usage during compilation. Downgrading source files might be necessary if specific code triggers a stack overrun in InternalRunCommand(). I appreciate OldFart's proactive approach!

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle