bugmake - Bugs: bug #34167, Spurious systax errors, Purify...

 
 

bug #34167: Spurious systax errors, Purify detects memory access problems.

Submitted by:  Yuri Shtil <yshtil>
Submitted on:  Mon 29 Aug 2011 08:15:11 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: Works for mePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.81Operating System: None
Fixed Release: NoneTriage Status: Need Info

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Sun 15 Sep 2013 01:03:27 AM UTC, comment #6:

No further info is available, so closing. Please either re-open or re-file if more details become available.

Paul D. Smith <psmith>
Project Administrator
Mon 10 Sep 2012 04:44:27 AM UTC, comment #5:

Well, I don't have Purify available to me and I have no way to parse/read a .pv file (I tried to look at it but it's just binary garbage to me).

There have been a number of pointer and memory issues addressed in the codebase since 3.82 was released. Hopefully one of those fixes also resolved your problem. If not and you can get a readable trace from Purify, or run make under valgrind instead and get that information, I can look again.

Paul D. Smith <psmith>
Project Administrator
Mon 12 Sep 2011 08:13:43 PM UTC, comment #4:

I run the same make on a large LSF farm. The error appears intermittently even on the same host.
I was able to reliably reproduce it on my development linux box.

The error message is
commands commence before first target.

It is not possible for me to send the whole environment. This is the reason I attached a .pv file with a slight hope it may help.

This one is going to be a tough one...

When I ran purify it showed a pointer used beyond originally allocated string.

The make code has a lot of $(eval $(call...)) constructs.

I don't know what else to add ...

Yuri Shtil <yshtil>
Mon 12 Sep 2011 12:34:22 AM UTC, comment #3:

It's not clear to me that this is due to a bug in make. Offhand it looks like a configuration or environment problem, not a bug in make. Are you still seeing Purify errors when you try to run this version of make?

If you are please attach the output of that run and I'll take a look.

Paul D. Smith <psmith>
Project Administrator
Mon 29 Aug 2011 10:04:31 PM UTC, comment #2:

I tried 3.82 with the same result. I could not build from CVS:

autoreconf -i
cvs [init aborted]: Cannot initialize repository under existing CVSROOT: `/home/yshtil'
cvs [checkout aborted]: /home/yshtil/gnumake_latest/tmpcvs30700/CVSROOT: No such file or directory
/tools/oss/packages/x86_64-rhel5/findutils/default/bin/find: archive: No such file or directory
/tools/oss/packages/x86_64-rhel5/findutils/default/bin/find: archive: No such file or directory
autopoint: *** infrastructure files for version 0.14.1 not found; this is autopoint from GNU gettext-tools 0.14.6
autopoint: *** Stop.
autoreconf: autopoint failed with exit status: 1

Yuri Shtil <yshtil>
Mon 29 Aug 2011 08:54:15 PM UTC, comment #1:

GNU make 3.81 was released almost 5 1/2 years ago. Many bugs, including memory bugs, have been resolved since then. Please try with the latest version (3.82) or even the latest version available from CVS and see if you still have memory errors.

Paul D. Smith <psmith>
Project Administrator
Mon 29 Aug 2011 08:15:11 PM UTC, original submission:

I have a fairly large make code. It often produces syntax error of type *** missing separator. Stop.

We have a large LSF build farm and the error appears on some hosts, but not on the others (this is why I say often). I finally built a purified make 3.81 and was able to observe ABR (array bound read) and UMR (Uninitialized memory read) errors.

I cannot really send you a test case since the sources are proprietary. I attach the .pv file just in case.

Let me know if more info is needed.

Yuri Shtil <yshtil>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #23896:  make.pv added by yshtil (21kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by yshtil (Submitted the item)
  •  

    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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 15 Sep 2013 01:03:27 AM UTCpsmithStatusNone=>Works for me
      Open/ClosedOpen=>Closed
    Mon 10 Sep 2012 04:44:27 AM UTCpsmithTriage StatusNone=>Need Info
    Mon 29 Aug 2011 08:15:11 PM UTCyshtilAttached File-=>Added make.pv, #23896

    Back to the top


    Powered by Savane 3.1-cleanup