Public bug reported:

Hi,

I'm testing a crash so I came up with this small application:

#include <gtk/gtk.h>

int main( int   argc, char *argv[] )
{
    gtk_init (&argc, &argv);

    GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_signal_connect (GTK_OBJECT (window), "destroy", 
GTK_SIGNAL_FUNC(gtk_main_quit), NULL);

    GtkWidget *label = gtk_label_new("Referenced table has no candidate columns 
with a compatible type for group.groupcol.\nHint: source column has type 
VARCHAR(45),\nPK of referenced table is INT(11).");
    gtk_label_set_line_wrap (GTK_LABEL(label), true);

    gtk_container_add (GTK_CONTAINER (window), label);

    gtk_widget_show (label);
    gtk_widget_show  (window);

    gtk_main ();

    return 0;
}


I'm building using the following command:

> g++ main.cpp -o main `pkg-config --cflags --libs gtk+-2.0`

runnuing ./main will result in a crash

*** Error in `./main': malloc(): memory corruption: 0x0000000001b169b0 ***
Aborted (core dumped)

Core dump is attached.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libgtk2.0-0 2.24.23-0ubuntu1.1
ProcVersionSignature: Ubuntu 3.13.0-32.57-generic 3.13.11.4
Uname: Linux 3.13.0-32-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
CurrentDesktop: KDE
Date: Tue Aug 26 12:43:45 2014
InstallationDate: Installed on 2013-06-04 (448 days ago)
InstallationMedia: Kubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
SourcePackage: gtk+2.0
UpgradeStatus: Upgraded to trusty on 2014-07-02 (55 days ago)

** Affects: gtk+2.0 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

** Attachment added: "core dump"
   https://bugs.launchpad.net/bugs/1361621/+attachment/4187298/+files/core

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gtk+2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1361621

Title:
  gtk_label_set_line_wrap makes hello world application crash

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/1361621/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to