Skip to content
Back to formatted view

Raw Message

Message-ID: <CAFQwRQz3j-PPFaRG_fVnHkH84761tz3hTFBxkQJ9gKLL0nCe8g@mail.gmail.com>
Date: 2019-07-08T15:48:58Z
From: Ralf Stubner
Subject: [R-pkg-devel] Reproducing address sanitizer errors
In-Reply-To: <CAFQwRQxXMazDvXH32fVmNXW=1A_RhBnHxyHiFxV7D5=hxgj11Q@mail.gmail.com>

On Sat, Jul 6, 2019 at 10:45 PM Ralf Stubner <ralf.stubner at gmail.com> wrote:
> I have been informed that the most recent upload of our swephR package
> triggers stack-buffer-overflow. See for example
> https://www.stats.ox.ac.uk/pub/bdr/memtests/clang-ASAN/swephR. The
> reason seems to be quite obvious (an array has been declared with 36
> instead of 37 elements), but I would like to be sure about that.
> However, I cannot reproduce the issue. I have tried
> "rhub::check_with_sanitizers()" as well as running the problematic
> code with RD from the docker image rocker/r-devel-ubsan-clang (with
> --cap-add SYS_PTRACE), but to no avail. Does any of you have some
> other possibility to reproduce ASAN errors?

The linked page is gone since I uploaded a fixed version of swephR today. In the
I was able to reproduce the error and check the  fix using
rocker/r-devel-ubsan-clang together with

export ASAN_OPTIONS='detect_leaks=0:detect_odr_violation=0'

cheerio
ralf