🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
6 messages
6 total messages Started by Tobias Hansen Sun, 01 Nov 2026 11:10
Bug#1152765: libgap garbage collects GAP objects while still in use on some non-x86 platforms
#2864
Author: Tobias Hansen
Date: Sun, 01 Nov 2026 11:10
15 lines
1992 bytes
Package: libgap-dev
Version: 4.16.1-1
Tags: patch
Control: forwarded -1 https://github.com/gap-system/gap/pull/6788
Control: block 1004872 by -1
Control: tags 1004872 - help

Hi,

I just wanted to record also here a bug in libgap which causes segfaults in sagemath on some platforms, most visibly armhf.

A patch is available in the upstream issue, in case you want to apply it already.

Best,
Tobias
Bug#1152765: libgap garbage collects GAP objects while still in use on some non-x86 platforms
#2953
Author: Bill Allombert
Date: Sun, 01 Nov 2026 21:00
23 lines
2413 bytes
On Sun, Nov 01, 2026 at 11:05:54AM +0000, Tobias Hansen wrote:
> Package: libgap-dev
> Version: 4.16.1-1
> Tags: patch
> Control: forwarded -1 https://github.com/gap-system/gap/pull/6788
> Control: block 1004872 by -1
> Control: tags 1004872 - help
> 
> Hi,
> 
> I just wanted to record also here a bug in libgap which causes segfaults in sagemath on some platforms, most visibly armhf.
> 
> A patch is available in the upstream issue, in case you want to apply it already.

Thanks Tobias!

I would need a commit number, at minimum.

Cheers,
-- 
Bill. <ballombe@debian.org>

Imagine a large red swirl here. 
Bug#1152765: libgap garbage collects GAP objects while still in use on some non-x86 platforms
#2969
Author: Tobias Hansen
Date: Mon, 02 Nov 2026 10:30
37 lines
3280 bytes
Hi Bill,

note that the patch includes a new test. It would make sense to run the test to make sure the bug is gone on all architectures. The test is not run by 'make check', so you would have to add 'make testlibgap' to debian/rules.

If you don't want to run the testlibgap tests, it's enough to patch only src/libgap-api.h.

Best,
Tobias

On 01/11/2026 21:01, Tobias Hansen wrote:
> Hi Bill,
>
> I am attaching the patch for commit cf69717819e0477370f8be31dfbaee54a8902664 from the github pull request.
>
> Best wishes,
> Tobias
>
> On 01/11/2026 20:48, Bill Allombert wrote:
>> On Sun, Nov 01, 2026 at 11:05:54AM +0000, Tobias Hansen wrote:
>>> Package: libgap-dev
>>> Version: 4.16.1-1
>>> Tags: patch
>>> Control: forwarded -1 https://github.com/gap-system/gap/pull/6788
>>> Control: block 1004872 by -1
>>> Control: tags 1004872 - help
>>>
>>> Hi,
>>>
>>> I just wanted to record also here a bug in libgap which causes segfaults in sagemath on some platforms, most visibly armhf.
>>>
>>> A patch is available in the upstream issue, in case you want to apply it already.
>> Thanks Tobias!
>>
>> I would need a commit number, at minimum.
>>
>> Cheers,
>
Bug#1152765: libgap garbage collects GAP objects while still in use on some non-x86 platforms
#2972
Author: Bill Allombert
Date: Mon, 02 Nov 2026 10:40
22 lines
2508 bytes
On Sun, Nov 01, 2026 at 09:00:49PM +0000, Tobias Hansen wrote:
> Hi Bill,
> 
> I am attaching the patch for commit cf69717819e0477370f8be31dfbaee54a8902664 from the github pull request.

I would need a commit in the GAP repository.

This patch is highly non-portable, for comparison
PARI does when the thread starts:

void
pari_thread_init(void)
{
  long var;
  pari_stackcheck_init((void*)&var);
  ...
}

to get the stack base.

Cheers,
Bill
Bug#1152765: libgap garbage collects GAP objects while still in use on some non-x86 platforms
#2973
Author: Tobias Hansen
Date: Mon, 02 Nov 2026 10:50
30 lines
2798 bytes
On 02/11/2026 10:36, Bill Allombert wrote:
> On Sun, Nov 01, 2026 at 09:00:49PM +0000, Tobias Hansen wrote:
>> Hi Bill,
>>
>> I am attaching the patch for commit cf69717819e0477370f8be31dfbaee54a8902664 from the github pull request.
> I would need a commit in the GAP repository.
>
> This patch is highly non-portable, for comparison
> PARI does when the thread starts:
>
> void
> pari_thread_init(void)
> {
>    long var;
>    pari_stackcheck_init((void*)&var);
>    ...
> }
>
> to get the stack base.
>
> Cheers,
> Bill

Hi Bill,

ok, then let's wait until something gets merged in gap.

Best,

Tobias
Bug#1152765: libgap garbage collects GAP objects while still in use on some non-x86 platforms
#3940
Author: Tobias Hansen
Date: Mon, 09 Nov 2026 23:00
39 lines
3003 bytes
On 02/11/2026 10:40, Tobias Hansen wrote:
> On 02/11/2026 10:36, Bill Allombert wrote:
>> On Sun, Nov 01, 2026 at 09:00:49PM +0000, Tobias Hansen wrote:
>>> Hi Bill,
>>>
>>> I am attaching the patch for commit cf69717819e0477370f8be31dfbaee54a8902664 from the github pull request.
>> I would need a commit in the GAP repository.
>>
>> This patch is highly non-portable, for comparison
>> PARI does when the thread starts:
>>
>> void
>> pari_thread_init(void)
>> {
>>    long var;
>>    pari_stackcheck_init((void*)&var);
>>    ...
>> }
>>
>> to get the stack base.
>>
>> Cheers,
>> Bill
>
> Hi Bill,
>
> ok, then let's wait until something gets merged in gap.
>
> Best,
>
> Tobias 

Hi Bill,

this was now merged in GAP as commit 22ae5a81601db0ece20a8fd56e5d0544ec75d06c.

Best,

Tobias
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads