[Bug 249166] ports-mgmt/pkg audit -F Segmentation fault

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 7 15:07:45 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249166

--- Comment #1 from Matthias Andree <mandree at FreeBSD.org> ---
...its final words, with truss -f:

38964: openat(4,"local.conf",O_RDONLY,00)        = 5 (0x5)
38964: fstat(5,{ mode=-rw-r--r-- ,inode=1163531,size=109,blksize=4096 }) = 0
(0x0)
38964: mmap(0x0,109,PROT_READ,MAP_SHARED,5,0x0)  = 34376097792 (0x800f9a000)
38964: munmap(0x800f9a000,109)                   = 0 (0x0)
38964: close(5)                                  = 0 (0x0)
38964: close(4)                                  = 0 (0x0)
38964: openat(AT_FDCWD,"/var/db/pkg",O_RDONLY|O_DIRECTORY|O_CLOEXEC,00) = 4
(0x4)
38964: fstatat(4,"vuln.xml",{ mode=-r--r--r--
,inode=11,size=6339069,blksize=131072 },0x0) = 0 (0x0)
38964: getrandom("(garbled stuff here)"...,40,0) = 40 (0x28)
38964: mmap(0x0,1104,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =
34376097792 (0x800f9a000)
38964: minherit(0x800f9a000,1104,INHERIT_ZERO)   = 0 (0x0)
38964: fstatat(AT_FDCWD,"/tmp",{ mode=drwxrwxrwt ,inode=4,size=18,blksize=16384
},0x0) = 0 (0x0)
38964: open("/tmp/vuln.xml.bz2.FlL4hBhW",O_RDWR|O_CREAT|O_EXCL,0600) = 5 (0x5)
38964: SIGNAL 11 (SIGSEGV) code=SEGV_MAPERR trapno=12 addr=0x20
38964: process killed, signal = 11 (core dumped)

(gdb) bt
#0  0x000000000049775a in pkg_fetch_file_to_fd ()
#1  0x000000000049765d in pkg_fetch_file_tmp ()
#2  0x000000000044cb1b in pkg_audit_fetch ()
#3  0x000000000029faaa in exec_audit ()
#4  0x00000000002a8bbc in main ()

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-pkg mailing list