Mailing List Archive

Backtrace when running mythtv-setup over X
Hi

I'm using mythtv 0.24-fixes.

When I try and run mythtv-setup remotely (via ssh -X), it fails to
execute. Upon further investigation it seems that mythtv-setup.real
crashes with a memory corruption error and produces the following backtrace.

This is perfectly repeatable. I don't mistrust the hardware as
everything else is running just fine. I can also run mythtv-setup
without problems locally on the backend rather than via X.

Any idea what might be wrong? Any further info I can provide?

Thanks, Jan




janc@zotac:~$ mythtv-setup.real
*** glibc detected *** mythtv-setup.real: malloc(): memory corruption:
0x0000000001be2480 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7a87a)[0x7f624730387a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_calloc+0xc4)[0x7f62473072b4]
/usr/lib/x86_64-linux-gnu/libXi.so.6(XIQueryDevice+0x1c5)[0x7f6242f7fb45]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate21x11GetTouchDeviceInfoEv+0x3c)[0x7f62487b361c]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate20initializeMultitouchEv+0xe0)[0x7f6248740240]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate10initializeEv+0x115)[0x7f62487403e5]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate9constructEP9_XDisplaymm+0xde)[0x7f62487404fe]
/usr/lib/libQtGui.so.4(_ZN12QApplicationC1ERiPPcbi+0x78)[0x7f6248740c48]
mythtv-setup.real[0x440051]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xff)[0x7f62472a7eff]
mythtv-setup.real[0x40fb29]
======= Memory map: ========
00400000-0045a000 r-xp 00000000 103:00 1574114
/usr/bin/mythtv-setup.real
00659000-0065c000 r--p 00059000 103:00 1574114
/usr/bin/mythtv-setup.real
0065c000-0065d000 rw-p 0005c000 103:00 1574114
/usr/bin/mythtv-setup.real
01b33000-01bfa000 rw-p 00000000 00:00 0
[heap]
7f6238000000-7f6238021000 rw-p 00000000 00:00 0
7f6238021000-7f623c000000 ---p 00000000 00:00 0
7f623fc77000-7f623fc80000 r-xp 00000000 103:00 1703994
/usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f623fc80000-7f623fe7f000 ---p 00009000 103:00 1703994
/usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f623fe7f000-7f623fe80000 r--p 00008000 103:00 1703994
/usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f623fe80000-7f623fe81000 rw-p 00009000 103:00 1703994
/usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f623fe81000-7f623fe8d000 r-xp 00000000 103:00 527951
/lib/x86_64-linux-gnu/libnss_files-2.13.so
7f623fe8d000-7f624008c000 ---p 0000c000 103:00 527951
/lib/x86_64-linux-gnu/libnss_files-2.13.so
7f624008c000-7f624008d000 r--p 0000b000 103:00 527951
/lib/x86_64-linux-gnu/libnss_files-2.13.so
7f624008d000-7f624008e000 rw-p 0000c000 103:00 527951
/lib/x86_64-linux-gnu/libnss_files-2.13.so
7f624008e000-7f6240091000 r-xp 00000000 103:00 1707344
/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f6240091000-7f6240290000 ---p 00003000 103:00 1707344
/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f6240290000-7f6240291000 r--p 00002000 103:00 1707344
/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f6240291000-7f6240292000 rw-p 00003000 103:00 1707344
/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f6240292000-7f6240537000 r--p 00000000 103:00 1573084
/usr/lib/locale/locale-archive
7f6240537000-7f624053d000 r-xp 00000000 103:00 1584136
/usr/lib/libogg.so.0.7.0
7f624053d000-7f624073c000 ---p 00006000 103:00 1584136
/usr/lib/libogg.so.0.7.0
7f624073c000-7f624073d000 r--p 00005000 103:00 1584136
/usr/lib/libogg.so.0.7.0
7f624073d000-7f624073e000 rw-p 00006000 103:00 1584136
/usr/lib/libogg.so.0.7.0
7f624073e000-7f6240769000 r-xp 00000000 103:00 1573181
/usr/lib/libvorbis.so.0.4.5
7f6240769000-7f6240968000 ---p 0002b000 103:00 1573181
/usr/lib/libvorbis.so.0.4.5
7f6240968000-7f6240969000 r--p 0002a000 103:00 1573181
/usr/lib/libvorbis.so.0.4.5
7f6240969000-7f624096a000 rw-p 0002b000 103:00 1573181
/usr/lib/libvorbis.so.0.4.5
7f624096a000-7f6240c1d000 r-xp 00000000 103:00 1582686
/usr/lib/libvorbisenc.so.2.0.8
7f6240c1d000-7f6240e1c000 ---p 002b3000 103:00 1582686
/usr/lib/libvorbisenc.so.2.0.8
7f6240e1c000-7f6240e38000 r--p 002b2000 103:00 1582686
/usr/lib/libvorbisenc.so.2.0.8
7f6240e38000-7f6240e39000 rw-p 002ce000 103:00 1582686
/usr/lib/libvorbisenc.so.2.0.8
7f6240e39000-7f6240e81000 r-xp 00000000 103:00 1583305
/usr/lib/libFLAC.so.8.2.0
7f6240e81000-7f6241081000 ---p 00048000 103:00 1583305
/usr/lib/libFLAC.so.8.2.0
7f6241081000-7f6241082000 r--p 00048000 103:00 1583305
/usr/lib/libFLAC.so.8.2.0
7f6241082000-7f6241083000 rw-p 00049000 103:00 1583305
/usr/lib/libFLAC.so.8.2.0
7f6241083000-7f624109a000 r-xp 00000000 103:00 527947
/lib/x86_64-linux-gnu/libnsl-2.13.so
7f624109a000-7f6241299000 ---p 00017000 103:00 527947
/lib/x86_64-linux-gnu/libnsl-2.13.so
7f6241299000-7f624129a000 r--p 00016000 103:00 527947
/lib/x86_64-linux-gnu/libnsl-2.13.so
7f624129a000-7f624129b000 rw-p 00017000 103:00 527947
/lib/x86_64-linux-gnu/libnsl-2.13.so
7f624129b000-7f624129d000 rw-p 00000000 00:00 0
7f624129d000-7f6241312000 r-xp 00000000 103:00 1579467
/usr/lib/libQtDBus.so.4.7.2
7f6241312000-7f6241512000 ---p 00075000 103:00 1579467
/usr/lib/libQtDBus.so.4.7.2
7f6241512000-7f6241513000 r--p 00075000 103:00 1579467
/usr/lib/libQtDBus.so.4.7.2
7f6241513000-7f6241514000 rw-p 00076000 103:00 1579467
/usr/lib/libQtDBus.so.4.7.2
7f6241514000-7f6241517000 r-xp 00000000 103:00 1573734
/usr/lib/libpulse-mainloop-glib.so.0.0.4
7f6241517000-7f6241717000 ---p 00003000 103:00 1573734
/usr/lib/libpulse-mainloop-glib.so.0.0.4
7f6241717000-7f6241718000 r--p 00003000 103:00 1573734
/usr/lib/libpulse-mainloop-glib.so.0.0.4
7f6241718000-7f6241719000 rw-p 00004000 103:00 1573734
/usr/lib/libpulse-mainloop-glib.so.0.0.4
7f6241719000-7f6241754000 r-xp 00000000 103:00 524398
/lib/x86_64-linux-gnu/libpcre.so.3.12.1
7f6241754000-7f6241953000 ---p 0003b000 103:00 524398
/lib/x86_64-linux-gnu/libpcre.so.3.12.1
7f6241953000-7f6241954000 r--p 0003a000 103:00 524398
/lib/x86_64-linux-gnu/libpcre.so.3.12.1
7f6241954000-7f6241955000 rw-p 0003b000 103:00 524398
/lib/x86_64-linux-gnu/libpcre.so.3.12.1
7f6241955000-7f62419b4000 r-xp 00000000 103:00 1707377
/usr/lib/x86_64-linux-gnu/libXt.so.6.0.0
7f62419b4000-7f6241bb4000 ---p 0005f000 103:00 1707377
/usr/lib/x86_64-linux-gnu/libXt.so.6.0.0
7f6241bb4000-7f6241bb5000 r--p 0005f000 103:00 1707377
/usr/lib/x86_64-linux-gnu/libXt.so.6.0.0
7f6241bb5000-7f6241bba000 rw-p 00060000 103:00 1707377
/usr/lib/x86_64-linux-gnu/libXt.so.6.0.0
7f6241bba000-7f6241bbb000 rw-p 00000000 00:00 0 Aborted
janc@zotac:~$ mythbackend --version
Please attach all output as a file in bug reports.
MythTV Version : v0.24.2-30-ge9a0ecb
MythTV Branch : fixes/0.24
Network Protocol : 63
Library API : 0.24.20110505-1
QT Version : 4.7.2
Options compiled in:
linux profile using_alsa using_oss using_pulse using_pulseoutput
using_backend using_bindings_perl using_bindings_python using_crystalhd
using_dvb using_firewire using_frontend using_hdhomerun using_hdpvr
using_iptv using_ivtv using_joystick_menu using_lirc using_mheg
using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit
using_v4l using_x11 using_xrandr using_xv using_bindings_perl
using_bindings_python using_mythtranscode using_opengl using_vdpau
using_ffmpeg_threads using_live using_mheg
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
Re: Backtrace when running mythtv-setup over X [ In reply to ]
On 05/07/2012 07:23 AM, Jan Ceuleers wrote:
> Hi
>
> I'm using mythtv 0.24-fixes.
>
> When I try and run mythtv-setup remotely (via ssh -X), it fails to
> execute. Upon further investigation it seems that mythtv-setup.real
> crashes with a memory corruption error and produces the following backtrace.
>
> This is perfectly repeatable. I don't mistrust the hardware as
> everything else is running just fine. I can also run mythtv-setup
> without problems locally on the backend rather than via X.
>
> Any idea what might be wrong? Any further info I can provide?

