Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-11 Thread Kevin Wolf
Am 10.03.2014 um 19:21 hat Markus Armbruster geschrieben: > Peter Maydell writes: > > > On 10 March 2014 13:36, Markus Armbruster wrote: > >> Peter Maydell writes: > >> Turns out my clang installation doesn't support -fsanitize=undefined: it > >> lacks libclang_rt.san-x86_64.a. > >> > >> Test w

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Markus Armbruster
Peter Maydell writes: > On 10 March 2014 13:36, Markus Armbruster wrote: >> Peter Maydell writes: >> Turns out my clang installation doesn't support -fsanitize=undefined: it >> lacks libclang_rt.san-x86_64.a. >> >> Test works fine without -fsanitize=undefined. I set a breakpoint on >> visit_ty

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Peter Maydell
On 10 March 2014 13:36, Markus Armbruster wrote: > Peter Maydell writes: > Turns out my clang installation doesn't support -fsanitize=undefined: it > lacks libclang_rt.san-x86_64.a. > > Test works fine without -fsanitize=undefined. I set a breakpoint on > visit_type_UserDefA_fields, and there's

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Markus Armbruster
Peter Maydell writes: > On 10 March 2014 12:21, Markus Armbruster wrote: >> My local clang doesn't complain. May I have your clang version, exact >> invocation and output? > > clang version 3.3 (tags/RELEASE_33/final) > > mkdir build/clang > (cd build/clang && '../../configure' '--cc=clang' '--

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Peter Maydell
On 10 March 2014 12:21, Markus Armbruster wrote: > My local clang doesn't complain. May I have your clang version, exact > invocation and output? clang version 3.3 (tags/RELEASE_33/final) mkdir build/clang (cd build/clang && '../../configure' '--cc=clang' '--cxx=clang++' '--enable-gtk' '--targe

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Markus Armbruster
Peter Maydell writes: > I've noticed that the tests/test-qapi-visit.c code provokes the following > complaint from clang's -fsanitize=undefined undefined-behaviour > checker when you run 'make check': > > tests/test-qapi-visit.c:462:33: runtime error: member access within > null pointer of type '

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Markus Armbruster
Peter Maydell writes: > On 8 March 2014 12:39, Peter Maydell wrote: >> I've noticed that the tests/test-qapi-visit.c code provokes the following >> complaint from clang's -fsanitize=undefined undefined-behaviour >> checker when you run 'make check': >> >> tests/test-qapi-visit.c:462:33: runtime

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-08 Thread Peter Maydell
On 8 March 2014 12:39, Peter Maydell wrote: > I've noticed that the tests/test-qapi-visit.c code provokes the following > complaint from clang's -fsanitize=undefined undefined-behaviour > checker when you run 'make check': > > tests/test-qapi-visit.c:462:33: runtime error: member access within > n

[Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-08 Thread Peter Maydell
I've noticed that the tests/test-qapi-visit.c code provokes the following complaint from clang's -fsanitize=undefined undefined-behaviour checker when you run 'make check': tests/test-qapi-visit.c:462:33: runtime error: member access within null pointer of type 'UserDefA' (aka 'struct UserDefA')