Hui Zhu | 19 Jul 2012 07:25
Picon
Gravatar

[BUG] gdb crash when "python import gtk"

GNU gdb (GDB) 7.5.50.20120719-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) python import gtk
memory clobbered before allocated block
Aborted (core dumped)

But in 7.4.1 is OK.
./gdb
GNU gdb (GDB) 7.4.1.20120718-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Setting up the environment for debugging gdb.
No symbol table is loaded.  Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n])
[answered N; input not from terminal]
No symbol table is loaded.  Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n])
(Continue reading)

Hui Zhu | 19 Jul 2012 09:15
Picon
Gravatar

Re: [BUG] gdb crash when "python import gtk"

Hi Jan,

Without http://sourceware.org/git/?p=gdb.git;a=commit;h=d43ca3bfc165c72be20288233d20d61ec107a2de
that you committed.

This issue doesn't occur.

Thanks,
Hui

On Thu, Jul 19, 2012 at 1:25 PM, Hui Zhu <teawater <at> gmail.com> wrote:
> GNU gdb (GDB) 7.5.50.20120719-cvs
> Copyright (C) 2012 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-unknown-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> (gdb) python import gtk
> memory clobbered before allocated block
> Aborted (core dumped)
>
> But in 7.4.1 is OK.
> ./gdb
> GNU gdb (GDB) 7.4.1.20120718-cvs
> Copyright (C) 2012 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
(Continue reading)

Phil Muldoon | 19 Jul 2012 09:21
Picon
Favicon

Re: [BUG] gdb crash when "python import gtk"

On 07/19/2012 08:15 AM, Hui Zhu wrote:
> Hi Jan,
> 
> Without http://sourceware.org/git/?p=gdb.git;a=commit;h=d43ca3bfc165c72be20288233d20d61ec107a2de
> that you committed.
> 
> This issue doesn't occur.

>>
>> But in 7.4.1 is OK.
>> ./gdb
>> (gdb) python import gtk

I don't see this building from cvs head.  Can you post a backtrace of the inferior GDB crashing?

Cheers,

Phil

Jan Kratochvil | 19 Jul 2012 09:39
Picon
Favicon

Re: [BUG] gdb crash when "python import gtk"

Hi Hui,

On Thu, 19 Jul 2012 09:15:57 +0200, Hui Zhu wrote:
> Without http://sourceware.org/git/?p=gdb.git;a=commit;h=d43ca3bfc165c72be20288233d20d61ec107a2de
> that you committed.

the problem is apparently the new -lmcheck lightweight memory corruption
testing.

> On Thu, Jul 19, 2012 at 1:25 PM, Hui Zhu <teawater <at> gmail.com> wrote:
> > GNU gdb (GDB) 7.5.50.20120719-cvs
[...]
> > (gdb) python import gtk
> > memory clobbered before allocated block
> > Aborted (core dumped)

So the bug is in some gtk code, either the Python binding or the C gtk
implementation itself.

> > But in 7.4.1 is OK.

It did not use -lmcheck so the memory corruption still was there but it was
not shown.

> > I think this issue is dangerous because we don't know how much other
> > python modules are affected by this issue.  Wish it can be fixed
> > before 7.5 release.

It will not affect the 7.5 release and neither the 7.5 pre-releases:
	[commit/branch] development mode no longer enabled by default
(Continue reading)

Hui Zhu | 19 Jul 2012 09:53
Picon
Gravatar

Re: [BUG] gdb crash when "python import gtk"

On Thu, Jul 19, 2012 at 3:39 PM, Jan Kratochvil
<jan.kratochvil <at> redhat.com> wrote:
> Hi Hui,
>
> On Thu, 19 Jul 2012 09:15:57 +0200, Hui Zhu wrote:
>> Without http://sourceware.org/git/?p=gdb.git;a=commit;h=d43ca3bfc165c72be20288233d20d61ec107a2de
>> that you committed.
>
> the problem is apparently the new -lmcheck lightweight memory corruption
> testing.
>
>
>> On Thu, Jul 19, 2012 at 1:25 PM, Hui Zhu <teawater <at> gmail.com> wrote:
>> > GNU gdb (GDB) 7.5.50.20120719-cvs
> [...]
>> > (gdb) python import gtk
>> > memory clobbered before allocated block
>> > Aborted (core dumped)
>
> So the bug is in some gtk code, either the Python binding or the C gtk
> implementation itself.
>
>
>> > But in 7.4.1 is OK.
>
> It did not use -lmcheck so the memory corruption still was there but it was
> not shown.
>
>
>> > I think this issue is dangerous because we don't know how much other
(Continue reading)


Gmane