[mythtv-users] mythfilldatabase segfaulting
Bill Meek
keemllib at gmail.com
Fri Jan 14 17:53:40 UTC 2022
On 1/14/22 10:50 AM, Stuart Auchterlonie wrote:
> On 14/01/2022 16:22, John Hoyt wrote:
>> Are you able to get a backtrace so we can narrow this down?
>>
>>
>> I have one now - but it's a large file (9.3mb). Is there a suggested place to upload it to (possibly github with a ticket)?
>>
>> Here's a truncated version
>>
>> (gdb) handle SIG33 pass nostop noprint
>> Signal Stop Print Pass to program Description
>> SIG33 No No Yes Real-time event 33
>> (gdb) set pagination 0
>> (gdb) run -v
>> Starting program: /usr/bin/mythfilldatabase -v
>> [Thread debugging using libthread_db enabled]
>> Using host libthread_db library
>> "/lib/x86_64-linux-gnu/libthread_db.so.1".
>> [New Thread 0x7fffe8b1a700 (LWP 3358)]
>> [New Thread 0x7fffe3fff700 (LWP 3359)]
>> 2022-01-14 10:53:23.670263 C mythfilldatabase version: master
>> [v32.0~master.202201122333.d392ac9f16~ubuntu20.04.1] www.mythtv.org
>> <http://www.mythtv.org>
>> 2022-01-14 10:53:23.670269 C Qt version: compile: 5.12.8, runtime:
>> 5.12.8
>> 2022-01-14 10:53:23.670286 I Ubuntu 20.04.3 LTS (x86_64)
>> 2022-01-14 10:53:23.670287 N Enabled verbose msgs: general
>> 2022-01-14 10:53:23.670291 N Setting Log Level to LOG_INFO
>> 2022-01-14 10:53:23.681551 I Added logging to the console
>> 2022-01-14 10:53:23.681869 I Setup Interrupt handler
>> 2022-01-14 10:53:23.681887 I Setup Terminated handler
>> 2022-01-14 10:53:23.681889 I Setup Segmentation fault handler
>> 2022-01-14 10:53:23.681892 I Setup Aborted handler
>> 2022-01-14 10:53:23.681894 I Setup Bus error handler
>> 2022-01-14 10:53:23.681896 I Setup Floating point exception handler
>> 2022-01-14 10:53:23.681898 I Setup Illegal instruction handler
>> 2022-01-14 10:53:23.681906 I Setup Real-time signal 0 handler
>> 2022-01-14 10:53:23.681909 I Setup Hangup handler
>> 2022-01-14 10:53:23.681986 N Using runtime prefix = /usr
>> 2022-01-14 10:53:23.681987 N Using configuration directory =
>> /home/mythtv/.mythtv
>> 2022-01-14 10:53:23.682001 I Assumed character encoding: en_US.UTF-8
>> 2022-01-14 10:53:23.682223 I Empty LocalHostName. This is typical.
>> 2022-01-14 10:53:23.682224 I Using a profile name of: 'mythtv'
>> (Usually the same as this host's name.)
>> 2022-01-14 10:53:23.682243 I Start up testing connections. DB
>> 192.168.0.9, BE , attempt 0, status dbAwake, Delay: 2000
>> [New Thread 0x7fffe30ca700 (LWP 3360)]
>> 2022-01-14 10:53:24.207615 N Setting QT default locale to en_US
>> 2022-01-14 10:53:24.207620 I Current locale en_US
>> 2022-01-14 10:53:24.207641 N Reading locale defaults from
>> /usr/share/mythtv//locales/en_us.xml
>> 2022-01-14 10:53:24.221214 I PowerDBus: Failed to delay
>> sleep,shutdown: Permission denied
>> 2022-01-14 10:53:24.224530 I PowerDBus: Added UPower.Device
>> '/org/freedesktop/UPower/devices/ups_hiddev0'
>> 2022-01-14 10:53:24.224825 I Power: On AC power
>> 2022-01-14 10:53:24.267038 I Power: Supported actions: None
>> 2022-01-14 10:53:24.269350 I Loading en_us translation for module
>> mythfrontend
>> 2022-01-14 10:53:24.276352 I Current MythTV Schema Version
>> (DBSchemaVer): 1372
>> [New Thread 0x7fffe28c9700 (LWP 3361)]
>> 2022-01-14 10:53:24.287768 I
>> MythCoreContext::ConnectCommandSocket(): Connecting to backend
>> server: 192.168.0.9:6543 <http://192.168.0.9:6543> (try 1 of 1)
>> 2022-01-14 10:53:24.290275 I MythCoreContext::CheckProtoVersion():
>> Using protocol version 91 BuzzOff
>> 2022-01-14 10:53:24.291271 I Opening blocking connection to master
>> backend
>> [New Thread 0x7fffe20c8700 (LWP 3364)]
>> [New Thread 0x7fffe18c7700 (LWP 3365)]
>> [New Thread 0x7fffe10c6700 (LWP 3366)]
>> [New Thread 0x7fffe08c5700 (LWP 3367)]
>> [Detaching after fork from child process 3368]
>> 2022-01-14 10:53:24.595447 I Updating source #2 (FiOS) with grabber
>> tv_grab_zz_sdjson_sqlite
>> 2022-01-14 10:53:24.596500 I Found 168 channels for source 2 which
>> use grabber
>> 2022-01-14 10:53:24.596934 I Starting process manager
>> 2022-01-14 10:53:24.597095 I Starting process signal handler
>> 2022-01-14 10:53:24.597284 I Starting IO manager (read)
>> 2022-01-14 10:53:24.597508 I Starting IO manager (write)
>> [Detaching after fork from child process 3371]
>> 2022-01-14 10:53:24.997939 I Grabber has capabilities: baseline
>> manualconfig preferredmethod lineups apiconfig
>> [Detaching after fork from child process 3373]
>> 2022-01-14 10:53:25.398697 I Grabber prefers method: allatonce
>> 2022-01-14 10:53:25.399494 I XMLTV config file is:
>> /home/mythtv/.mythtv/FiOS.xmltv
>> [Detaching after fork from child process 3376]
>> [Detaching after fork from child process 3379]
>>
>> Thread 1 "mythfilldatabas" received signal SIGSEGV, Segmentation fault.
>> 0x00007ffff63f0fce in ?? () from /lib/x86_64-linux-gnu/libc.so.6
>> (gdb) backtrace full
>> #0 0x00007ffff63f0fce in () at /lib/x86_64-linux-gnu/libc.so.6
>> #1 0x00007ffff63f3419 in malloc () at /lib/x86_64-linux-gnu/libc.so.6
>> #2 0x00007ffff680f241 in QArrayData::allocate(unsigned long,
>> unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>)
>> () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
>> #3 0x00007ffff6884fb8 in QString::reallocData(unsigned int, bool)
>> () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
>> #4 0x00007ffff7b0bd41 in QString::squeeze() (this=0x7fffff7ff198)
>> at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:1151
>> #5 DBEvent::Squeeze() (this=this at entry=0x7fffff7ff190) at
>> programdata.cpp:291
>> #6 0x00007ffff7b10d47 in DBEvent::DBEvent(DBEvent const&)
>> (this=0x7fffff7ff190, other=...) at programdata.cpp:286
>> #7 0x00007ffff7b10df4 in DBEvent::operator=(DBEvent const&)
>> (this=0x555555738630, other=...) at programdata.cpp:235
>> ...
>> snip
>> ...
>> #37427 0x00007ffff7b10dff in DBEvent::operator=(DBEvent const&)
>> (this=0x555555738630, other=...) at programdata.cpp:235
>> #37428 0x00007ffff7b10e76 in ProgInfo::operator=(ProgInfo const&)
>> (other=..., this=0x555555738630) at programdata.cpp:1264
>> #37429 ProgInfo::operator=(ProgInfo const&) (this=0x555555738630,
>> other=...) at programdata.cpp:1259
>> #37430 0x00007ffff7b11305 in ProgInfo::ProgInfo(ProgInfo const&)
>> (this=0x555555738630, other=...) at programdata.cpp:1256
>> #37431 0x0000555555582c08 in
>> QList<ProgInfo>::node_construct(QList<ProgInfo>::Node*, ProgInfo
>> const&) (this=0x5555557b6a80, n=0x5555557b6f90, t=...) at
>> /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:436
>> #37432 QList<ProgInfo>::append(ProgInfo const&)
>> (this=this at entry=0x5555557b6a80, t=...) at
>> /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:587
>> #37433 0x0000555555580223 in QList<ProgInfo>::push_back(ProgInfo
>> const&) (t=..., this=0x5555557b6a80) at
>> /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:363
>> #37434 XMLTVParser::parseFile(QString const&,
>> std::vector<ChannelInfo, std::allocator<ChannelInfo> >*,
>> QMap<QString, QList<ProgInfo> >*) (this=this at entry=0x7fffffffe450,
>> filename=..., chanlist=chanlist at entry=0x7fffffffdd60,
>> proglist=proglist at entry=0x7fffffffdd50) at xmltvparser.cpp:810
>> #37435 0x0000555555566c7b in FillData::GrabDataFromFile(int, QString
>> const&) (this=0x7fffffffe440, id=2, filename=...) at filldata.cpp:94
>> #37436 0x000055555556a363 in FillData::GrabData(Source const&, int)
>> (this=0x7fffffffe440, source=..., offset=<optimized out>) at
>> filldata.cpp:234
>> #37437 0x000055555556dd5b in FillData::Run(std::vector<Source,
>> std::allocator<Source> >&) (this=0x7fffffffe440,
>> sourcelist=std::vector of length 1, capacity 1 = {...}) at
>> filldata.cpp:444
>> #37438 0x0000555555564b2e in main(int, char**) (argc=<optimized
>> out>, argv=<optimized out>) at main.cpp:406
>>
>
> Can you do `thread apply all bt full` in gdb and share the output please
>
> Regards
> Stuart
One from last night for me:
https://pastebin.com/mS9jm4db
--
Bill
More information about the mythtv-users
mailing list