bugmake - Bugs: bug #47071, gnu make dumps core with long...


bug #47071: gnu make dumps core with long string as a target

Submitter:  None
Submitted:  Fri 05 Feb 2016 05:05:43 PM UTC
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.1 Operating System:  POSIX-Based
Fixed Release:  4.2 Triage Status:  Small Effort
* Mandatory Fields

Add a New Comment Rich Markup

Mon 29 Feb 2016 06:44:34 AM UTC, comment #1: 

There was a bug that only appeared if one of the very first strings added to the cache was over half the maximum size of a cache buffer (so, >4096 or so).

Fix pushed to Git.

Paul D. Smith <psmith>
Group administrator
Fri 05 Feb 2016 05:05:43 PM UTC, original submission:  

this looks similar to others (like http://savannah.gnu.org/bugs/?45275) but the patch for that doesn't seem to help.

anyway this was reported on solaris:

{mlsulliv:stargazer:96} /usr/gnu/bin/make `perl -e 'print"a"x5000'`
Segmentation fault (core dumped)

3.82 used to print an error then crash differently, but
here's the stack:

{mlsulliv:stargazer:97} pstack core
core 'core' of 144693:  /usr/gnu/bin/make aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 00000000004462be add_string () + 17e
 00000000004464af strcache_add () + af
 0000000000431cfe handle_non_switch_argument () + 10e
 000000000043283d decode_switches () + 7ad
 000000000042e9ac main () + bcc
 00000000004136c4 ???????? ()



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

Attach Files:

No files currently attached


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 mike_s (forgot to remember and login first)

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

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-29 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.2
        Triage StatusNone Small Effort
    2016-02-05 mike_s Carbon-Copy- Added mike_s

    Back to the top

    Powered by Savane 3.13-8484.
    Corresponding source code