bugmake - Bugs: bug #1379, stack overflow on large dependency...

 
 

bug #1379: stack overflow on large dependency set

Submitted by:  Paul D. Smith <psmith>
Submitted on:  Wed 09 Oct 2002 02:25:35 PM UTC  
 
Severity: 1 - WishItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: Paul D. Smith <psmith>Open/Closed: Closed
Component Version: NoneOperating System: POSIX-Based
Fixed Release: 3.81Triage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 13 Oct 2002 06:51:14 PM UTC, comment #1:

I fixed this by allocating these buffers on the heap, but I keep a pointer to them and reuse them every time (increasing their size as necessary).

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Wed 09 Oct 2002 02:25:35 PM UTC, original submission:

I had a mysterious segfault that occurred when I tried to regenerate a file that dependend on a lot of other files.

The total length of these prerequisite filenames was somewhat more than 1MB. As it turns out, the use of alloca() for such a large data set in the function set_file_variables() caused a stack overflow. This is also
because on my Linux system, make is implicitly linked against libpthread, which means that the maximum stacksize per thread is limited to 2MB.

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 01 Apr 2006 07:01:52 AM UTCpsmithFixed Release4.0=>3.81
Sun 13 Oct 2002 06:51:14 PM UTCpsmithStatusNone=>(Error - Not Found)
  Assigned toNone=>NA
  Open/ClosedOpen=>(Error - Not Found)
  Fixed ReleaseNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1