[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64129] Using $(filter ...) on a variable with a large number of wo
From: |
anonymous |
Subject: |
[bug #64129] Using $(filter ...) on a variable with a large number of words causes seg fault |
Date: |
Sun, 30 Apr 2023 15:47:01 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64129>
Summary: Using $(filter ...) on a variable with a large
number of words causes seg fault
Group: make
Submitter: None
Submitted: Sun 30 Apr 2023 07:46:59 PM UTC
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 4.3
Operating System: POSIX-Based
Fixed Release: None
Triage Status: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sun 30 Apr 2023 07:46:59 PM UTC By: Anonymous
If I try to use the filter function on a variable that consists of a large
number of words (174k or so), make crashes with segmentation fault. This
appears to be roughly independent of the size of the words themselves.
System is Linux Mint Debian Edition, kernel is Debian 5.10.162-1 (2023-01-21)
x86_64 GNU/Linux, bash version 5.1.4(1)
The attached Makefile will generate a variable with sequential numbers up to
274369 (crudely encoded in the first 6 lines) and attempt to filter from it,
which seg faults. If the value (on my system) is reduced to 174369 make fails
roughly half of the time. That's an approximate limiting value based on quick
testing and if made higher or lower by 1000 it will respectively succeed or
fail every time. The numbers can be padded to 10 digits or left at 6 digits
and the result is the same. If the "filter" line is commented out then larger
numbers of words can be used, so the problem is likely in "filter" and not in
"words" or in the variable handling within make.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 30 Apr 2023 07:46:59 PM UTC Name: Makefile Size: 1KiB By: None
just run "make" but see description for how to interpret
<http://savannah.gnu.org/bugs/download.php?file_id=54692>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64129>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #64129] Using $(filter ...) on a variable with a large number of words causes seg fault,
anonymous <=