>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:

Lars> | I understand that. What kind of info would be useful? It seems
Lars> that | some pointer somewhere points to nothing instead of a
Lars> stream.

Lars> Hmm... your are unable to debug the LyX you got as well?

I can debug, have a backtrace, and then I am not sure what it means.

Lars> what pointer?

I'll send as many gory details as I can, but not before next tuesday
unfortunately... In the meantime, look at the backtrace here:
http://marc.theaimsgroup.com/?l=lyx-devel&m=106640107014154&w=2

in frame #0, it seems that it is the 'this' which is wrong. frame #1
corresponds to the code below, where I highlighted line 265 with
<======. So a guess is that rdbuf() does not return a sane value.

Hope this helps.

JMarc


template <class _CharT, class _Traits>
void basic_ostream<_CharT, _Traits>::_M_put_nowiden(const _CharT* __s)
{
  sentry __sentry(*this);
  if (__sentry) {
    bool __failed = true;
    streamsize __n = _Traits::length(__s);
    streamsize __npad = this->width() > __n ? this->width() - __n : 0;

    _STLP_TRY {
      if (__npad == 0)
        __failed = this->rdbuf()->sputn(__s, __n) != __n; // <=============
      else if ((this->flags() & ios_base::adjustfield) == ios_base::left) {
        __failed = this->rdbuf()->sputn(__s, __n) != __n;
        __failed = __failed || 
                   this->rdbuf()->_M_sputnc(this->fill(), __npad) != __npad;
      }
      else {
        __failed = this->rdbuf()->_M_sputnc(this->fill(), __npad) != __npad;
        __failed = __failed || this->rdbuf()->sputn(__s, __n) != __n;
      }

      this->width(0);
    }
    _STLP_CATCH_ALL {
      this->_M_handle_exception(ios_base::badbit);
    }

    if (__failed)
      this->setstate(ios_base::failbit);
  }
}


Reply via email to