Flole
OK, you convinced me 🙂
(gdb) b dvr_rec.c:1152
Breakpoint 1 at 0x55959df9bf40: file src/dvr/dvr_rec.c, line 1152.
(gdb) c
Continuing.
[New Thread 0x7f5e4a6f36c0 (LWP 85350)]
[Thread 0x7f5e4aef76c0 (LWP 84027) exited]
[Thread 0x7f5e4aaf56c0 (LWP 83966) exited]
[Thread 0x7f5e4acf66c0 (LWP 83953) exited]
[New Thread 0x7f5e4a4f26c0 (LWP 85351)]
[Thread 0x7f5e4a4f26c0 (LWP 85351) exited]
[Thread 0x7f5e4a6f36c0 (LWP 85350) exited]
[New Thread 0x7f5e4a2f16c0 (LWP 85352)]
[New Thread 0x7f5e4aef76c0 (LWP 85353)]
[Thread 0x7f5e4aef76c0 (LWP 85353) exited]
[Thread 0x7f5e4a2f16c0 (LWP 85352) exited]
[New Thread 0x7f5e4a2f16c0 (LWP 85362)]
[New Thread 0x7f5e4aef76c0 (LWP 85374)]
[New Thread 0x7f5e4acf66c0 (LWP 85375)]
[Thread 0x7f5e4aef76c0 (LWP 85374) exited]
[New Thread 0x7f5e4aaf56c0 (LWP 85376)]
[Thread 0x7f5e4acf66c0 (LWP 85375) exited]
[New Thread 0x7f5e4aef76c0 (LWP 85377)]
[New Thread 0x7f5e4acf66c0 (LWP 85378)]
[New Thread 0x7f5e4a6f36c0 (LWP 85379)]
[Thread 0x7f5e4a2f16c0 (LWP 85362) exited]
[New Thread 0x7f5e4a2f16c0 (LWP 85430)]
[Thread 0x7f5e4a2f16c0 (LWP 85430) exited]
[New Thread 0x7f5e4a2f16c0 (LWP 85537)]
[Thread 0x7f5e4a2f16c0 (LWP 85537) exited]
[New Thread 0x7f5e4a2f16c0 (LWP 85609)]
[New Thread 0x7f5e4a4f26c0 (LWP 85626)]
[New Thread 0x7f5e4a0f06c0 (LWP 85627)]
[Thread 0x7f5e4a2f16c0 (LWP 85609) exited]
[New Thread 0x7f5e4a2f16c0 (LWP 85685)]
[Thread 0x7f5e4a2f16c0 (LWP 85685) exited]
[New Thread 0x7f5e4a2f16c0 (LWP 85769)]
[New Thread 0x7f5e49eef6c0 (LWP 85798)]
[Thread 0x7f5e4a2f16c0 (LWP 85769) exited]
[New Thread 0x7f5e4a2f16c0 (LWP 85799)]
[Switching to Thread 0x7f5e49eef6c0 (LWP 85798)]
Thread 53 "tvh:dvr" hit Breakpoint 1, pvr_generate_filename (de=de@entry=0x7f5e18009670, ss=ss@entry=0x7f5e34001740) at src/dvr/dvr_rec.c:1152
(gdb) # started recording some program
(gdb) bt full
#0 pvr_generate_filename (de=de@entry=0x7f5e18009670, ss=ss@entry=0x7f5e34001740) at src/dvr/dvr_rec.c:1152
filename = "/home/hts/multimedia/tv", '\000' <repeats 4072 times>
path = "/home/hts/multimedia/tv\0002024-03-16_Znachor$n.ts", '\000' <repeats 4049 times>
ptmp = '\000' <repeats 4095 times>
number = '\000' <repeats 15 times>
tmp = "ts\0004-03-16", '\000' <repeats 4085 times>
lastpath = 0x0
tally = 0
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 = 0x7f5e49eed618 "2024-03-16_Znachor$n.ts"
tm = {tm_sec = 0, tm_min = 30, tm_hour = 0, tm_mday = 16, tm_mon = 2, tm_year = 124, tm_wday = 6, tm_yday = 75, tm_isdst = 0, tm_gmtoff = 3600,
tm_zone = 0x5595a1e8acf0 "CET"}
cfg = <optimized out>
m = <optimized out>
l = 24
j = <optimized out>
k = <optimized out>
max = <optimized out>
dir_dosubs = <optimized out>
__PRETTY_FUNCTION__ = "pvr_generate_filename"
#1 0x000055959df9d209 in dvr_rec_start (ss=0x7f5e34001740, de=<optimized out>) at src/dvr/dvr_rec.c:1325
e = <optimized out>
muxer = <optimized out>
i = <optimized out>
asp = "
U\000\000\323^\361\235\225U\000"
ch = "\177\000\000\240\346*\237"
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 = 1710543463, tv_nsec = 412377868}, st_mtim = {tv_sec = 1710543445, tv_nsec = 45027209},
st_ctim = {tv_sec = 1710543445, tv_nsec = 45027209}, __glibc_reserved = {0, 0, 0}}
si = 0x7f5e34001748
ssc = <optimized out>
info = <optimized out>
ss_copy = <optimized out>
res = "\225U\000\000\000\000\000\000\000\000\000\000\017V"
sr = "\000\340\032\0004^"
cfg = 0x5595a1f09e90
prch = 0x5595a1f86f30
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=0x7f5e49eee840, ss=ss@entry=0x7f5e34001740, run=run@entry=0x7f5e49eee838, started=started@entry=0x7f5e49eee83c,
dts_offset=dts_offset@entry=0x7f5e49eee848, postproc=postproc@entry=0x0) at src/dvr/dvr_rec.c:1577
code = <optimized out>
de = <optimized out>
prch = <optimized out>
ret = 0
#3 0x000055959df9e263 in dvr_thread (aux=<optimized out>) at src/dvr/dvr_rec.c:1820
de = 0x7f5e18009670
prch = <optimized out>
sq = <optimized out>
backlog = {tqh_first = 0x0, tqh_last = 0x7f5e49eee850}
sm = 0x7f5e38003330
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\356I^\177\000\000\220"
#4 0x000055959df05b89 in thread_wrapper (p=0x5595a2107310) at src/tvh_thread.c:91
ts = 0x5595a2107310
set = {__val = {16388, 0 <repeats 15 times>}}
r = <optimized out>
#5 0x00007f5e63ea8134 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6 0x00007f5e63f287dc in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
(gdb) n
1153 in src/dvr/dvr_rec.c
(gdb) bt full
#0 pvr_generate_filename (de=de@entry=0x7f5e18009670, ss=ss@entry=0x7f5e34001740) at src/dvr/dvr_rec.c:1153
filename = "/home/hts/multimedia/tv", '\000' <repeats 4072 times>
path = "/home/hts/multimedia/tv\0002024-03-16_Znachor$n.ts", '\000' <repeats 4049 times>
ptmp = '\000' <repeats 4095 times>
number = '\000' <repeats 15 times>
tmp = "ts\0004-03-16", '\000' <repeats 4085 times>
lastpath = 0x0
tally = 0
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 = 0x7f5e49eed618 "2024-03-16_Znachor$n.ts"
tm = {tm_sec = 0, tm_min = 30, tm_hour = 0, tm_mday = 16, tm_mon = 2, tm_year = 124, tm_wday = 6, tm_yday = 75, tm_isdst = 0, tm_gmtoff = 3600,
tm_zone = 0x5595a1e8acf0 "CET"}
cfg = <optimized out>
m = <optimized out>
l = 24
j = <optimized out>
k = <optimized out>
max = <optimized out>
dir_dosubs = <optimized out>
__PRETTY_FUNCTION__ = "pvr_generate_filename"
#1 0x000055959df9d209 in dvr_rec_start (ss=0x7f5e34001740, de=<optimized out>) at src/dvr/dvr_rec.c:1325
e = <optimized out>
muxer = <optimized out>
i = <optimized out>
asp = "
U\000\000\323^\361\235\225U\000"
ch = "\177\000\000\240\346*\237"
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 = 1710543463, tv_nsec = 412377868}, st_mtim = {tv_sec = 1710543445, tv_nsec = 45027209},
st_ctim = {tv_sec = 1710543445, tv_nsec = 45027209}, __glibc_reserved = {0, 0, 0}}
si = 0x7f5e34001748
ssc = <optimized out>
info = <optimized out>
ss_copy = <optimized out>
res = "\225U\000\000\000\000\000\000\000\000\000\000\017V"
sr = "\000\340\032\0004^"
cfg = 0x5595a1f09e90
prch = 0x5595a1f86f30
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=0x7f5e49eee840, ss=ss@entry=0x7f5e34001740, run=run@entry=0x7f5e49eee838, started=started@entry=0x7f5e49eee83c,
dts_offset=dts_offset@entry=0x7f5e49eee848, postproc=postproc@entry=0x0) at src/dvr/dvr_rec.c:1577
code = <optimized out>
de = <optimized out>
prch = <optimized out>
ret = 0
#3 0x000055959df9e263 in dvr_thread (aux=<optimized out>) at src/dvr/dvr_rec.c:1820
de = 0x7f5e18009670
prch = <optimized out>
sq = <optimized out>
backlog = {tqh_first = 0x0, tqh_last = 0x7f5e49eee850}
sm = 0x7f5e38003330
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\356I^\177\000\000\220"
#4 0x000055959df05b89 in thread_wrapper (p=0x5595a2107310) at src/tvh_thread.c:91
ts = 0x5595a2107310
set = {__val = {16388, 0 <repeats 15 times>}}
r = <optimized out>
#5 0x00007f5e63ea8134 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6 0x00007f5e63f287dc in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
(gdb) n
1154 in src/dvr/dvr_rec.c
(gdb) bt full
#0 pvr_generate_filename (de=de@entry=0x7f5e18009670, ss=ss@entry=0x7f5e34001740) at src/dvr/dvr_rec.c:1154
filename = "/home/hts/multimedia/tv/2024-03-16_Znachor$n.ts", '\000' <repeats 4048 times>
path = "/home/hts/multimedia/tv\0002024-03-16_Znachor$n.ts", '\000' <repeats 4049 times>
ptmp = '\000' <repeats 4095 times>
number = '\000' <repeats 15 times>
tmp = "ts\0004-03-16", '\000' <repeats 4085 times>
lastpath = 0x0
tally = 0
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 = 0x7f5e49eed618 "2024-03-16_Znachor$n.ts"
tm = {tm_sec = 0, tm_min = 30, tm_hour = 0, tm_mday = 16, tm_mon = 2, tm_year = 124, tm_wday = 6, tm_yday = 75, tm_isdst = 0, tm_gmtoff = 3600,
tm_zone = 0x5595a1e8acf0 "CET"}
cfg = <optimized out>
m = <optimized out>
l = 24
j = 23
k = <optimized out>
max = <optimized out>
dir_dosubs = <optimized out>
__PRETTY_FUNCTION__ = "pvr_generate_filename"
#1 0x000055959df9d209 in dvr_rec_start (ss=0x7f5e34001740, de=<optimized out>) at src/dvr/dvr_rec.c:1325
e = <optimized out>
muxer = <optimized out>
i = <optimized out>
asp = "
U\000\000\323^\361\235\225U\000"
ch = "\177\000\000\240\346*\237"
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 = 1710543463, tv_nsec = 412377868}, st_mtim = {tv_sec = 1710543445, tv_nsec = 45027209},
st_ctim = {tv_sec = 1710543445, tv_nsec = 45027209}, __glibc_reserved = {0, 0, 0}}
si = 0x7f5e34001748
ssc = <optimized out>
info = <optimized out>
ss_copy = <optimized out>
res = "\225U\000\000\000\000\000\000\000\000\000\000\017V"
sr = "\000\340\032\0004^"
cfg = 0x5595a1f09e90
prch = 0x5595a1f86f30
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=0x7f5e49eee840, ss=ss@entry=0x7f5e34001740, run=run@entry=0x7f5e49eee838, started=started@entry=0x7f5e49eee83c,
dts_offset=dts_offset@entry=0x7f5e49eee848, postproc=postproc@entry=0x0) at src/dvr/dvr_rec.c:1577
code = <optimized out>
de = <optimized out>
prch = <optimized out>
ret = 0
#3 0x000055959df9e263 in dvr_thread (aux=<optimized out>) at src/dvr/dvr_rec.c:1820
de = 0x7f5e18009670
prch = <optimized out>
sq = <optimized out>
backlog = {tqh_first = 0x0, tqh_last = 0x7f5e49eee850}
sm = 0x7f5e38003330
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\356I^\177\000\000\220"
#4 0x000055959df05b89 in thread_wrapper (p=0x5595a2107310) at src/tvh_thread.c:91
ts = 0x5595a2107310
set = {__val = {16388, 0 <repeats 15 times>}}
r = <optimized out>
#5 0x00007f5e63ea8134 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6 0x00007f5e63f287dc in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
1155 in src/dvr/dvr_rec.c
(gdb) bt full
#0 pvr_generate_filename (de=de@entry=0x7f5e18009670, ss=ss@entry=0x7f5e34001740) at src/dvr/dvr_rec.c:1155
filename = "/home/hts/multimedia/tv/2024-03-16_Znachor$n.ts", '\000' <repeats 4048 times>
path = "/home/hts/multimedia/tv\0002024-03-16_Znachor$n.ts", '\000' <repeats 4049 times>
ptmp = '\000' <repeats 4095 times>
number = '\000' <repeats 15 times>
tmp = "ts\0004-03-16", '\000' <repeats 4085 times>
lastpath = 0x0
tally = 0
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 = 0x7f5e49eed618 "2024-03-16_Znachor$n.ts"
tm = {tm_sec = 0, tm_min = 30, tm_hour = 0, tm_mday = 16, tm_mon = 2, tm_year = 124, tm_wday = 6, tm_yday = 75, tm_isdst = 0, tm_gmtoff = 3600,
tm_zone = 0x5595a1e8acf0 "CET"}
cfg = <optimized out>
m = <optimized out>
l = 24
j = 23
k = <optimized out>
max = <optimized out>
dir_dosubs = <optimized out>
__PRETTY_FUNCTION__ = "pvr_generate_filename"
#1 0x000055959df9d209 in dvr_rec_start (ss=0x7f5e34001740, de=<optimized out>) at src/dvr/dvr_rec.c:1325
e = <optimized out>
muxer = <optimized out>
i = <optimized out>
asp = "
U\000\000\323^\361\235\225U\000"
ch = "\177\000\000\240\346*\237"
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 = 1710543463, tv_nsec = 412377868}, st_mtim = {tv_sec = 1710543445, tv_nsec = 45027209},
st_ctim = {tv_sec = 1710543445, tv_nsec = 45027209}, __glibc_reserved = {0, 0, 0}}
si = 0x7f5e34001748
ssc = <optimized out>
info = <optimized out>
ss_copy = <optimized out>
res = "\225U\000\000\000\000\000\000\000\000\000\000\017V"
sr = "\000\340\032\0004^"
cfg = 0x5595a1f09e90
prch = 0x5595a1f86f30
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=0x7f5e49eee840, ss=ss@entry=0x7f5e34001740, run=run@entry=0x7f5e49eee838, started=started@entry=0x7f5e49eee83c,
dts_offset=dts_offset@entry=0x7f5e49eee848, postproc=postproc@entry=0x0) at src/dvr/dvr_rec.c:1577
code = <optimized out>
de = <optimized out>
prch = <optimized out>
ret = 0
#3 0x000055959df9e263 in dvr_thread (aux=<optimized out>) at src/dvr/dvr_rec.c:1820
de = 0x7f5e18009670
prch = <optimized out>
sq = <optimized out>
backlog = {tqh_first = 0x0, tqh_last = 0x7f5e49eee850}
sm = 0x7f5e38003330
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\356I^\177\000\000\220"
#4 0x000055959df05b89 in thread_wrapper (p=0x5595a2107310) at src/tvh_thread.c:91
ts = 0x5595a2107310
set = {__val = {16388, 0 <repeats 15 times>}}
r = <optimized out>
#5 0x00007f5e63ea8134 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6 0x00007f5e63f287dc in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
(gdb)