[PR #40] Makefile: segmentation fault (core dumped) with GNU Make 4.4.1 #168

Open
opened 2026-10-13 21:07:16 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/40
Author: @vanyasem
Created: 10/19/2024
Status: 🔄 Open

Base: master ← Head: patch-1


📝 Commits (3)

  • 1bb00ed Makefile: Use simple assignment for KERNELRELEASE
  • 51801af Revert "Makefile: Use simple assignment for KERNELRELEASE"
  • 5642bb2 makefile: Rename MODERN_KERNEL_SOURCES_NOT_FOUND_ERROR to have a shorter name

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 src/Makefile (+3 -3)

📄 Description

GNU Make 4.4.1 on Arch Linux segfaults when encountering You're running a modern Linux Kernel (version $(KERNELRELEASE)).: segmentation fault (core dumped)

It's fixed by using a simple assignment := for KERNELRELEASE instead of a conditional assignment ?=

Behavior without the fix:
Stock

Behavior with the fix:
Changed assignment

Verifying segfault source by removing the reference to the variable:
Removed reference


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/40 **Author:** [@vanyasem](https://github.com/vanyasem) **Created:** 10/19/2024 **Status:** 🔄 Open **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (3) - [`1bb00ed`](https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/commit/1bb00edf4d7b66f7e0b66734e147b54dd132f894) Makefile: Use simple assignment for KERNELRELEASE - [`51801af`](https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/commit/51801af9969fd76fd1a2a627cdcc3cc5e3197f24) Revert "Makefile: Use simple assignment for KERNELRELEASE" - [`5642bb2`](https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/commit/5642bb2794376ea84b11f1d5d3376b36da837671) makefile: Rename `MODERN_KERNEL_SOURCES_NOT_FOUND_ERROR` to have a shorter name ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/Makefile` (+3 -3) </details> ### 📄 Description GNU Make 4.4.1 on Arch Linux segfaults when encountering `You're running a modern Linux Kernel (version $(KERNELRELEASE)).`: `segmentation fault (core dumped)` It's fixed by using a simple assignment `:=` for `KERNELRELEASE` instead of a conditional assignment `?=` **Behavior without the fix:** ![Stock](https://github.com/user-attachments/assets/926eea2d-6e7d-47d7-898e-65b59b5c29ce) **Behavior with the fix:** ![Changed assignment](https://github.com/user-attachments/assets/606e58a8-a855-432a-b2dc-c98c39e81766) **Verifying segfault source by removing the reference to the variable:** ![Removed reference](https://github.com/user-attachments/assets/97b210da-596c-48a2-acc4-bf4be0db36ea) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-linux-kernel-module#168
No description provided.