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 114425 - Won't start the first time you execute it
Won't start the first time you execute it
Status: RESOLVED FIXED
Product: gtetrinet
Classification: Other
Component: general
0.7.x
Other Linux
: High major
: ---
Assigned To: Jordi Mallach
Gtetrinet Hackers
: 156780 311552 352478 361961 378682 379741 380109 380307 380472 380576 381245 382134 386020 388564 388810 389347 389825 390996 391592 391756 395826 395980 396204 396318 396545 396756 397484 399482 399740 399795 401136 401746 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-06-04 21:52 UTC by Jordi Mallach
Modified: 2007-12-02 14:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixes double free() which causes a crash on first start, when theme_dir isn't set (465 bytes, patch)
2006-11-02 14:37 UTC, Loïc Minier
none Details | Review

Description Jordi Mallach 2003-06-04 21:52:30 UTC
If you start gtetrinet on a new user account, which has never run gtetrinet
before, gtetrinet will fail to run. The second time you try it will work
normally.

I guess it's some gconf initialization issue, but I know little more. It's
quite easy to reproduce, though.

Filing just to have it documented...
Comment 1 Jordi Mallach 2003-08-03 17:20:29 UTC
Thom May told me that for him, gtetrinet is doing even weirder stuff.
Every time he reboots, the first time he starts gtetrient he must do
under strace. If he doesn't, it just doesn't start.

Thom suggested there might be some race somewhere that strace solves
by running slower. I still think it's some gconf-related thing, but
not the init of gnome-settings-daemon, as Thom runs a complete GNOME
desktop and the daemon is already running when he starts gtetrinet.
Comment 2 Dani Carbonell 2003-08-30 23:10:07 UTC
Maybe it's an uninitialized variable. GDB, for example, always
initializes an integer variable to zero, I've been hit with this kind
of bug quite a few times. It's annoying when an app does work when
running under gdb, and doesn't when running alone, and I always end up
finding an uninitialized variable in those apps. I don't know if
strace works in the same way though.
Comment 3 Sebastien Bacher 2004-12-14 22:05:47 UTC
Same problem on 2 machines here:

$ gtetrinet

