Last active
August 29, 2015 14:19
-
-
Save yusukemihara/c16abcc10bf905d9ebb7 to your computer and use it in GitHub Desktop.
gtk application abort with fcitx by over max file descriptor limit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mihara@trusty48:~/samples/gtk3$ LANG=C ./checkfcitx.c | |
| ./checkfcitx.c: In function 'main': | |
| ./checkfcitx.c:25:3: warning: 'gtk_vbox_new' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkvbox.h:61): Use 'gtk_box_new' instead [-Wdeprecated-declarations] | |
| vbox = gtk_vbox_new(FALSE,1); | |
| ^ | |
| process 8356: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/etc/machine-id": Too many open files | |
| See the manual page for dbus-uuidgen to correct this issue. | |
| process 8356: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/etc/machine-id": Too many open files | |
| See the manual page for dbus-uuidgen to correct this issue. | |
| ... omission |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #if 0 | |
| #!/bin/bash | |
| src=$0 | |
| obj=${src%.*} | |
| gcc -g -Wl,--no-as-needed `pkg-config --cflags --libs gtk+-3.0 glib-2.0 gmodule-2.0 gmodule-export-2.0` -o $obj $src | |
| $obj | |
| exit | |
| #endif | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <gtk/gtk.h> | |
| int | |
| main(int argc, char *argv[]) | |
| { | |
| GtkWidget *window1,*entry,*vbox; | |
| int i; | |
| gtk_init(&argc,&argv); | |
| window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); | |
| gtk_window_set_title (GTK_WINDOW (window1), "window1"); | |
| vbox = gtk_vbox_new(FALSE,1); | |
| gtk_container_add (GTK_CONTAINER (window1), vbox); | |
| for(i=0;i<1024;i++) { | |
| entry = gtk_entry_new(); | |
| gtk_box_pack_start(GTK_BOX(vbox),entry,TRUE,TRUE,1); | |
| } | |
| gtk_widget_show_all(window1); | |
| gtk_window_set_default_size(GTK_WINDOW(window1),300,400); | |
| gtk_main(); | |
| return 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... omission | |
| open("/var/lib/dbus/machine-id", O_RDONLY) = 1023 | |
| fstat(1023, {st_mode=S_IFREG|0644, st_size=33, ...}) = 0 | |
| read(1023, "d0d119197fa8be2c88ad9c3453507fec"..., 33) = 33 | |
| close(1023) = 0 | |
| open("/home/mihara/.config/fcitx/dbus/d0d119197fa8be2c88ad9c3453507fec-0", O_RDONLY) = 1023 | |
| fstat(1023, {st_mode=S_IFREG|0664, st_size=81, ...}) = 0 | |
| mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd1b8000000 | |
| read(1023, "unix:abstract=/tmp/dbus-U8We7gj6"..., 4096) = 81 | |
| read(1023, "", 4096) = 0 | |
| close(1023) = 0 | |
| munmap(0x7fd1b8000000, 4096) = 0 | |
| kill(1792, SIG_0) = 0 | |
| kill(1617, SIG_0) = 0 | |
| futex(0x2e367b4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x2e367b0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 | |
| futex(0x2c3f1f0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...> | |
| +++ killed by SIGTRAP (core dumped) +++ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment