View Issue Details

IDProjectCategoryView StatusLast Update
0000946bareos-coredirectorpublic2023-07-04 15:17
Reporterloosi Assigned Tobruno-at-bareos  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSUbuntuOS Version16.04
Product Version17.2.5 
Summary0000946: bareos-dir crashes with .bvfs_lsdirs jobid
DescriptionBareos-dir crashes while listing directories with :

.bvfs_lsdirs jobid=202278 path=""

Found out via Webinterface and reproduced it with bconsole.
"gdb -q -ex 'file /usr/sbin/bareos-dir' -ex 'run -v -f'" points out a "0x00007ffff5f3a746 in strlen () from /lib/x86_64-linux-gnu/libc.so.6".

The backtrace itself doesn't really do much help (attached).
I do have multiple coredumps here, but thats 360MB.

GDB into the coredump reveals

0000003 0x00007fb0ef927746 in strlen () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
0000004 0x00007fb0f0a8fe6e in bvsnprintf (
    buffer=0x7fb0d4010370 "SELECT 'D', PathId, Path, JobId, LStat, FileId FROM ( SELECT Path1.PathId AS PathId, Path1.Path AS Path, lower(Path1.Path) AS lpath, listfile1.JobId AS JobId, listfile1.LStat AS LStat, listfile1.FileI"...,
    maxlen=maxlen@entry=765,
    format=0x7fb0eca0f6ab " ) AS listpath1 LEFT JOIN ( SELECT PVD1.PathId AS PathId FROM ( SELECT PV1.PathId AS PathId, MAX(JobId) AS MaxJobId FROM PathVisibility AS PV1 WHERE JobId IN (%s) GROUP BY PathId ) AS PVD1 INNER JOIN "...,
    format@entry=0x7fb0eca0f468 "SELECT 'D', PathId, Path, JobId, LStat, FileId FROM ( SELECT Path1.PathId AS PathId, Path1.Path AS Path, lower(Path1.Path) AS lpath, listfile1.JobId AS JobId, listfile1.LStat AS LStat, listfile1.FileI"...,
    args=args@entry=0x7fb0e67fb9a0) at bsnprintf.c:341
        ch = <optimized out>
        value = <optimized out>
        strvalue = 0x7d0 <error: Cannot access memory at address 0x7d0>
        wstrvalue = <optimized out>
        min = 0
        max = -1
        state = 6
        flags = 0
        cflags = <optimized out>
        currlen = 573
        base = <optimized out>
        fvalue = <optimized out>
Steps To Reproduce*.bvfs_lsdirs jobid=$ANYJOBID$ path=""
TagsNo tags attached.

Activities

loosi

loosi

2018-05-14 19:24

reporter  

bareos-dir.bactrace (3,052 bytes)
bruno-at-bareos

bruno-at-bareos

2023-07-04 15:17

manager   ~0005128

Works on 22.1.0

*.bvfs_lsdirs jobid=13231 path=""
1195155 0 0 A A A A A A A A A A A A A A .
93746 0 0 A A A A A A A A A A A A A A /

Issue History

Date Modified Username Field Change
2018-05-14 19:24 loosi New Issue
2018-05-14 19:24 loosi File Added: bareos-dir.bactrace
2023-07-04 15:17 bruno-at-bareos Assigned To => bruno-at-bareos
2023-07-04 15:17 bruno-at-bareos Status new => closed
2023-07-04 15:17 bruno-at-bareos Resolution open => fixed
2023-07-04 15:17 bruno-at-bareos Note Added: 0005128