• Bug#1099267: psensor: FTBFS: error: If memory allocation fail: pointer

    From Santiago Vila@21:1/5 to All on Sat Mar 1 22:10:13 2025
    Package: src:psensor
    Version: 1.2.1-2
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean --with=autoreconf
    dh_clean
    debian/rules binary
    dh binary --with=autoreconf
    dh_update_autotools_config
    dh_autoreconf
    Copying file m4/codeset.m4
    Copying file m4/glibc2.m4
    Copying file m4/glibc21.m4
    Copying file m4/intdiv0.m4
    Copying file m4/intl.m4
    Copying file m4/intldir.m4
    Copying file m4/intmax.m4

    [... snipped ...]

    psensor->alarm_low_threshold = 0;
    ^
    ../src/lib/psensor.c:40:36: note: Assuming allocation function fails
    psensor = (struct psensor *)malloc(sizeof(struct psensor));
    ^
    ../src/lib/psensor.c:40:12: note: Assignment 'psensor=(struct psensor*)malloc(sizeof(struct psensor))', assigned value is 0
    psensor = (struct psensor *)malloc(sizeof(struct psensor));
    ^
    ../src/lib/psensor.c:62:2: note: Null pointer dereference
    psensor->alarm_low_threshold = 0;
    ^
    ../src/lib/psensor.c:64:2: warning: If memory allocation fails, then there is a possible null pointer dereference: psensor [nullPointerOutOfMemory]
    psensor->cb_alarm_raised = NULL;
    ^
    ../src/lib/psensor.c:40:36: note: Assuming allocation function fails
    psensor = (struct psensor *)malloc(sizeof(struct psensor));
    ^
    ../src/lib/psensor.c:40:12: note: Assignment 'psensor=(struct psensor*)malloc(sizeof(struct psensor))', assigned value is 0
    psensor = (struct psensor *)malloc(sizeof(struct psensor));
    ^
    ../src/lib/psensor.c:64:2: note: Null pointer dereference
    psensor->cb_alarm_raised = NULL;
    ^
    ../src/lib/psensor.c:65:2: warning: If memory allocation fails, then there is a possible null pointer dereference: psensor [nullPointerOutOfMemory]
    psensor->cb_alarm_raised_data = NULL;
    ^
    ../src/lib/psensor.c:40:36: note: Assuming allocation function fails
    psensor = (struct psensor *)malloc(sizeof(struct psensor));
    ^
    ../src/lib/psensor.c:40:12: note: Assignment 'psensor=(struct psensor*)malloc(sizeof(struct psensor))', assigned value is 0
    psensor = (struct psensor *)malloc(sizeof(struct psensor));
    ^
    ../src/lib/psensor.c:65:2: note: Null pointer dereference
    psensor->cb_alarm_raised_data = NULL;
    ^
    ../src/lib/psensor.c:66:2: warning: If memory allocation fails, then there is a possible null pointer dereference: psensor [nullPointerOutOfMemory]
    psensor->alarm_raised = 0;
    ^
    ../src/lib/psensor.c:40:36: note: Assuming allocation function fails
    psensor = (struct psensor *)malloc(sizeof(struct psensor));
    ^
    ../src/lib/psensor.c:40:12: note: Assignment 'psensor=(struct psensor*)malloc(sizeof(struct psensor))', assigned value is 0
    psensor = (struct psensor *)malloc(sizeof(struct psensor));
    ^
    ../src/lib/psensor.c:66:2: note: Null pointer dereference
    psensor->alarm_raised = 0;
    ^
    ../src/lib/psensor.c:68:2: warning: If memory allocation fails, then there is a possible null pointer dereference: psensor [nullPointerOutOfMemory]
    psensor->provider_data = NULL;
    ^
    ../src/lib/psensor.c:40:36: note: Assuming allocation function fails
    psensor = (struct psensor *)malloc(sizeof(struct psensor));
    ^
    ../src/lib/psensor.c:40:12: note: Assignment 'psensor=(struct psensor*)malloc(sizeof(struct psensor))', assigned value is 0
    psensor = (struct psensor *)malloc(sizeof(struct psensor));
    ^
    ../src/lib/psensor.c:68:2: note: Null pointer dereference
    psensor->provider_data = NULL;
    ^
    ../src/lib/psensor.c:69:2: warning: If memory allocation fails, then there is a possible null pointer dereference: psensor [nullPointerOutOfMemory]
    psensor->provider_data_free_fct = &free;
    ^
    ../src/lib/psensor.c:40:36: note: Assuming allocation function fails
    psensor = (struct psensor *)malloc(sizeof(struct psensor));
    ^
    ../src/lib/psensor.c:40:12: note: Assignment 'psensor=(struct psensor*)malloc(sizeof(struct psensor))', assigned value is 0
    psensor = (struct psensor *)malloc(sizeof(struct psensor));
    ^
    ../src/lib/psensor.c:69:2: note: Null pointer dereference
    psensor->provider_data_free_fct = &free;
    ^
    ../src/lib/psensor.c:168:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory]
    result[size] = sensor;
    ^
    ../src/lib/psensor.c:163:17: note: Assuming allocation function fails
    result = malloc((size + 1 + 1) * sizeof(struct psensor *));
    ^
    ../src/lib/psensor.c:163:17: note: Assignment 'result=malloc((size+1+1)*sizeof(struct psensor*))', assigned value is 0
    result = malloc((size + 1 + 1) * sizeof(struct psensor *));
    ^
    ../src/lib/psensor.c:168:2: note: Null pointer dereference
    result[size] = sensor;
    ^
    ../src/lib/psensor.c:169:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory]
    result[size + 1] = NULL;
    ^
    ../src/lib/psensor.c:163:17: note: Assuming allocation function fails
    result = malloc((size + 1 + 1) * sizeof(struct psensor *));
    ^
    ../src/lib/psensor.c:163:17: note: Assignment 'result=malloc((size+1+1)*sizeof(struct psensor*))', assigned value is 0
    result = malloc((size + 1 + 1) * sizeof(struct psensor *));
    ^
    ../src/lib/psensor.c:169:2: note: Null pointer dereference
    result[size + 1] = NULL;
    ^
    ../src/lib/psensor.c:457:3: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory]
    result[i] = sensors[i];
    ^
    ../src/lib/psensor.c:455:17: note: Assuming allocation function fails
    result = malloc((n+1) * sizeof(struct psensor *));
    ^
    ../src/lib/psensor.c:455:17: note: Assignment 'result=malloc((n+1)*sizeof(struct psensor*))', assigned value is 0
    result = malloc((n+1) * sizeof(struct psensor *));
    ^
    ../src/lib/psensor.c:457:3: note: Null pointer dereference
    result[i] = sensors[i];
    ^
    ../src/lib/psensor.c:458:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory]
    result[n] = NULL;
    ^
    ../src/lib/psensor.c:455:17: note: Assuming allocation function fails
    result = malloc((n+1) * sizeof(struct psensor *));
    ^
    ../src/lib/psensor.c:455:17: note: Assignment 'result=malloc((n+1)*sizeof(struct psensor*))', assigned value is 0
    result = malloc((n+1) * sizeof(struct psensor *));
    ^
    ../src/lib/psensor.c:458:2: note: Null pointer dereference
    result[n] = NULL;
    ^
    ../src/lib/ptime.c:57:15: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory]
    if (strftime(str, ISO8601_DATE_LENGTH + 1, "%F", tm))
    ^
    ../src/lib/ptime.c:55:14: note: Assuming allocation function fails
    str = malloc(ISO8601_DATE_LENGTH + 1);
    ^
    ../src/lib/ptime.c:55:14: note: Assignment 'str=malloc(ISO8601_DATE_LENGTH+1)', assigned value is 0
    str = malloc(ISO8601_DATE_LENGTH + 1);
    ^
    ../src/lib/ptime.c:57:15: note: Null pointer dereference
    if (strftime(str, ISO8601_DATE_LENGTH + 1, "%F", tm))
    ^
    ../src/lib/ptime.c:70:15: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory]
    if (strftime(str, ISO8601_TIME_LENGTH + 1, "%FT%T", tm))
    ^
    ../src/lib/ptime.c:68:14: note: Assuming allocation function fails
    str = malloc(ISO8601_TIME_LENGTH + 1);
    ^
    ../src/lib/ptime.c:68:14: note: Assignment 'str=malloc(ISO8601_TIME_LENGTH+1)', assigned value is 0
    str = malloc(ISO8601_TIME_LENGTH + 1);
    ^
    ../src/lib/ptime.c:70:15: note: Null pointer dereference
    if (strftime(str, ISO8601_TIME_LENGTH + 1, "%FT%T", tm))
    ^
    ../src/lib/pudisks2.c:202:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory]
    data->path = strdup(path);
    ^
    ../src/lib/pudisks2.c:201:16: note: Assuming allocation function fails
    data = malloc(sizeof(struct udisks_data));
    ^
    ../src/lib/pudisks2.c:201:16: note: Assignment 'data=malloc(sizeof(struct udisks_data))', assigned value is 0
    data = malloc(sizeof(struct udisks_data));
    ^
    ../src/lib/pudisks2.c:202:3: note: Null pointer dereference
    data->path = strdup(path);
    ^
    ../src/lib/slog.c:61:15: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory]
    if (strftime(str, 64, "%s", &lt))
    ^
    ../src/lib/slog.c:59:14: note: Assuming allocation function fails
    str = malloc(64);
    ^
    ../src/lib/slog.c:59:14: note: Assignment 'str=malloc(64)', assigned value is 0
    str = malloc(64);
    ^
    ../src/lib/slog.c:61:15: note: Null pointer dereference
    if (strftime(str, 64, "%s", &lt))
    ^
    ../src/main.c:406:4: warning: If memory allocation fails, then there is a possible null pointer dereference: sensors [nullPointerOutOfMemory]
    *sensors = NULL;
    ^
    ../src/main.c:405:19: note: Assuming allocation function fails
    sensors = malloc(sizeof(struct psensor *));
    ^
    ../src/main.c:405:19: note: Assignment 'sensors=malloc(sizeof(struct psensor*))', assigned value is 0
    sensors = malloc(sizeof(struct psensor *));
    ^
    ../src/main.c:406:4: note: Null pointer dereference
    *sensors = NULL;
    ^
    ../src/rsensor.c:74:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory]
    strcpy(ret, nurl);
    ^
    ../src/rsensor.c:72:14: note: Assuming allocation function fails
    ret = malloc(n);
    ^
    ../src/rsensor.c:72:14: note: Assignment 'ret=malloc(n)', assigned value is 0
    ret = malloc(n);
    ^
    ../src/rsensor.c:74:9: note: Null pointer dereference
    strcpy(ret, nurl);
    ^
    ../src/rsensor.c:75:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory]
    strcat(ret, URL_BASE_API_1_1_SENSORS);
    ^
    ../src/rsensor.c:72:14: note: Assuming allocation function fails
    ret = malloc(n);
    ^
    ../src/rsensor.c:72:14: note: Assignment 'ret=malloc(n)', assigned value is 0
    ret = malloc(n);
    ^
    ../src/rsensor.c:75:9: note: Null pointer dereference
    strcat(ret, URL_BASE_API_1_1_SENSORS);
    ^
    ../src/rsensor.c:145:4: warning: If memory allocation fails, then there is a possible null pointer dereference: sensors [nullPointerOutOfMemory]
    sensors[i] = s;
    ^
    ../src/rsensor.c:138:19: note: Assuming allocation function fails
    sensors = malloc((n + 1) * sizeof(struct psensor *));
    ^
    ../src/rsensor.c:138:19: note: Assignment 'sensors=malloc((n+1)*sizeof(struct psensor*))', assigned value is 0
    sensors = malloc((n + 1) * sizeof(struct psensor *));
    ^
    ../src/rsensor.c:145:4: note: Null pointer dereference
    sensors[i] = s;
    ^
    ../src/rsensor.c:148:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sensors [nullPointerOutOfMemory]
    sensors[n] = NULL;
    ^
    ../src/rsensor.c:138:19: note: Assuming allocation function fails
    sensors = malloc((n + 1) * sizeof(struct psensor *));
    ^
    ../src/rsensor.c:138:19: note: Assignment 'sensors=malloc((n+1)*sizeof(struct psensor*))', assigned value is 0
    sensors = malloc((n + 1) * sizeof(struct psensor *));
    ^
    ../src/rsensor.c:148:3: note: Null pointer dereference
    sensors[n] = NULL;
    ^
    ../src/rsensor.c:159:4: warning: If memory allocation fails, then there is a possible null pointer dereference: sensors [nullPointerOutOfMemory]
    *sensors = NULL;
    ^
    ../src/rsensor.c:158:19: note: Assuming allocation function fails
    sensors = malloc(sizeof(struct psensor *));
    ^
    ../src/rsensor.c:158:19: note: Assignment 'sensors=malloc(sizeof(struct psensor*))', assigned value is 0
    sensors = malloc(sizeof(struct psensor *));
    ^
    ../src/rsensor.c:159:4: note: Null pointer dereference
    *sensors = NULL;
    ^
    ../src/server/server.c:142:9: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory]
    strcpy(res, www_dir);
    ^
    ../src/server/server.c:140:14: note: Assuming allocation function fails
    res = malloc(strlen(www_dir)+strlen(p)+1);
    ^
    ../src/server/server.c:140:14: note: Assignment 'res=malloc(strlen(www_dir)+strlen(p)+1)', assigned value is 0
    res = malloc(strlen(www_dir)+strlen(p)+1);
    ^
    ../src/server/server.c:142:9: note: Null pointer dereference
    strcpy(res, www_dir);
    ^
    ../src/server/server.c:143:9: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory]
    strcat(res, p);
    ^
    ../src/server/server.c:140:14: note: Assuming allocation function fails
    res = malloc(strlen(www_dir)+strlen(p)+1);
    ^
    ../src/server/server.c:140:14: note: Assignment 'res=malloc(strlen(www_dir)+strlen(p)+1)', assigned value is 0
    res = malloc(strlen(www_dir)+strlen(p)+1);
    ^
    ../src/server/server.c:143:9: note: Null pointer dereference
    strcat(res, p);
    ^
    ../src/server/server.c:304:48: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory]
    return MHD_create_response_from_buffer(strlen(page),
    ^
    ../src/server/server.c:301:15: note: Assuming allocation function fails
    page = strdup(PAGE_NOT_FOUND);
    ^
    ../src/server/server.c:301:15: note: Assignment 'page=strdup(gettext("<html><body><p>Page not found - Go to <a href='/'>Main page</a></p></body>"))', assigned value is 0
    page = strdup(PAGE_NOT_FOUND);
    ^
    ../src/server/server.c:304:48: note: Null pointer dereference
    return MHD_create_response_from_buffer(strlen(page),
    ^ ../src/ui_appindicator.c:127:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sensors [nullPointerOutOfMemory]
    sensors[j] = NULL;
    ^
    ../src/ui_appindicator.c:108:18: note: Assuming allocation function fails
    sensors = malloc((n + 1) * sizeof(struct psensor *));
    ^
    ../src/ui_appindicator.c:108:18: note: Assignment 'sensors=malloc((n+1)*sizeof(struct psensor*))', assigned value is 0
    sensors = malloc((n + 1) * sizeof(struct psensor *));
    ^
    ../src/ui_appindicator.c:109:23: note: Assuming condition is false
    for (i = 0, j = 0; i < n; i++) {
    ^
    ../src/ui_appindicator.c:127:2: note: Null pointer dereference
    sensors[j] = NULL;
    ^
    ../src/ui_appindicator.c:128:2: warning: If memory allocation fails, then there is a possible null pointer dereference: menu_items [nullPointerOutOfMemory]
    menu_items[j] = NULL;
    ^
    ../src/ui_appindicator.c:106:21: note: Assuming allocation function fails
    menu_items = malloc((n + 1) * sizeof(GtkWidget *));
    ^
    ../src/ui_appindicator.c:106:21: note: Assignment 'menu_items=malloc((n+1)*sizeof(GtkWidget*))', assigned value is 0
    menu_items = malloc((n + 1) * sizeof(GtkWidget *));
    ^
    ../src/ui_appindicator.c:109:23: note: Assuming condition is false
    for (i = 0, j = 0; i < n; i++) {
    ^
    ../src/ui_appindicator.c:128:2: note: Null pointer dereference
    menu_items[j] = NULL;
    ^
    ../src/ui_sensorlist.c:265:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory]
    data->ui = ui;
    ^
    ../src/ui_sensorlist.c:264:15: note: Assuming allocation function fails
    data = malloc(sizeof(struct cb_data));
    ^
    ../src/ui_sensorlist.c:264:15: note: Assignment 'data=malloc(sizeof(struct cb_data))', assigned value is 0
    data = malloc(sizeof(struct cb_data));
    ^
    ../src/ui_sensorlist.c:265:2: note: Null pointer dereference
    data->ui = ui;
    ^
    ../src/ui_sensorlist.c:266:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory]
    data->sensor = sensor;
    ^
    ../src/ui_sensorlist.c:264:15: note: Assuming allocation function fails
    data = malloc(sizeof(struct cb_data));
    ^
    ../src/ui_sensorlist.c:264:15: note: Assignment 'data=malloc(sizeof(struct cb_data))', assigned value is 0
    data = malloc(sizeof(struct cb_data));
    ^
    ../src/ui_sensorlist.c:266:2: note: Null pointer dereference
    data->sensor = sensor;
    ^
    ../src/ui_sensorlist.c:275:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory]
    data->ui = ui;
    ^
    ../src/ui_sensorlist.c:274:15: note: Assuming allocation function fails
    data = malloc(sizeof(struct cb_data));
    ^
    ../src/ui_sensorlist.c:274:15: note: Assignment 'data=malloc(sizeof(struct cb_data))', assigned value is 0
    data = malloc(sizeof(struct cb_data));
    ^
    ../src/ui_sensorlist.c:275:2: note: Null pointer dereference
    data->ui = ui;
    ^
    ../src/ui_sensorlist.c:276:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory]
    data->sensor = sensor;
    ^
    ../src/ui_sensorlist.c:274:15: note: Assuming allocation function fails
    data = malloc(sizeof(struct cb_data));
    ^
    ../src/ui_sensorlist.c:274:15: note: Assignment 'data=malloc(sizeof(struct cb_data))', assigned value is 0
    data = malloc(sizeof(struct cb_data));
    ^
    ../src/ui_sensorlist.c:276:2: note: Null pointer dereference
    data->sensor = sensor;
    ^
    FAIL test-cppcheck.sh (exit status: 1)

    ============================================================================ Testsuite summary for psensor 1.2.1 ============================================================================
    # TOTAL: 6
    # PASS: 5
    # SKIP: 0
    # XFAIL: 0
    # FAIL: 1
    # XPASS: 0
    # ERROR: 0 ============================================================================ See tests/test-suite.log for debugging.
    Some test(s) failed. Please report this to [email protected],
    together with the test-suite.log file (gzipped) and your system
    information. Thanks. ============================================================================ make[4]: *** [Makefile:775: test-suite.log] Error 1
    make[4]: Leaving directory '/<<PKGBUILDDIR>>/tests'
    make[3]: *** [Makefile:910: check-TESTS] Error 2
    make[3]: *** Waiting for unfinished jobs....
    ../src/lib/slog.c:155: WARNING:UNNECESSARY_INT: Prefer 'long' over 'long int' as the int is unnecessary
    #155: FILE: ../src/lib/slog.c:155:
    + fprintf(file, "%ld", (long int)(tv.tv_sec - st));

    total: 0 errors, 1 warnings, 219 lines checked
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    ../src/lib/pgtop2.c:72: WARNING:UNNECESSARY_INT: Prefer 'unsigned long' over 'unsigned long int' as the int is unnecessary
    #72: FILE: ../src/lib/pgtop2.c:72:
    + unsigned long int used, dt;

    total: 0 errors, 1 warnings, 146 lines checked
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    ../src/server/sysinfo.c:40: WARNING:UNNECESSARY_INT: Prefer 'unsigned long' over 'unsigned long int' as the int is unnecessary
    #40: FILE: ../src/server/sysinfo.c:40:
    + unsigned long int used = 0;

    ../src/server/sysinfo.c:41: WARNING:UNNECESSARY_INT: Prefer 'unsigned long' over 'unsigned long int' as the int is unnecessary
    #41: FILE: ../src/server/sysinfo.c:41:
    + unsigned long int dt;

    total: 0 errors, 2 warnings, 184 lines checked
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    ../src/ui_unity.c:34: WARNING:LONG_LINE_COMMENT: line over 80 characters
    #34: FILE: ../src/ui_unity.c:34:
    + /* if the count is not set to non-0 value, it will not be visible */

    ../src/ui_unity.c:89: WARNING:LONG_LINE_COMMENT: line over 80 characters
    #89: FILE: ../src/ui_unity.c:89:
    + /* if the count is not set to non-0 value, it will not be visible */

    total: 0 errors, 2 warnings, 100 lines checked
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    find ../src -name \*.h -exec ./checkpatch.pl --ignore SPLIT_STRING,CONST_STRUCT,FUNCTION_ARGUMENTS,SPDX_LICENSE_TAG,EMBEDDED_FUNCTION_NAME --show-types -q --no-tree -emacs -f {} \;
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    No structs that should be const will be found - file '/<<PKGBUILDDIR>>/tests/const_structs.checkpatch': No such file or directory
    make[3]: Leaving directory '/<<PKGBUILDDIR>>/tests'
    make[2]: *** [Makefile:1017: check-am] Error 2
    make[2]: Leaving directory '/<<PKGBUILDDIR>>/tests'
    make[1]: *** [Makefile:531: check-recursive] Error 1
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_auto_test: error: make -j2 check "TESTSUITEFLAGS=-j2 --verbose" VERBOSE=1 returned exit code 2
    make: *** [debian/rules:7: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/202503/

    About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages.

    If you could not reproduce the bug please contact me privately, as I
    am willing to provide ssh access to a virtual machine where the bug is
    fully reproducible.

    If this is really a bug in one of the build-depends, please use
    reassign and add an affects on src:psensor, so that this is still
    visible in the BTS web page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Thu Mar 6 12:30:02 2025
    Processing control commands:

    tags -1 upstream
    Bug #1099267 [src:psensor] psensor: FTBFS: error: If memory allocation fail: pointer addition with NULL pointer.
    Ignoring request to alter tags of bug #1099267 to the same tags previously set

    --
    1099267: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099267
    Debian Bug Tracking System
    Contact [email protected] with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Thu Mar 6 12:30:02 2025
    Processing control commands:

    tags -1 upstream
    Bug #1099267 [src:psensor] psensor: FTBFS: error: If memory allocation fail: pointer addition with NULL pointer.
    Added tag(s) upstream.

    --
    1099267: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099267
    Debian Bug Tracking System
    Contact [email protected] with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Tue Mar 25 05:10:01 2025
    This is a multi-part message in MIME format...

    Your message dated Tue, 25 Mar 2025 04:04:56 +0000
    with message-id <[email protected]>
    and subject line Bug#1099267: fixed in psensor 1.2.1-3
    has caused the Debian Bug report #1099267,
    regarding psensor: FTBFS: error: If memory allocation fail: pointer addition with NULL pointer.
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected]
    immediately.)


    --
    1099267: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099267
    Debian Bug Tracking System
    Contact [email protected] with problems

    Received: (at submit) by bugs.debian.org; 1 Mar 2025 21:02:24 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-119.5 required=4.0 tests=BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,GMAIL,HAS_PACKAGE,
    RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE,USER_IN_DKIM_WELCOMELIST,
    USER_IN_DKIM_WHITELIST,X_DEBBUGS_CC autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 77; hammy, 150; neutral, 285; spammy,
    0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR, 0.000-+--H*F:U*sanvila, 0.000-+--H*rp:U*sanvila Return-path: <[email protected]>
    Received: from mitropoulos.debian.org ([2001:648