Re: Re: Re: Application termination at some point



I learned to generate the core dump file of the test application when it crashes... and using the gdb debugger i got the following bt...

Could you please tell me where might be the problem?




Core was generated by `./test'.
Program terminated with signal 6, Aborted.
[New process 15078]
#0 0x00286402 in __kernel_vsyscall ()
(gdb) bt
#0 0x00286402 in __kernel_vsyscall ()
#1 0x0080ed80 in raise () from /lib/libc.so.6
#2 0x00810691 in abort () from /lib/libc.so.6
#3 0x0084724b in __libc_message () from /lib/libc.so.6
#4 0x0084f883 in _int_malloc () from /lib/libc.so.6
#5 0x00850c70 in _int_realloc () from /lib/libc.so.6
#6 0x00852ebd in realloc () from /lib/libc.so.6
#7 0x00c5f64b in g_realloc () from /lib/libglib-2.0.so.0
#8 0x0051deb8 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#9 0x0051cf71 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#10 0x0051e4f1 in gdk_region_union () from /usr/lib/libgdk-x11-2.0.so.0
#11 0x005221dd in gdk_window_invalidate_maybe_recurse () from /usr/lib/libgdk-x11-2.0.so.0 #12 0x005223b0 in gdk_window_invalidate_region () from /usr/lib/libgdk-x11-2.0.so.0
#13 0x00539b7e in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#14 0x00536732 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#15 0x00536e4b in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#16 0x0053724f in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#17 0x00c58342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#18 0x00c5b31f in ?? () from /lib/libglib-2.0.so.0
#19 0x00c5b6c9 in g_main_loop_run () from /lib/libglib-2.0.so.0
#20 0x0311fb84 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#21 0x0804951c in main () at LegendTest.cpp:268
(gdb)

Thanks & Regards
Sundaram. D


On Nov 17, 2009 4:53pm, ds sundar gmail com wrote:
Dear Yeti,

I know the bug is in my code and i want to fix that. I am new to linux programming and hence i am learning things now. I don't want you to fix the bug. What i all want to please let me know the ways that i can find the bug in my code. I can find the way to fix the bug but it will take some time. Thats you i have posted the problem in the forum.



Thanks & Regards
Sundaram. D
On Nov 17, 2009 4:41pm, David NeÄas yeti physics muni cz> wrote:
> On Tue, Nov 17, 2009 at 10:47:39AM +0000, ds sundar gmail com wrote:
>
> > I run my test application with -g option and i am getting the following
>
> > error message. I not able to fix the issue with the available
>
> > information. Am i doing things correctly or not? Is this the one you want
>
> > me to do?
>
> >
>
> > Please help me...
>
>
>
> Please run it under valgrind as suggested.
>
>
>
> Please note that the bug most likley isn't in Gtk+ but in your code and
>
> that this thread has *nothing* to do with Gtk+ at all (well, not
>
> counting my G_SLICE=always-malloc advice).
>
>
>
> Also please note that there is no magic tool or compiler option that
>
> would locate bugs (source code analysis tools exist, mostly commercial,
>
> but even they can find only certain classes of problems). Otherwise all
>
> programs would be bug-free...
>
>
>
> So, at the end, someone who understands the code has to determine the
>
> root cause of the problem and correct it. If you cannot understand the
>
> code you will not be able to fix the bug, there's no point continuing,
>
> I'm sorry.
>
>
>
> Yeti
>
>
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]