On 6 September 2021 at 00:46, Simon McVittie wrote:
| Source: rgtk2
| Version: 2.20.36-2
| Severity: serious
| Tags: ftbfs bookworm sid
| Justification: fails to build from source (but built successfully in the past)
| X-Debbugs-Cc: debian-s...@lists.debian.org
| User: debian-s...@lists.debian.org
| Usertags: s390x
| 
| rgtk2 failed to build on s390x when binNMU'd recently, with what appears
| to be a smoke-test failure during installation:

Hm. Please explain what a smoke-test failure is.

(What we see below is the standard R behaviour of loading a package as the
finaly step of building it. A segfault here usually means /some/ API along
the way changed :-/ and is rare as a one-arch-only occurrence.

Dirk

| > make[1]: Leaving directory '/<<PKGBUILDDIR>>/src'
| > installing to 
/<<PKGBUILDDIR>>/debian/r-cran-rgtk2/usr/lib/R/site-library/00LOCK-rgtk2-2.20.36/00new/RGtk2/libs
| > ** R
| > ** demo
| > ** inst
| > ** byte-compile and prepare package for lazy loading
| > ** help
| > *** installing help indices
| > ** building package indices
| > ** testing if installed package can be loaded from temporary location
| > 
| >  *** caught segfault ***
| > address (nil), cause 'memory not mapped'
| > 
| > Traceback:
| >  1: gtkInit(args)
| >  2: fun(libname, pkgname)
| >  3: doTryCatch(return(expr), name, parentenv, handler)
| >  4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
| >  5: tryCatchList(expr, classes, parentenv, handlers)
| >  6: tryCatch(fun(libname, pkgname), error = identity)
| >  7: runHook(".onLoad", env, package.lib, package)
| >  8: loadNamespace(package, lib.loc)
| >  9: doTryCatch(return(expr), name, parentenv, handler)
| > 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
| > 11: tryCatchList(expr, classes, parentenv, handlers)
| > 12: tryCatch({    attr(package, "LibPath") <- which.lib.loc    ns <- 
loadNamespace(package, lib.loc)    env <- attachNamespace(ns, pos = pos, deps, 
exclude, include.only)}, error = function(e) {    P <- if (!is.null(cc <- 
conditionCall(e)))         paste(" in", deparse(cc)[1L])    else ""    msg <- 
gettextf("package or namespace load failed for %s%s:\n %s",         
sQuote(package), P, conditionMessage(e))    if (logical.return && !quietly)     
    message(paste("Error:", msg), domain = NA)    else stop(msg, call. = FALSE, 
domain = NA)})
| > 13: library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return 
= TRUE)
| > 14: withCallingHandlers(expr, packageStartupMessage = function(c) 
tryInvokeRestart("muffleMessage"))
| > 15: suppressPackageStartupMessages(library(pkg_name, lib.loc = lib,     
character.only = TRUE, logical.return = TRUE))
| > 16: doTryCatch(return(expr), name, parentenv, handler)
| > 17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
| > 18: tryCatchList(expr, classes, parentenv, handlers)
| > 19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if 
(!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))         
    call <- sys.call(-4L)        dcall <- deparse(call)[1L]        prefix <- 
paste("Error in", dcall, ": ")        LONG <- 75L        sm <- 
strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = 
"w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + 
nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if 
(w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- 
"Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    
.Internal(seterrmessage(msg[1L]))    if (!silent && 
isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)     
   .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = 
"try-error", condition = e))})
| > 20: try(suppressPackageStartupMessages(library(pkg_name, lib.loc = lib,     
character.only = TRUE, logical.return = TRUE)))
| > 21: tools:::.test_load_package("RGtk2", 
"/<<PKGBUILDDIR>>/debian/r-cran-rgtk2/usr/lib/R/site-library/00LOCK-rgtk2-2.20.36/00new")
| > An irrecoverable exception occurred. R is aborting now ...
| > Segmentation fault
| > ERROR: loading failed
| > * removing 
‘/<<PKGBUILDDIR>>/debian/r-cran-rgtk2/usr/lib/R/site-library/RGtk2’
| > dh_auto_install: error: R CMD INSTALL -l 
/<<PKGBUILDDIR>>/debian/r-cran-rgtk2/usr/lib/R/site-library --clean . 
"--built-timestamp='Thu, 02 Sep 2021 09:20:27 +0000'" returned exit code 1

-- 
https://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

Reply via email to