kisli / vmime

VMime Mail Library
http://www.vmime.org
GNU General Public License v3.0
272 stars 109 forks source link

Segfault on vs2014 using messageParser #123

Open fivethreeo opened 8 years ago

fivethreeo commented 8 years ago

Using the code below the program stops with without catching any error just get a a windows error that the program has stopped responding when parsing a large string (700k).

If I first pass it a small string (40k) and then pass it the large string it works and keeps working with large strings.

Running multithreaded statically linked on a async c++ http server using icu.

        vmime::utility::inputStreamAdapter is(request->content);
        vmime::string stringdata;
        vmime::utility::outputStreamStringAdapter os(stringdata);
        vmime::utility::bufferedStreamCopy(is , os);
        vmime::shared_ptr<vmime::message> msg = vmime::make_shared<vmime::message>();
        msg->parse(stringdata);       

        try
        {
            vmime::messageParser mp(msg);
        }
        catch(...)
       {
            cerr << boost::current_exception_diagnostic_information() << std::endl;
       }
fivethreeo commented 8 years ago

Seems to be a stale .lib closing

Mindful commented 8 years ago

Do you have any more info about the specific location of the segfault? I'm having what I think is a related issue.

Edit: Tracked down my issue, in I believe it was unrelated.