URL:
<http://savannah.gnu.org/bugs/?21376>
Summary: Random Segmentation fault when run with -j n
Project: make
Submitted by: muzaffar
Submitted on: Saturday 10/20/2007 at 08:20
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 3.80
Operating System: POSIX-Based
Fixed Release: None
_______________________________________________________
Details:
Hello,
I have this Makefile (attached) and when I run it with -j 8 then I get
random segmentation faults(not always on same point). Running it without -j
option works fine and I do not get segmentation faults all the time (it just
random). My guess is that as I calculate values for some variable only on fly
so may be when run with -j option, two threads try to calculate/access the
same variable and that causes a crash. If I force the calculation of those
variables before any rule to run then it works fine. So may be there is some
variable locking problem.
Cheers,
--Shahzad
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Saturday 10/20/2007 at 08:20 Name: Makefile Size: 5kB By: muzaffar
<http://savannah.gnu.org/bugs/download.php?file_id=14171>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?21376>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make