Ubuntu 11.10 64-bit/C/GTK 3 menu crash

Bug #946886 reported by anewguy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gtk+3.0 (Ubuntu)
New
Undecided
Unassigned

Bug Description

I have a C program I'm working on that uses GTK. 4 options - Create New File, Open Existing File, Save File and Quit were originally just gtk buttons on the window - short cut while initially coding. Now it's improved to the point that the few things I have working so far need to go out for testing to the users that wanted it. Well, in order to clean it up I made those 4 options into a "File" submenu on a menubar. The Create New File option, besides setting an internal variable, uses a gtk_dialog to send the message

New CSS File Will Be Created With Your Changes
When You Save The File

There is newline after "Changes" - a "\n" in C, to force this to a multi-line display.

Without the newline, the message was still wrapping to 2 lines.

The message is displayed, and returns from the call to the common function I use that contains the dialogbox.

As soon as the function "returns", so control is passed back to the menubar handling (e.g., code I didn't write) the entire process aborts. I have tried this without a multi-line message and it works - it only aborts when the message text was multi-line.

I have screen captures and the source available, including the traceback, etc., in the terminal window.

I am able to work around this for now, but wonder why this aborts. Everything I've seen indicates this can be a multi-line text string.

Thanks in advance,
Dave ;)

Tags: bot-comment
Revision history for this message
anewguy (anewguy) wrote :
Download full text (15.4 KiB)

dave@asus-desktop:~/gnome_shell_css$ ./gscedit
*** stack smashing detected ***: ./gscedit terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f1f21e187f7]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x0)[0x7f1f21e187c0]
./gscedit[0x401e71]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x154)[0x7f1f222ef0a4]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2102a)[0x7f1f2230102a]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x851)[0x7f1f2230a6b1]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f1f2230a852]
/usr/lib/libdbusmenu-gtk3.so.4(+0xd2d8)[0x7f1f193bd2d8]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x154)[0x7f1f222ef0a4]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2102a)[0x7f1f2230102a]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x851)[0x7f1f2230a6b1]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f1f2230a852]
/usr/lib/libdbusmenu-glib.so.4(dbusmenu_menuitem_handle_event+0x119)[0x7f1f19198b59]
/usr/lib/libdbusmenu-glib.so.4(+0xa137)[0x7f1f1919a137]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4623b)[0x7f1f1fdfe23b]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x1dd)[0x7f1f1fdfca5d]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x45258)[0x7f1f1fdfd258]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x162)[0x7f1f1fdfd792]
/usr/lib/libgtk-3.so.0(gtk_main+0x8d)[0x7f1f22909edd]
./gscedit[0x40f796]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f1f21d4130d]
./gscedit[0x401c29]
======= Memory map: ========
00400000-00418000 r-xp 00000000 08:01 53224585 /home/dave/gnome_shell_css/gscedit
00617000-00618000 r--p 00017000 08:01 53224585 /home/dave/gnome_shell_css/gscedit
00618000-00619000 rw-p 00018000 08:01 53224585 /home/dave/gnome_shell_css/gscedit
0082b000-00add000 rw-p 00000000 00:00 0 [heap]
7f1f12428000-7f1f1243d000 r-xp 00000000 08:12 397235 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f1f1243d000-7f1f1263c000 ---p 00015000 08:12 397235 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f1f1263c000-7f1f1263d000 r--p 00014000 08:12 397235 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f1f1263d000-7f1f1263e000 rw-p 00015000 08:12 397235 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f1f12640000-7f1f12791000 r-xp 00000000 08:12 1441890 /usr/lib/libxml2.so.2.7.8
7f1f12791000-7f1f12990000 ---p 00151000 08:12 1441890 /usr/lib/libxml2.so.2.7.8
7f1f12990000-7f1f12998000 r--p 00150000 08:12 1441890 /usr/lib/libxml2.so.2.7.8
7f1f12998000-7f1f1299a000 rw-p 00158000 08:12 1441890 /usr/lib/libxml2.so.2.7.8
7f1f1299a000-7f1f1299b000 rw-p 00000000 00:00 0
7f1f129a0000-7f1f129d6000 r-xp 00000000 08:12 1444673 /usr/lib/libcroco-0.6.so.3.0.1
7f1f129d6000-7f1f12bd5000 ---p 00036000 08:12 1444673 /usr/lib/libcroco-0.6.so.3.0.1
7f1f12bd5000-7f1f12bd6000 r--p 00035000 08:12 1444673 /...

Revision history for this message
anewguy (anewguy) wrote :

Woops - it's not a dialog box - I changed it to a message dialog when I first started having the error, but none the less the error is still there.

Revision history for this message
anewguy (anewguy) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/946886/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
anewguy (anewguy) wrote :

I was requested to associate a package with this. Since it's an application I am writing that uses GTK3, and the problem seems to be internal to GTK3 handling of a menu item, I must therefore assume it must be in libgtk-3-dev since it provides the headers, functions, etc., for GTK developers.

affects: ubuntu → gtk+3.0 (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.