Skip to content

Crash during initial sync #114

Description

@anssi10

I just pulled Grive from git. During the initial sync I got a crash, details below. On two machines now, but different files. Also this leaves behind a local zero length file which grive tries to upload on the next run but crashes again.

sync ./TitaniumBackup-GNex/com.android.soundrecorder-20120617-205912.properties created in remote. creating local
exception: /work/src/grive/libgrive/src/protocol/AuthAgent.cc(174): Throw in function long int gr::AuthAgent::CheckHttpResponse(long int, const std::string&, const gr::http::Header&)
Dynamic exception type: N5boost16exception_detail10clone_implIN2gr4http5ErrorEEE
std::exception::what: std::exception
[PN2gr4http9HeaderTagE] = Authorization: Bearer ya29.AHES6ZR_WoqzIV4KV82ehEnhmxCIB5eW_9gTeUAs7ndBZmc
GData-Version: 3.0

[PN2gr4http6UrlTagE] = https://doc-14-28-docs.googleusercontent.com/docs/securesc/bqbu31dha62ggj5a9uc5okdh17n97aba/841lsnoouso7f3gimmvhrjr8jlc40fq6/1343995200000/02482661572964810104/02482661572964810104/0ByZZWNdPgCdeaGVYYnJ3OHBYaTA?h=16653014193614665626&e=download&gd=true
[PN2gr4http15HttpResponseTagE] = 404
[PN2gr4expt12BacktraceTagE] = #0 0x4cb6a3 ./grive gr::Exception::Exception()
#1 0x4b49ab ./grive gr::http::Error::Error()
#2 0x4c101a ./grive gr::AuthAgent::CheckHttpResponse(long, std::string const&, gr::http::Header const&)
#3 0x4c0a3c ./grive gr::AuthAgent::Get(std::string const&, gr::http::Receivable*, gr::http::Header const&)
#4 0x4a87e6 ./grive gr::Resource::Download(gr::http::Agent*, boost::filesystem::basic_path<std::string, boost::filesystem::path_traits> const&) const
#5 0x4a7bae ./grive gr::Resource::SyncSelf(gr::http::Agent*, gr::Json const&)
#6 0x4a73ba ./grive gr::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#7 0x4ae5f5 ./grive boost::mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>::operator()(gr::Resource, gr::http::Agent_, gr::DateTime&, gr::Json const&) const
#8 0x4ad6ff ./grive void boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>, boost::_bi::list1gr::Resource*& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>&, boost::_bi::list1gr::Resource*&&, int)
#9 0x4ac95a ./grive void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > >::operator()gr::Resource*(gr::Resource*&)
#10 0x4ab4c3 ./grive boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > > std::for_each<__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > > >(__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, __gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::bi::valuegr::Json > >)
#11 0x4a74be ./grive gr::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#12 0x4ae5f5 ./grive boost::mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>::operator()(gr::Resource, gr::http::Agent
, gr::DateTime&, gr::Json const&) const
#13 0x4ad6ff ./grive void boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>, boost::_bi::list1gr::Resource*& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>&, boost::_bi::list1gr::Resource*&&, int)
#14 0x4ac95a ./grive void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > >::operator()gr::Resource*(gr::Resource*&)
#15 0x4ab4c3 ./grive boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > > std::for_each<__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > > >(__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, __gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > >)
#16 0x4a74be ./grive gr::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#17 0x4913f2 ./grive gr::State::Sync(gr::http::Agent*, gr::Json const&)
#18 0x498fd2 ./grive gr::Drive::Update()
#19 0x477bd9 ./grive Main(int, char**)
#20 0x477dff ./grive main
#21 0x7f8dc2ac6c4d /lib/libc.so.6 __libc_start_main
#22 0x4763b9 ./grive

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions