bugmake - Bugs: bug #476, make 3.79.1 seg. fault under...

 
 

bug #476: make 3.79.1 seg. fault under darwin.

Submitter:  Invalid User ID <#7688>
Submitted:  Tue 28 May 2002 03:16:11 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.79.1 Operating System:  POSIX-Based
Fixed Release:  3.80 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 07 Jul 2002 09:18:51 PM UTC, comment #1: 

OK, I changed the tryrules and intermediate_files variables in pattern_search() to use xmalloc() instead of alloca().  These seemed to me to be the only ones that could get very large.

Paul D. Smith <psmith>
Group administrator
Tue 28 May 2002 03:16:11 PM UTC, original submission:  

When trying to build a cross-compiled libc under Mac OS X
10.1.4, make seg. faults while trying to parse a particular
Makefile.

I tried grabbing 3.79.1 (3.79 is included with darwin),
built it from scratch, and encountered the same seg. fault.

I ran 3.79.1 with gdb, and it seg. faults in
pattern_search() while trying to do an alloca().  Thinking
that perhaps pattern_search() is simply trying to allocate
too much stuff on the stack, I converted a few of its
alloca() calls to malloc() (and added the appropriate
free() calls before returning).  This fixed the problem,
and my patched make is working fine now.

Just curious if you'd be interested in making this change
in the real source.

Invalid User ID <#7688>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2002-10-04 psmith Fixed Release4.0 None
2002-07-07 psmith StatusNone None
    Open/ClosedOpen None
    Fixed ReleaseNone None
    Closed on- -

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code