We'd need a real backtrace, as described at
http://www.mythtv.org/wiki/Debugging to find out.

Also, please make sure you're using the Qt Theme Painter. If you use a
frontend on that system and want it to use OpenGL painter, you can pass
a one-time override with: -O ThemePainter=qt

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
Re: Backtrace when running mythtv-setup over X [ In reply to ]
On 07/05/12 13:46, Michael T. Dean wrote:
> We'd need a real backtrace, as described at
> http://www.mythtv.org/wiki/Debugging to find out.

Thank you, I have filed a bug in the way suggested there:

https://bugs.launchpad.net/mythbuntu/+bug/995941

> Also, please make sure you're using the Qt Theme Painter. If you use a
> frontend on that system and want it to use OpenGL painter, you can pass
> a one-time override with: -O ThemePainter=qt

The problem occurs both with and without the above parameter.

Thanks, Jan
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
Re: Backtrace when running mythtv-setup over X [ In reply to ]
On 05/07/2012 09:04 AM, Jan Ceuleers wrote:
> On 07/05/12 13:46, Michael T. Dean wrote:
>> We'd need a real backtrace, as described at
>> http://www.mythtv.org/wiki/Debugging to find out.
> Thank you, I have filed a bug in the way suggested there:
>
> https://bugs.launchpad.net/mythbuntu/+bug/995941
>
>> Also, please make sure you're using the Qt Theme Painter. If you use a
>> frontend on that system and want it to use OpenGL painter, you can pass
>> a one-time override with: -O ThemePainter=qt
> The problem occurs both with and without the above parameter.
>

