Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#17 eboard 0.9.5 - x86_64 GUI crash fix

closed-accepted
Felipe Bergo
None
7
2006-10-26
2006-08-04
Anonymous
No

When eboard is compiled on x86_64, trying to access
the preferences item, "find text", and most other GUI
dialogs cause eboard to crash.

The reason is that the eboard 0.9.5 code uses a
varargs function GTK::show to call gtk_widget_show.
The last argument should be the NULL pointer. The
developer uses the 0 synonym for NULL - which is
almost always correct, unless it is used as an unnamed
argument for a varargs function... Now 0 is expanded
to a 32-bit value, instead of a 64-bit one, crashing
eboard. The thread at http://gcc.gnu.org/ml/gcc/2004-
08/msg00973.htm is informative.

Discussion

  • x86_64 GUI crash fix for eboard 0.9.5

     
    Attachments
  • Logged In: NO

    I forgot to note the same problem also affects
    PatternBinder::add, both at 0.9.5 and at the CVS code. This
    is trivially fixed in the same manner as the patch below.

     
  • Logged In: NO

    I forgot to note the same problem also affects
    PatternBinder::add, both at 0.9.5 and at the CVS code. This
    is trivially fixed in the same manner as the patch below.

     
  • Felipe Bergo
    Felipe Bergo
    2006-10-26

    • priority: 5 --> 7
    • assigned_to: nobody --> bergo
    • status: open --> closed-accepted