Flole
Ok, I'm on it, sorry. Once again: systemctl started tvheadend
, then:
# gdb tvheadend $(pidof tvheadend)
# gdb tvheadend $(pidof tvheadend)
GNU gdb (Debian 13.1-3) 13.1
Copyright (C) 2023 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from tvheadend...
Reading symbols from /usr/lib/debug//usr/bin/tvheadend...
Attaching to program: /usr/bin/tvheadend, process 28423
[New LWP 28424]
[New LWP 28425]
[New LWP 28426]
[New LWP 28427]
[New LWP 28428]
[New LWP 28429]
[New LWP 28430]
[New LWP 28431]
[New LWP 28432]
[New LWP 28433]
[New LWP 28434]
[New LWP 28435]
[New LWP 28436]
[New LWP 28442]
[New LWP 28443]
[New LWP 28444]
[New LWP 28445]
[New LWP 28446]
[New LWP 28447]
[New LWP 28490]
[New LWP 28491]
[New LWP 28493]
[New LWP 28494]
[New LWP 28495]
[New LWP 28496]
[New LWP 28497]
[New LWP 28498]
[New LWP 28499]
[New LWP 28500]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fd59a0a4e96 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb)
(gdb) b dvr_rec.c:1188
Breakpoint 1 at 0x557aefe06fd8: file src/dvr/dvr_rec.c, line 1188.
(gdb) c
Continuing.
[New Thread 0x7fd594fc26c0 (LWP 29877)]
[Thread 0x7fd594fc26c0 (LWP 29877) exited]
[New Thread 0x7fd594fc26c0 (LWP 29880)]
[Thread 0x7fd594fc26c0 (LWP 29880) exited]
[New Thread 0x7fd594fc26c0 (LWP 29984)]
[Thread 0x7fd594fc26c0 (LWP 29984) exited]
Starting recording...
...
[Switching to Thread 0x7fd53ffff6c0 (LWP 30422)]
Thread 44 "tvh:dvr" hit Breakpoint 1, pvr_generate_filename (de=de@entry=0x7fd550006080, ss=ss@entry=0x7fd538000b70) at src/dvr/dvr_rec.c:1188
1188 src/dvr/dvr_rec.c: Nie ma takiego pliku ani katalogu
(Nie ma takiego pliku ani katalogu = No such file or directory)
(gdb) p *ptmp
$1 = 0 '\000
(gdb) bt full
#0 pvr_generate_filename (de=de@entry=0x7fd550006080, ss=ss@entry=0x7fd538000b70) at src/dvr/dvr_rec.c:1188
filename = "/home/hts/multimedia/tv/2024-03-15_Wojna polsko-ruska$n.ts", '\000' <repeats 4037 times>
path = "/home/hts/multimedia/tv\0002024-03-15_Wojna polsko-ruska$n.ts", '\000' <repeats 4038 times>
ptmp = '\000' <repeats 4095 times>
number = '\000' <repeats 15 times>
tmp = "ts\0004-03-15\000o-ruska", '\000' <repeats 4077 times>
lastpath = <optimized out>
tally = <optimized out>
st = {st_dev = 0, st_ino = 0, st_nlink = 0, st_mode = 0, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 0, st_blksize = 0,
st_blocks = 0, st_atim = {tv_sec = 0, tv_nsec = 0}, st_mtim = {tv_sec = 0, tv_nsec = 0}, st_ctim = {tv_sec = 0, tv_nsec = 0}, __glibc_reserved = {
0, 0, 0}}
s = <optimized out>
x = <optimized out>
fmtstr = <optimized out>
dirsep = <optimized out>
tm = {tm_sec = 0, tm_min = 45, tm_hour = 22, tm_mday = 15, tm_mon = 2, tm_year = 124, tm_wday = 5, tm_yday = 74, tm_isdst = 0, tm_gmtoff = 3600,
tm_zone = 0x557af3e04cf0 "CET"}
cfg = <optimized out>
m = <optimized out>
l = <optimized out>
j = 24
k = <optimized out>
max = <optimized out>
dir_dosubs = <optimized out>
__PRETTY_FUNCTION__ = "pvr_generate_filename"
#1 0x0000557aefe08209 in dvr_rec_start (ss=0x7fd538000b70, de=<optimized out>) at src/dvr/dvr_rec.c:1325
e = <optimized out>
muxer = <optimized out>
i = <optimized out>
asp = "\310\360zU\000\000\323\016\330\357zU\000"
ch = "\177\000\000\240\226", <incomplete sequence \361>
f = <optimized out>
st = {st_dev = 65026, st_ino = 2621441, st_nlink = 3, st_mode = 16893, st_uid = 0, st_gid = 1014, __pad0 = 0, st_rdev = 0, st_size = 4096,
st_blksize = 4096, st_blocks = 8, st_atim = {tv_sec = 1710531147, tv_nsec = 623220869}, st_mtim = {tv_sec = 1710541111, tv_nsec = 591109859},
st_ctim = {tv_sec = 1710541111, tv_nsec = 591109859}, __glibc_reserved = {0, 0, 0}}
si = 0x7fd538000b78
ssc = <optimized out>
info = <optimized out>
ss_copy = <optimized out>
res = "zU\000\000\000\000\000\000\000\000\000\000\017\006"
sr = "\000p\017\000", <incomplete sequence \325>
cfg = 0x557af3f23d20
prch = 0x557af48cf8b0
si = <optimized out>
ss_copy = <optimized out>
ssc = <optimized out>
res = <optimized out>
asp = <optimized out>
sr = <optimized out>
ch = <optimized out>
cfg = <optimized out>
prch = <optimized out>
info = <optimized out>
e = <optimized out>
f = <optimized out>
muxer = <optimized out>
st = <optimized out>
i = <optimized out>
_err = <optimized out>
#2 dvr_thread_rec_start (_de=_de@entry=0x7fd53fffe840, ss=ss@entry=0x7fd538000b70, run=run@entry=0x7fd53fffe838, started=started@entry=0x7fd53fffe83c,
dts_offset=dts_offset@entry=0x7fd53fffe848, postproc=postproc@entry=0x0) at src/dvr/dvr_rec.c:1577
code = <optimized out>
de = <optimized out>
prch = <optimized out>
ret = 0
#3 0x0000557aefe09263 in dvr_thread (aux=<optimized out>) at src/dvr/dvr_rec.c:1820
de = 0x7fd550006080
prch = <optimized out>
sq = <optimized out>
backlog = {tqh_first = 0x0, tqh_last = 0x7fd53fffe850}
sm = 0x7fd570005570
sm2 = <optimized out>
pkt = <optimized out>
pkt2 = <optimized out>
pkt3 = <optimized out>
ss = <optimized out>
run = 1
started = 0
muxing = <optimized out>
comm_skip = <optimized out>
rs = <optimized out>
epg_running = <optimized out>
old_epg_running = <optimized out>
epg_pause = <optimized out>
commercial = <optimized out>
running_disabled = <optimized out>
packets = <optimized out>
dts_offset = -9223372036854775808
now = <optimized out>
real_start = <optimized out>
start_time = <optimized out>
running_start = <optimized out>
running_stop = <optimized out>
postproc = <optimized out>
ubuf = '\000' <repeats 16 times>, "\030\000\000\000\000\000\000\000\320\350\377?\325\177\000\000\220"
#4 0x0000557aefd70b89 in thread_wrapper (p=0x557af4c2ed20) at src/tvh_thread.c:91
ts = 0x557af4c2ed20
set = {__val = {16388, 0 <repeats 15 times>}}
r = <optimized out>
#5 0x00007fd59a0a8134 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6 0x00007fd59a1287dc in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
(gdb)
(gdb) s
htsstr_substitute (src=src@entry=0x7fd53fffa618 "2024-03-15_Wojna polsko-ruska$n.ts", dst=dst@entry=0x7fd53fffb600 "", dstlen=dstlen@entry=4096,
first=first@entry=36, sub=sub@entry=0x557af10a8660 <dvr_subs_tally>, aux=aux@entry=0x7fd53fffa520, tmp=0x7fd53fffc600 "ts", tmplen=4096)
at src/htsstr.c:234
234 src/htsstr.c: Nie ma takiego pliku ani katalogu.
(gdb)
Nie ma takiego pliku ani katalogu. = No such file or directory
(gdb) p *s
value has been optimized out
(gdb) (p *s)
Undefined command: "". Try "help".
(gdb) s
236 in src/htsstr.c
(gdb) s
237 in src/htsstr.c
(gdb) s
246 in src/htsstr.c
(gdb) ( p *s )
Undefined command: "". Try "help".
(gdb)
There is now a file in destination path named ''$'\377\376''2'
(output of ls)