bugThe GNU Bourne-Again SHell - Bugs: bug #67238, Segmentation fault due to invalid...

 
 

bug #67238: Segmentation fault due to invalid struct field access in parse.y

Submitter:  bkallus <bkallus>
Submitted:  Tue 24 Jun 2025 09:44:31 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Thu 26 Jun 2025 12:45:31 PM UTC, comment #4: 

Thanks for the report. This was fixed in January, 2024.

Chet Ramey <chet>
Group administrator
Wed 25 Jun 2025 04:30:57 AM UTC, comment #3: 

Thanks for checking and the original report.

I just double checked to confirm and came to the same conclusion.

Collin Funk <collinfunk>
Wed 25 Jun 2025 02:47:30 AM UTC, comment #2: 

Just tested; can't reproduce this against devel. This bug should be closed.

bkallus <bkallus>
Tue 24 Jun 2025 10:37:29 PM UTC, comment #1: 

The Dockerfile uses the master branch of bash.git.

The devel branch has many fixes not in the master branch. I will test it later.

Collin Funk <collinfunk>
Tue 24 Jun 2025 09:44:31 PM UTC, original submission:  

There's a bug in parse.y that causes `bash -c` to dereference 0xcfcfcfcfcfcfcfcf on certain inputs, such as `bash -c '((i=(<))'`.

Attached is a Dockerfile that reproduces the bug, as well as a backtrace.

Platform:
    Linux peachpit 6.12.32-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 04 Jun 2025 14:14:48 +0000 x86_64 GNU/Linux

bkallus <bkallus>

 

Attached Files

Attached Files
file #57323:  backtrace.txt added by bkallus (2.1KiB - text/plain)
file #57324:  Dockerfile added by bkallus (326B - application/octet-stream)

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by chet (Posted a comment)
  • -email is unavailable- added by collinfunk (Posted a comment)
  • -email is unavailable- added by bkallus (Submitted the item)
  •  

    Votes

    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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-06-26 chet StatusNone Fixed
    2025-06-24 bkallus Attached File- Added backtrace.txt, #57323
        Attached File- Added Dockerfile, #57324

    Back to the top

    Powered by Savane 3.16-598c.
    Corresponding source code