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

 
 

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

Submitter:  Yuri Shtil <yshtil>
Submitted:  Mon 29 Aug 2011 08:15:11 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Works for me Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.81 Operating System:  None
Fixed Release:  None Triage Status:  Need Info
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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>
Group 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>
Group 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 Files:
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-15 psmith StatusNone Works for me
        Open/ClosedOpen Closed
    2012-09-10 psmith Triage StatusNone Need Info
    2011-08-29 yshtil Attached File- Added make.pv, #23896

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code