octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: octave w/ fsanitize=undefined


From: Dmitri A. Sergatskov
Subject: Re: octave w/ fsanitize=undefined
Date: Fri, 14 Apr 2017 10:34:23 -0500



On Fri, Apr 14, 2017 at 9:46 AM, John W. Eaton <address@hidden> wrote:

Maybe that last one explains the io.tst failure when using LTO?

I'll try to check them out, but help is also welcome, especially in determining exactly which tests show the errors.


​Any ("easy") way to run a subtest? E.g. with demo one can do "demo plot 2" , but test does not seem to have this option.

Setting "more off" and running
test ../test/io.tst verbose I get:
<...>
​***** testif HAVE_ZLIB

 [save_status, save_files] = testls (0);
 [load_status, load_files] = testls (1);

 for f = [save_files, load_files]
   unlink (f{1});
 endfor

 assert (save_status && load_status);
../libinterp/corefcn/ls-mat5.cc:2418:12: runtime error: null pointer passed as argument 1, which is declared to never be null
../libinterp/corefcn/ls-mat5.cc:2419:13: runtime error: null pointer passed as argument 1, which is declared to never be null
***** testif HAVE_HDF5

 s8  =   int8 (fix ((2^8  - 1) * (rand (2, 2) - 0.5)));
 u8  =  uint8 (fix ((2^8  - 1) * (rand (2, 2) - 0.5)));
 s16 =  int16 (fix ((2^16 - 1) * (rand (2, 2) - 0.5)));
 u16 = uint16 (fix ((2^16 - 1) * (rand (2, 2) - 0.5)));
 s32 =  int32 (fix ((2^32 - 1) * (rand (2, 2) - 0.5)));
 u32 = uint32 (fix ((2^32 - 1) * (rand (2, 2) - 0.5)));
 s64 =  int64 (fix ((2^64 - 1) * (rand (2, 2) - 0.5)));
 u64 = uint64 (fix ((2^64 - 1) * (rand (2, 2) - 0.5)));
 s8t = s8; u8t = u8; s16t = s16; u16t = u16; s32t = s32; u32t = u32;
 s64t = s64; u64t = u64;
 h5file = tempname ();
 unwind_protect
   eval (sprintf ("save -hdf5 %s %s", h5file, "s8 u8 s16 u16 s32 u32 s64 u64"));
   clear s8 u8 s16 u16 s32 u32 s64 u64;
   load (h5file);
   assert (s8, s8t);
   assert (u8, u8t);
   assert (s16, s16t);
   assert (u16, u16t);
   assert (s32, s32t);
   assert (u32, u32t);
   assert (s64, s64t);
   assert (u64, u64t);
 unwind_protect_cleanup
   unlink (h5file);
 end_unwind_protect
***** test


​<...>​

 
Maybe we should add a buildbot configuration for this option to help us avoid creating these kinds of problems in the future.

jwe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]