Looking at the back trace, all the calls are occurring far below MythTV
code--specifically in Qt's X support code. But, as the glibc
"abbreviated" backtrace said, it's in a call for memory allocation,
requested by libxi (XInput support).

I'd guess (but this isn't much more than a guess) that the problem is
either with your X (and/or libxi) or is potentially caused by the X
configuration (and X doesn't handle/protect against the invalid config).

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
Re: Backtrace when running mythtv-setup over X [ In reply to ]
On 07/05/12 18:56, Michael T. Dean wrote:
> Looking at the back trace, all the calls are occurring far below MythTV
> code--specifically in Qt's X support code. But, as the glibc
> "abbreviated" backtrace said, it's in a call for memory allocation,
> requested by libxi (XInput support).
>
> I'd guess (but this isn't much more than a guess) that the problem is
> either with your X (and/or libxi) or is potentially caused by the X
> configuration (and X doesn't handle/protect against the invalid config).

Thanks for looking at it Mike.

I don't want to waste anyone's time with a local issue. I can walk down
a flight of stairs to the garage to do my mythtv-setup work. But I also
want to help fix this problem for others if it is fixable.

The X server is a laptop running 32-bit Ubuntu 12.04. I have no problems
running other X applications with this X client / X server combination.

I don't know which other applications I could test that use qt. I tried
mythfrontend and, sure enough, it has the same problem as mythtv-setup.

I'm happy to drop this if you are; if not what should I do next?

Thanks, Jan
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users