After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 101152 - notebook page switch segfault
notebook page switch segfault
Status: RESOLVED NOTABUG
Product: gtkmm
Classification: Bindings
Component: general
2.0
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2002-12-13 18:27 UTC by Erik Ch. Ohrnberger
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Examples based program that demonstrates the notebook page switch calling get_current_page segfault bug. (2.55 KB, text/plain)
2002-12-13 18:29 UTC, Erik Ch. Ohrnberger
Details

Description Erik Ch. Ohrnberger 2002-12-13 18:27:40 UTC
A method is connected to the Gtk::Notebook.signal_switch_page() signal
slot.  In this method there is a call to Gtk::Notebook.get_current_page().
 It is in the call to get_current_page() that a segfault is generated, and
crashes the application.
Comment 1 Erik Ch. Ohrnberger 2002-12-13 18:29:39 UTC
Created attachment 12974 [details]
Examples based program that demonstrates the notebook page switch calling get_current_page segfault bug.
Comment 2 Daniel Elstner 2002-12-13 19:18:43 UTC
line 78:
    notebook->signal_switch_page().connect(
		slot( *notebook, &AppWindow::NotebookPageSwitch ));

can't work since *notebook is not of type AppWindow.  This construct
should trigger a compile-time error -- you need to upgrade to a recent
libsigc++ because of a bug that allowed this kind of type-unsafety.