[R] gmp coredump - where to report?

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Sat Aug 17 03:05:01 CEST 2019

And for a different opinion...

Packages that allow the user to trigger core dumps (regardless of how) should be reported and fixed. It is the responsibility of the R package author to put in input validation to avoid such errors. You can read the description file via the maintainer function or on the CRAN website (cc'ed).

And not so much opinion as a quibble... in many compiled languages the term for a group of functions is a library... but in R a group of functions is a package and a group of installed packages in a specific directory layout is a library. This is clearly stated in the R Administration and Installation manual at the beginning of Section 6. Anyway, the lingo is that the package maintainer makes sure the C library is called with valid parameters, while the R user of that package installs the package in their user library and does not normally directly interact with the C library.

On August 16, 2019 4:34:31 PM PDT, Abby Spurdle <spurdle.a using gmail.com> wrote:
>(excerpts only)
>> I has trying to convert some raw values into a big number with the
>> library gmp.
>> However the library makes R crash. Two questions:
>> 1. Should I report the problem and if yes, where can I report the
>> 2. Is the source code for the R version of GMP somewhere on eg.
>github, so
>> I can
>> post an issue?
>> > library(gmp)
>> > as.bigz(charToRaw("a"))
>>  *** caught segfault ***
>> address 0x560e78e1dd4c, cause 'memory not mapped'
>No, you should not.
>According to the gmp package documentation for the function as.bigz():
>"either integer, numeric (i.e., double) or character vector"
>So, your *input is unsuitable*.
>In principle, it should give a better error message.
>However, the version number is < 1.
>So, I would wait for the authors to finish the package.
>However, it's possible they will read your post.
>It's not an R version of GMP, as such.
>It's an R library, with the same name, which calls the C library.
>The source code is on CRAN, as per usual.
>	[[alternative HTML version deleted]]
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

Sent from my phone. Please excuse my brevity.

More information about the R-help mailing list