[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Call to gtk_main() crashes
- From: RNG <rgasch gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Call to gtk_main() crashes
- Date: Thu, 30 Apr 2009 08:21:08 +0200
Going on your tip I went through the source code and found the
incorrect call to free. The program now starts up and seems to work. I
will now start testing and trying to fix bugs.
Thanks a lot for your help
Robert
On Wed, Apr 29, 2009 at 7:04 PM, Tristan Van Berkom
<tristan van berkom gmail com> wrote:
> On Wednesday, April 29, 2009, RNG <rgasch gmail com> wrote:
>> Hi,
>>
>> following your suggestion, I've added a call to gtk_init() at the
>> beginning of main() but the program still crashes. The end of the
>> stack trace now displays a different memory address but otherwise it's
>> essentially the same
>
> All I read from the stack trace is
> a possible double free in a clicked
> handler, you say this happens at
> startup ? Do you programatically
> somehow send events from an idle
> or such?
>
> -Tristan
>
>
>
>
>
>>
>> ---------- snip --------------
>> #21 0xb7846036 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
>> #22 0xb73f03c9 in ?? () from /usr/lib/libgobject-2.0.so.0
>> #23 0xb73f1c4b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
>> #24 0xb7407d3d in ?? () from /usr/lib/libgobject-2.0.so.0
>> #25 0xb740962b in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
>> #26 0xb7409c26 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
>> #27 0xb795b33e in ?? () from /usr/lib/libgtk-x11-2.0.so.0
>> #28 0xb783eb4c in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
>> #29 0xb783fef7 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
>> #30 0xb76d650a in ?? () from /usr/lib/libgdk-x11-2.0.so.0
>> #31 0xb7364718 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
>> #32 0xb7367dc3 in ?? () from /usr/lib/libglib-2.0.so.0
>> #33 0xb73682e2 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
>> #34 0xb78403a9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
>> #35 0x0805688a in main (argc=Cannot access memory at address 0xffffffff
>> ) at main.c:
>>
>> Any more ideas as to what could be wrong?
>>
>> Greetings/Thanks
>> Robert
>>
>> 2009/4/29 Fernando Apesteguía <fernando apesteguia gmail com>:
>>> On Wed, Apr 29, 2009 at 8:38 AM, RNG <rgasch gmail com> wrote:
>>>> Hi,
>>>>
>>>> I am trying to get an old application to work using glade2. I've
>>>> managed to get it to compile but the call to
>>>> gtk_main();
>>>> crashes the application. The backtrace looks like this:
>>>>
>>>> (gdb) bt
>>>> #0 0xb8041422 in __kernel_vsyscall ()
>>>> #1 0xb7244880 in raise () from /lib/tls/i686/cmov/libc.so.6
>>>> #2 0xb7246248 in abort () from /lib/tls/i686/cmov/libc.so.6
>>>> #3 0xb728210d in ?? () from /lib/tls/i686/cmov/libc.so.6
>>>> #4 0xb72883f4 in ?? () from /lib/tls/i686/cmov/libc.so.6
>>>> #5 0xb73f8c26 in g_free () from /usr/lib/libglib-2.0.so.0
>>>> #6 0xb748b3d4 in g_cclosure_marshal_VOID__VOID ()
>>>> from /usr/lib/libgobject-2.0.so.0
>>>> #7 0xb747dc4b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
>>>> #8 0xb7494095 in ?? () from /usr/lib/libgobject-2.0.so.0
>>>> #9 0xb74957ac in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
>>>> #10 0xb7495c26 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
>>>> #11 0xb781deaa in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0
>>>> #12 0xb781ef58 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
>>>> #13 0xb748b3d4 in g_cclosure_marshal_VOID__VOID ()
>>>> from /usr/lib/libgobject-2.0.so.0
>>>> #14 0xb747c3c9 in ?? () from /usr/lib/libgobject-2.0.so.0
>>>> #15 0xb747dc4b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
>>>> #16 0xb74938ee in ?? () from /usr/lib/libgobject-2.0.so.0
>>>> #17 0xb74957ac in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
>>>> #18 0xb7495c26 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
>>>> #19 0xb781df4a in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0
>>>> #20 0xb781df83 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
>>>> #21 0xb78d2036 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
>>>> #22 0xb747c3c9 in ?? () from /usr/lib/libgobject-2.0.so.0
>>>> #23 0xb747dc4b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
>>>> #24 0xb7493d3d in ?? () from /usr/lib/libgobject-2.0.so.0
>>>> #25 0xb749562b in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
>>>> #26 0xb7495c26 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
>>>> #27 0xb79e733e in ?? () from /usr/lib/libgtk-x11-2.0.so.0
>>>> #28 0xb78cab4c in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
>>>> #29 0xb78cbef7 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
>>>> #30 0xb776250a in ?? () from /usr/lib/libgdk-x11-2.0.so.0
>>>> #31 0xb73f0718 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
>>>> #32 0xb73f3dc3 in ?? () from /usr/lib/libglib-2.0.so.0
>>>> #33 0xb73f42e2 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
>>>> #34 0xb78cc3a9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
>>>> #35 0x08056842 in main (argc=Cannot access memory at address 0x12ff
>>>> ) at main.c:278
>>>> (gdb)
>>>>
>>>> Any ides what may be causing this and how to fix it?
>>>
>>> Do you call gtk_init() before doing any other gtk related tasks?
>>>
>>> If you are using threads, do you call gdk_threads_init() and use
>>> gdk_threads_enter() and gdk_threads_leave()?
>>>
>>> Cheers
>>>
>>>>
>>>> Greetings/Thanks
>>>> Robert
>>>> _______________________________________________
>>>> gtk-app-devel-list mailing list
>>>> gtk-app-devel-list gnome org
>>>> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>>>>
>>>
>> _______________________________________________
>> gtk-app-devel-list mailing list
>> gtk-app-devel-list gnome org
>> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>>
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]