View Issue Details

IDProjectCategoryView StatusLast Update
0000946bareos-core[All Projects] directorpublic2018-06-08 14:07
ReporterloosiAssigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSUbuntuOS Version16.04
Product Version17.2.5 
Fixed in Version 
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.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

Activities

loosi

loosi

2018-05-14 19:24

reporter  

bareos-dir.bactrace (3,052 bytes)

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