these are the lines I get with bt Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1224288576 (LWP 6757)] 0xb73e46ad in fclose () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0xb73e46ad in fclose () from /lib/tls/i686/cmov/libc.so.6 #1 0xb73ec43d in pclose () from /lib/tls/i686/cmov/libc.so.6 #2 0x0804b9e8 in ?? ()
I think the 2 fclose and pclose are inthese 2 functions that get called by the function which update the pixbuffs gboolean crypto_mapper_check(gchar *data) { gchar mapper_chk_cmd[128]; sprintf(mapper_chk_cmd, MAPPER_PATH, data); FILE *fp = fopen(mapper_chk_cmd, "r"); if(fp) { return TRUE; } else { return FALSE; } fclose(fp); return TRUE; } gboolean crypto_mount_check(gchar *data) { gchar mount_chk_cmd[128]; gchar buf[512]; sprintf(mount_chk_cmd, MOUNT_PATH, data); FILE *pp = popen(mount_chk_cmd, "r"); if(pp) { size_t got = fread(buf, 1, sizeof(buf), pp); pclose(pp); if(got != 0) { return TRUE; } else { return FALSE; } } return TRUE; } so is something wrong here??? since the fclose is called after the function returns TRUE i think i t doesnt get closed at all, but when i add a fclose before the 2 returns I get a segfault right at the start of the programm. And this doesnt say why the pclose fails. greetings _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list