Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Sep 2020 15:07:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   [Bug 249166] ports-mgmt/pkg audit -F Segmentation fault
Message-ID:  <bug-249166-32340-ofuxHLN3yg@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-249166-32340@https.bugs.freebsd.org/bugzilla/>
References:  <bug-249166-32340@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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

--- Comment #1 from Matthias Andree <mandree@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.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249166-32340-ofuxHLN3yg>