(gtetrinet:4886): GConf-CRITICAL **: gconf_value_new: assertion
`GCONF_VALUE_TYPE_VALID(type)' failed

GConf-ERROR **: file gconf-value.c: line 767 (gconf_value_copy): should not be
reached
aborting...
Comment 4 Loïc Minier 2006-10-31 15:54:36 UTC
(gdb) run
Starting program: /home/lool/g/gtetrinet-0.7.10/src/gtetrinet 
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1223857952 (LWP 17259)]

Program received signal SIGSEGV, Segmentation fault.

Thread NaN (LWP 17259)

  • #0 gnome_config_assemble_vector
    from /usr/lib/libgnome-2.so.0
  • #1 gnome_config_has_section_
    from /usr/lib/libgnome-2.so.0
  • #2 gnome_config_clean_file_
    from /usr/lib/libgnome-2.so.0
  • #3 gnome_config_get_string_with_default_
    from /usr/lib/libgnome-2.so.0
  • #4 config_loadtheme
    at config.c line 92
  • #5 config_loadconfig
    at config.c line 375
  • #6 main
    at gtetrinet.c line 222

Comment 5 Loïc Minier 2006-10-31 16:18:21 UTC
The problematic handling is when the GConf key /apps/gtetrinet/themes/theme_dir isn't set.

"gconftool-2 -u /apps/gtetrinet/themes/theme_dir" should be enough to reproduce the bug.

More complete bt:
(gdb) bt
  • #0 load
    at gnome-config.c line 403
  • #1 access_config
    at gnome-config.c line 456
  • #2 get_string_with_default_from_pp
    at gnome-config.c line 1506
  • #3 gnome_config_get_string_with_default_
    at gnome-config.c line 1703
  • #4 config_loadtheme
    at config.c line 92
  • #5 config_loadconfig
    at config.c line 375
  • #6 main
    at gtetrinet.c line 222

Comment 6 Loïc Minier 2006-10-31 20:07:40 UTC
Don't look at the backtraces; I stripped theme.cfg down to:
[T]
Name=G
Author=Z
Description=D

and got:
*** glibc detected *** malloc(): memory corruption (fast): 0x080cbae8 ***

instead of a segfault, but at the same place.

This presumably shows that a previous libgnome call is overwriting some stuff it shouldn't be overwriting.
Comment 7 Loïc Minier 2006-11-02 14:34:58 UTC
Hmm, I thought glibc would protect against double free()s, so I didn't thought it was useful to report the one I saw here:
==31651== Invalid free() / delete / delete[]
==31651==    at 0x401CFA5: free (vg_replace_malloc.c:233)
==31651==    by 0x4A61B30: g_free (in /usr/lib/libglib-2.0.so.0.1200.4)
==31651==    by 0x8050408: config_loadconfig (config.c:202)
==31651==    by 0x8058BCB: main (gtetrinet.c:222)
==31651==  Address 0x511E2A0 is 0 bytes inside a block of size 1 free'd
==31651==    at 0x401CFA5: free (vg_replace_malloc.c:233)
==31651==    by 0x4A61B30: g_free (in /usr/lib/libglib-2.0.so.0.1200.4)
==31651==    by 0x80503A8: config_loadconfig (config.c:196)
==31651==    by 0x8058BCB: main (gtetrinet.c:222)

But it was the bug, patch coming.
Comment 8 Loïc Minier 2006-11-02 14:37:01 UTC
Created attachment 75845 [details] [review]
Fixes double free() which causes a crash on first start, when theme_dir isn't set
Comment 9 Jordi Mallach 2006-11-02 15:39:25 UTC
*** Bug 156780 has been marked as a duplicate of this bug. ***
Comment 10 Jordi Mallach 2006-11-02 15:39:50 UTC
*** Bug 311552 has been marked as a duplicate of this bug. ***
Comment 11 Jordi Mallach 2006-11-02 15:40:25 UTC
*** Bug 352478 has been marked as a duplicate of this bug. ***
Comment 12 Jordi Mallach 2006-11-02 15:40:27 UTC
*** Bug 361961 has been marked as a duplicate of this bug. ***
Comment 13 Jordi Mallach 2006-11-03 16:31:00 UTC
Fixed in HEAD, will appear in 0.7.11.
Comment 14 André Klapper 2006-11-27 15:58:13 UTC
*** Bug 378682 has been marked as a duplicate of this bug. ***
Comment 15 André Klapper 2006-11-27 15:58:19 UTC
*** Bug 379741 has been marked as a duplicate of this bug. ***
Comment 16 André Klapper 2006-11-28 15:59:18 UTC
*** Bug 380109 has been marked as a duplicate of this bug. ***
Comment 17 André Klapper 2006-11-29 00:32:55 UTC
*** Bug 380307 has been marked as a duplicate of this bug. ***
Comment 18 André Klapper 2006-11-29 13:25:35 UTC
*** Bug 380472 has been marked as a duplicate of this bug. ***
Comment 19 André Klapper 2006-11-30 03:21:45 UTC
*** Bug 380576 has been marked as a duplicate of this bug. ***
Comment 20 André Klapper 2006-12-02 00:58:28 UTC
*** Bug 381245 has been marked as a duplicate of this bug. ***
Comment 21 André Klapper 2006-12-05 01:47:07 UTC
*** Bug 382134 has been marked as a duplicate of this bug. ***
Comment 22 André Klapper 2006-12-20 12:32:21 UTC
*** Bug 386020 has been marked as a duplicate of this bug. ***
Comment 23 André Klapper 2007-01-18 23:23:49 UTC
*** Bug 388564 has been marked as a duplicate of this bug. ***
Comment 24 André Klapper 2007-01-18 23:23:55 UTC
*** Bug 388810 has been marked as a duplicate of this bug. ***
Comment 25 André Klapper 2007-01-18 23:24:08 UTC
*** Bug 397484 has been marked as a duplicate of this bug. ***
Comment 26 André Klapper 2007-01-18 23:24:14 UTC
*** Bug 396756 has been marked as a duplicate of this bug. ***
Comment 27 André Klapper 2007-01-18 23:24:17 UTC
*** Bug 396545 has been marked as a duplicate of this bug. ***
Comment 28 André Klapper 2007-01-18 23:24:23 UTC
*** Bug 396318 has been marked as a duplicate of this bug. ***
Comment 29 André Klapper 2007-01-18 23:24:28 UTC
*** Bug 396204 has been marked as a duplicate of this bug. ***
Comment 30 André Klapper 2007-01-18 23:24:32 UTC
*** Bug 395980 has been marked as a duplicate of this bug. ***
Comment 31 André Klapper 2007-01-18 23:24:37 UTC
*** Bug 395826 has been marked as a duplicate of this bug. ***
Comment 32 André Klapper 2007-01-18 23:24:43 UTC
*** Bug 391756 has been marked as a duplicate of this bug. ***
Comment 33 André Klapper 2007-01-18 23:24:48 UTC
*** Bug 391592 has been marked as a duplicate of this bug. ***
Comment 34 André Klapper 2007-01-18 23:24:53 UTC
*** Bug 390996 has been marked as a duplicate of this bug. ***
Comment 35 André Klapper 2007-01-18 23:24:58 UTC
*** Bug 389825 has been marked as a duplicate of this bug. ***
Comment 36 André Klapper 2007-01-18 23:25:03 UTC
*** Bug 389347 has been marked as a duplicate of this bug. ***
Comment 37 André Klapper 2007-01-18 23:30:31 UTC
Added this bug report to the auto-rejecter. The auto-reject info is:
"Thank you for reporting this bug. This issue has been already fixed. The fix is available in Gtetrinet 0.7.11."
Comment 38 André Klapper 2007-01-29 01:56:12 UTC
*** Bug 399482 has been marked as a duplicate of this bug. ***
Comment 39 André Klapper 2007-01-29 01:56:19 UTC
*** Bug 399740 has been marked as a duplicate of this bug. ***
Comment 40 André Klapper 2007-01-29 01:56:24 UTC
*** Bug 399795 has been marked as a duplicate of this bug. ***
Comment 41 André Klapper 2007-01-29 02:24:10 UTC
*** Bug 401136 has been marked as a duplicate of this bug. ***
Comment 42 André Klapper 2007-01-29 02:24:17 UTC
*** Bug 401746 has been marked as a duplicate of this bug. ***
Comment 43 André Klapper 2007-12-02 14:35:00 UTC
no new duplicates for >4 months now, removing from auto-reject list.