View Issue Details

IDProjectCategoryView StatusLast Update
0006301unrealircdpublic2023-07-11 15:28
ReporterBlackBishop Assigned Tosyzop  
Status resolvedResolutionfixed 
Fixed in Version6.1.2-rc1 
Summary0006301: 32bit OS on RPI with alot of modules yells CmodeAdd: out of space!!!
DescriptionStarting up with all sorts of modules results in this error

CmodeAdd: out of space!!!

The machine is a RPI3 (armv7l) running a 32bit OS.

Jobe asked about LONG_MAX's value...

root@go:~# grep -i LONG_MAX /usr/include/limits.h
# define LONG_MAX 9223372036854775807L
# define LONG_MAX 2147483647L
# define LONG_MIN (-LONG_MAX - 1L)
# define ULONG_MAX 18446744073709551615UL
# define ULONG_MAX 4294967295UL
# define LLONG_MAX 9223372036854775807LL
# define LLONG_MIN (-LLONG_MAX - 1LL)
# define ULLONG_MAX 18446744073709551615ULL
   LLONG_MAX, and ULLONG_MAX. Instead only the values gcc defined for
# define LLONG_MIN (-LLONG_MAX-1)
# ifndef LLONG_MAX
# ifndef ULLONG_MAX
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1)
root@go:~# cat test.c
#include <stdio.h>
#include <limits.h>
int main() {
    printf("LONG_MAX value: %ld\n", LONG_MAX);
    return 0;
root@go:~# gcc test.c
root@go:~# ./a.out
LONG_MAX value: 2147483647


The same config works just fine on a different machine ( aws ec2 aarch64)
LONG_MAX value: 9223372036854775807
Steps To ReproduceDefault install with many chanmode modules.
TagsNo tags attached.
3rd party modules



2023-07-11 15:28

administrator   ~0022950

Thanks, fixed in this commit

commit 9625a1221bb131c632d08d8c9e1b5c002d306c7f (HEAD -> unreal60_dev)
Author: Bram Matthys <[email protected]>
Date: Tue Jul 11 15:25:21 2023 +0200

    Make Cmode_t an unsigned long long to have more chanmodes on 32 bit archs.
    Reported by BlackBishop in
    [skip ci]

Issue History

Date Modified Username Field Change
2023-07-09 09:10 BlackBishop New Issue
2023-07-11 15:28 syzop Assigned To => syzop
2023-07-11 15:28 syzop Status new => resolved
2023-07-11 15:28 syzop Resolution open => fixed
2023-07-11 15:28 syzop Fixed in Version => 6.1.2-rc1
2023-07-11 15:28 syzop Note Added: 0022950