oss-fuzz icon indicating copy to clipboard operation
oss-fuzz copied to clipboard

nss build failing

Open oliverchang opened this issue 9 years ago • 5 comments

See: https://oss-fuzz-build-logs.storage.googleapis.com/log-8e29de20-b393-4f32-a417-546aff9eee35.txt

Step #3: In file included from ../../fuzz/tls_client_target.cc:7:
Step #3: /usr/local/bin/../include/c++/v1/memory:2233:5: error: delete called on non-final 'DummyPrSocket' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
Step #3:     delete __ptr;
Step #3:     ^
Step #3: /usr/local/bin/../include/c++/v1/memory:2546:7: note: in instantiation of member function 'std::__1::default_delete<DummyPrSocket>::operator()' requested here
Step #3:       __ptr_.second()(__tmp);
Step #3:       ^
Step #3: /usr/local/bin/../include/c++/v1/memory:2500:19: note: in instantiation of member function 'std::__1::unique_ptr<DummyPrSocket, std::__1::default_delete<DummyPrSocket> >::reset' requested here
Step #3:   ~unique_ptr() { reset(); }
Step #3:                   ^
Step #3: ../../fuzz/tls_client_target.cc:103:34: note: in instantiation of member function 'std::__1::unique_ptr<DummyPrSocket, std::__1::default_delete<DummyPrSocket> >::~unique_ptr' requested here
Step #3:   std::unique_ptr<DummyPrSocket> socket(new DummyPrSocket(data, len));

@ttaubert mind taking a look?

oliverchang avatar Sep 25 '17 15:09 oliverchang

We didn't touch that code in a while. Was clang updated recently? Also, the attached log doesn't seem to contain the above snippet... looks like it's an ICU rather than an NSS build.

ttaubert avatar Sep 26 '17 08:09 ttaubert

Sorry, mispaste. Here is the correct log: https://oss-fuzz-build-logs.storage.googleapis.com/log-9242d45d-a57b-44bb-920a-a7f0e310361f.txt

We do regularly update our clang version, so this may be a new warning/error that was introduced. Would this be easy to fix?

oliverchang avatar Sep 26 '17 15:09 oliverchang

Yeah, that should be very easy to fix. Working on a patch.

ttaubert avatar Sep 27 '17 08:09 ttaubert

Should be fixed by cset 2564805e0d53.

ttaubert avatar Sep 27 '17 09:09 ttaubert

Yep, latest build succeeded. Thanks a lot for fixing!

oliverchang avatar Sep 27 '17 16:09 oliverchang