[crash] KEditor::Document

Eray Ozkural (exa) erayo at cs.bilkent.edu.tr
Mon Jul 30 13:28:59 UTC 2001


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

I changed lib/interfaces/keditor because there seemed to be a build problem:

After I cvs up'd the build system seemed to prefer separate compilation of 
cpp and moc's so I changed the header files which didn't reflect that. (The 
build is still a bit odd, duplicate files are being generated) I'm attaching 
a summary of (a simulation of) what happened before I removed the includes. 
The fix removes that build failure.

Unfortunately, there is a crash a crash right now at cursor_iface.cpp when 
using  KEditor::CursorDocumentIface::interface
I'm a bit sleepy at the time so I may have missed a point. Please comment, 
but it doesn't seem that my change has caused it;  code borks at
  return 
static_cast<KEditor::CursorDocumentIface*>(doc->queryInterface("KEditor::CursorDocumentIface"));

which should be type safe :) I didn't see anything that requires suspicion, 
but didn't check where a faulty doc might have come in. The crash is easy to 
reproduce. Open gideon, go to the documentation tree and choose a document to 
view.

Thanks,

- -----

c++ -shared -nostdlib /usr/lib/crti.o 
/usr/lib/gcc-lib/i386-linux/2.95.4/crtbeginS.o  .libs/interface.o 
.libs/editor.o .libs/clipboard_iface.o .libs/undo_iface.o 
.libs/cursor_iface.o .libs/edit_iface.o .libs/status_iface.o 
.libs/debug_iface.o .libs/KEditorIface.o .libs/KEditorEditIface.o 
.libs/KEditorClipboardIface.o .libs/KEditorCursorIface.o 
.libs/KEditorDebugIface.o .libs/KEditorStatusIface.o .libs/KEditorUndoIface.o 
.libs/codecompletion_iface.o .libs/KEditorIface_skel.o 
.libs/KEditorEditIface_skel.o .libs/KEditorClipboardIface_skel.o 
.libs/KEditorCursorIface_skel.o .libs/KEditorDebugIface_skel.o 
.libs/KEditorStatusIface_skel.o .libs/KEditorUndoIface_skel.o 
.libs/KEditorIface.moc.o .libs/KEditorCursorIface.moc.o 
.libs/cursor_iface.moc.o .libs/codecompletion_iface.moc.o 
.libs/undo_iface.moc.o .libs/editor.moc.o .libs/edit_iface.moc.o 
.libs/KEditorStatusIface.moc.o .libs/interface.moc.o .libs/debug_iface.moc.o 
.libs/KEditorEditIface.moc.o .libs/KEditorUndoIface.moc.o 
.libs/clipboard_iface.moc.o .libs/KEditorClipboardIface.moc.o 
.libs/gotoline.moc.o .libs/KEditorDebugIface.moc.o .libs/status_iface.moc.o 
.libs/gotoline.o .libs/libkeditorinterface_la_meta_unload.o  
- -L/usr/lib/gcc-lib/i386-linux/2.95.4 -lstdc++ -lm -lc -lgcc 
/usr/lib/gcc-lib/i386-linux/2.95.4/crtendS.o /usr/lib/crtn.o  -Wl,-soname 
- -Wl,libkeditorinterface.so.0 -o .libs/libkeditorinterface.so.0.0.0
.libs/cursor_iface.moc.o: In function 
`KEditor::CursorDocumentIface::metaObject(void) const':
/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.moc.cpp(.text+0x0): 
multiple definition of `KEditor::CursorDocumentIface::className(void) const'
.libs/cursor_iface.o(.text+0x224):/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.cpp: 
first defined here
.libs/cursor_iface.moc.o: In function 
`KEditor::CursorDocumentIface::metaObject(void) const':
/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.moc.cpp(.data+0x0): 
multiple definition of `KEditor::CursorDocumentIface::metaObj'
.libs/cursor_iface.o(.data+0x0):/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.cpp: 
first defined here
.libs/cursor_iface.moc.o: In function 
`KEditor::CursorDocumentIface::initMetaObject(void)':
/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.moc.cpp(.text+0x1c): 
multiple definition of `KEditor::CursorDocumentIface::initMetaObject(void)'
.libs/cursor_iface.o(.text+0x240):/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.moc: 
first defined here
/usr/bin/ld: Warning: size of symbol 
`KEditor::CursorDocumentIface::initMetaObject(void)' changed from 119 to 115 
in .libs/cursor_iface.moc.o
.libs/cursor_iface.moc.o: In function 
`KEditor::CursorDocumentIface::staticMetaObject(void)':
/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.moc.cpp(.text+0x110): 
multiple definition of `KEditor::CursorDocumentIface::staticMetaObject(void)'
.libs/cursor_iface.o(.text+0x338):/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.moc: 
first defined here
/usr/bin/ld: Warning: size of symbol 
`KEditor::CursorDocumentIface::staticMetaObject(void)' changed from 461 to 
468 in .libs/cursor_iface.moc.o
.libs/cursor_iface.moc.o: In function `KEditor::CursorDocumentIface::tr(char 
const *)':
/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.moc.cpp(.text+0x90): 
multiple definition of `KEditor::CursorDocumentIface::tr(char const *)'
.libs/cursor_iface.o(.text+0x2b8):/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.moc: 
first defined here
.libs/cursor_iface.moc.o: In function `KEditor::CursorDocumentIface::tr(char 
const *, char const *)':
/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.moc.cpp(.text+0xd0): 
multiple definition of `KEditor::CursorDocumentIface::tr(char const *, char 
const *)'
.libs/cursor_iface.o(.text+0x2f8):/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.moc: 
first defined here
.libs/cursor_iface.moc.o: In function 
`KEditor::CursorDocumentIface::cursorPositionChanged(KEditor::Document *, 
int, int)':
/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.moc.cpp(.text+0x2e4): 
multiple definition of 
`KEditor::CursorDocumentIface::cursorPositionChanged(KEditor::Document *, 
int, int)'
.libs/cursor_iface.o(.text+0x508):/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor/cursor_iface.moc: 
first defined here
/usr/bin/ld: Warning: size of symbol 
`KEditor::CursorDocumentIface::cursorPositionChanged(KEditor::Document *, 
int, int)' changed from 645 to 633 in .libs/cursor_iface.moc.o
collect2: ld returned 1 exit status
make[5]: *** [libkeditorinterface.la] Error 1
make[5]: Leaving directory 
`/home/exa/devel/hacking/gideon-3.0/lib/interfaces/keditor'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/exa/devel/hacking/gideon-3.0/lib/interfaces'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/exa/devel/hacking/gideon-3.0/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/exa/devel/hacking/gideon-3.0'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/home/exa/devel/hacking/gideon-3.0'
make: *** [all] Error 2



- -- 
Eray Ozkural (exa) <erayo at cs.bilkent.edu.tr>
Comp. Sci. Dept., Bilkent University, Ankara
www: http://www.cs.bilkent.edu.tr/~erayo
GPG public key fingerprint: 360C 852F 88B0 A745 F31B  EA0F 7C07 AE16 874D 539C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7ZWEbfAeuFodNU5wRArHrAJ9ifRm7wd4lAw2Y5u66I9liCMQeggCffqVQ
bqhR+YhvzmCosEIMxNDGXKY=
=ao7c
-----END PGP SIGNATURE-----

-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop-devel mailing list