r-lib / archive

R bindings to libarchive, supporting a large variety of archive formats
https://archive.r-lib.org/
Other
145 stars 17 forks source link

UBSAN failure #55

Closed jimhester closed 3 years ago

jimhester commented 3 years ago
archive_write_files.cpp:46:45: runtime error: nan is outside the range of representable values of type 'int'
    #0 0x7f7007879af7 in archive_write_files_(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, cpp11::r_vector<cpp11::r_string>, int, cpp11::r_vector<int>, cpp11::r_vector<cpp11::r_string>, unsigned long) /data/gannet/ripley/R/packages/tests-clang-SAN/archive/src/archive_write_files.cpp:46:45
    #1 0x7f700787d399 in _archive_archive_write_files_ /data/gannet/ripley/R/packages/tests-clang-SAN/archive/src/cpp11.cpp:33:27
    #2 0x6dcbe1 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:617:17
    #3 0x8397be in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7684:21
    #4 0x81d3ae in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:740:8
    #5 0x8861b7 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
    #6 0x881b1f in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1836:16
    #7 0x841dff in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7096:12
    #8 0x81d3ae in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:740:8
    #9 0x8861b7 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
    #10 0x881b1f in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1836:16
    #11 0x81dde8 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:863:12
    #12 0x892236 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2982:8
    #13 0x81d798 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:815:12
    #14 0x8910d2 in do_begin /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2530:10
    #15 0x81d798 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:815:12
    #16 0x81d798 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:815:12
    #17 0x94d266 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264:2
    #18 0x9507b0 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:316:11
    #19 0x9505b9 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1129:5
    #20 0x4e247a in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5
    #21 0x7f7016993081 in __libc_start_main (/lib64/libc.so.6+0x27081)
    #22 0x43129d in _start (/data/gannet/ripley/R/R-clang-SAN/bin/exec/R+0x43129d)

SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior archive_write_files.cpp:46:45 in 

Please correct before 2021-10-29 to safely retain your package on CRAN.