Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Terminating with unexpected exception #358

Closed
@ruslo

Description

@ruslo

Examplesimple_wget crashing from time to time with error:
boost thread: trying joining itself: Resource deadlock avoided

How to reproduce

I turn off wi-fi and run command:
simple_wget https://example.com/some/archive.tar.gz

Usually command exits with code 1 and message:

Saving to: archive.tar.gzHost not found (authoritative)

which is expected and good, but sometimes application crash in libc++ with message:

libc++abi.dylib: terminating with unexpected exception of type boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::thread_resource_error> >: boost thread: trying joining itself: Resource deadlock avoidedProcess 75882 stopped

Backtrace can be foundhere

I can guess that exception which is thrown fromjoin triggerstd::terminate
because destructor hasnothrow type (async_impl.h):

~async_client()throw ()      {        sentinel_.reset();if (lifetime_thread_.get()) {          lifetime_thread_->join();// BOOM!          lifetime_thread_.reset();        }      }

Some tests

  • 5 crash from 1000 run
  • 36 crash from 10000 run

Environment

  • Mac OS X 10.9.1, boost 1.55 (debug build with libc++), openssl (system)
  • iOS, boost 1.55 (debug build with libc++), openssl 1.0.1e
  • I'm usingcpp-netlib-0.10.1, butcpp-netlib-0.11.0-rc3 has same behaviour

Also I've tried it on my virtual machine with Mac OS X 10.8.5 (which not using wi-fi),
there isno crashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp