rtf import cores in latest build


Subject: rtf import cores in latest build
From: sam th (sam@bur-jud-118-039.rh.uchicago.edu)
Date: Mon Jan 31 2000 - 04:28:11 CST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is a problem, that, if replicable for others, should be fixed before
0.7.8 goes out. Any documnet, such as the one included here, causes
abiword to segfault. The cause seems too easy to find, so I'm suspicious
of my own explanation. But here goes:

In pt_PieceTable.cpp, in function _getStruxOfTypeFromPosition, on line 594
we declare a pointer to pf_Frag_Strux and initialize it to NULL. 4 lines
later, we attempt to use a method of that class. the code is:
        if (pfs->getStruxType() == pts)
Now, what getStruxType does is return the value of the member variable
m_StruxType. However, as the value of pfs has yet to change, this member
variable is still pointing somewhere in memory whose value we would rather
not know. This can be easily discerned from the stack trace in gdb. The
relevant line is:
pf_Frag_Strux::getStruxType(this=0x0)
Now comes the weird part. This started happening to me in the last 2-3
days. The file in question has not been changed since may.
The same is true for the next file back in the calling stack Additionally,
rtf is the only file type that this problem affects. This problem is not
in AbiWord 0.7.7
If anyone has any clue what has happend here, it would be appreciated.

           
                                     sam th
                                     sytobinh@uchicago.edu
                                        
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4lWPAt+kM0Mq9M/wRAqQoAJ9VqR4RN10Ufp3ZEkWgPGRgL74i/ACfXPQq
IJkdYqCBTM/dnVOQzpGz3Z0=
=9lvu
-----END PGP SIGNATURE-----




This archive was generated by hypermail 2b25 : Mon Jan 31 2000 - 04:28:18 CST