KCursor::autohide

John Firebaugh jfirebaugh at kde.org
Tue Apr 29 06:23:33 BST 2003


On Sunday 27 April 2003 02:15 pm, Sven Lueppken wrote:
> It seems that the crash only appears when compiler optimizations are
> enabled (in my case -O3 -march=athlon). It doesn't matter if the compiler
> being used is gcc 3.2 (SuSE 8.1) or gcc 3.3 (SuSE 8.2). The only choice I
> have at the moment is to use version 1.43 of kcursor.cpp and version 1.7 of
> kcursor_private.h (well, or to disable optimizations...).

I can't reproduce it even with -03 -march=athlon. I'm really suspicious of the 
backtrace. The relevant line is

Q_ASSERT( filter != NULL );

Q_ASSERT is #defined as:

#if !defined(Q_ASSERT)
#  if defined(QT_CHECK_STATE)
#    if defined(QT_FATAL_ASSERT)
#      define Q_ASSERT(x)  ((x) ? (void)0 : qFatal("ASSERT: \"%s\" in %s 
(%d)",#x,__FILE__,__LINE__))
#    else
#      define Q_ASSERT(x)  ((x) ? (void)0 : qWarning("ASSERT: \"%s\" in %s 
(%d)",#x,__FILE__,__LINE__))
#    endif
#  else
#    define Q_ASSERT(x)
#  endif
#endif

Do you have QT_FATAL_ASSERT defined? Do you get the assertion message before 
the crash? You tried a fresh build, right? Anyone else have this problem?

> Is there anything _we_ can do about this or have the gcc guys to be bugged?

Valgrind?

-John




More information about the kde-core-devel mailing list