Project

General

Profile

Actions

Bug #10579

closed

Blinkled segfaults with SEGV_MAPERR

Added by Kacper Boström over 4 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
blinkled
Target version:
-
Start date:
05/20/2020
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
2.4.5
Affected Plus Version:
Affected Architecture:
amd64

Description

Hello,

blinkled seem to segfault on my pfSense.

[2.4.5-RELEASE][root@pfSense]/: truss blinkled -i em0 -d -l /dev/led/led2
mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366173184 (0x800623000)
issetugid()                                      = 0 (0x0)
openat(AT_FDCWD,"/etc/libmap.conf",O_RDONLY|O_CLOEXEC,00) = 3 (0x3)
fstat(3,{ mode=-rw-r--r-- ,inode=642187,size=47,blksize=32768 }) = 0 (0x0)
mmap(0x0,47,PROT_READ,MAP_PRIVATE,3,0x0)         = 34366205952 (0x80062b000)
close(3)                                         = 0 (0x0)
open("/usr/local/etc/libmap.d",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,0165) ERR#2 'No such file or directory'
munmap(0x80062b000,47)                           = 0 (0x0)
openat(AT_FDCWD,"/var/run/ld-elf.so.hints",O_RDONLY|O_CLOEXEC,00) = 3 (0x3)
read(3,"Ehnt\^A\0\0\0\M^@\0\0\0f\0\0\0\0"...,128) = 128 (0x80)
fstat(3,{ mode=-r--r--r-- ,inode=11,size=230,blksize=32768 }) = 0 (0x0)
pread(3,"/lib:/usr/lib:/usr/lib/compat:/u"...,102,0x80) = 102 (0x66)
close(3)                                         = 0 (0x0)
openat(AT_FDCWD,"/lib/libkvm.so.7",O_RDONLY|O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=80303,size=59144,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 34366205952 (0x80062b000)
mmap(0x0,2154496,PROT_NONE,MAP_GUARD,-1,0x0)     = 34368274432 (0x800824000)
mmap(0x800824000,57344,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 34368274432 (0x800824000)
mmap(0x800a31000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0xd000) = 34370424832 (0x800a31000)
munmap(0x80062b000,4096)                         = 0 (0x0)
close(3)                                         = 0 (0x0)
openat(AT_FDCWD,"/lib/libc.so.7",O_RDONLY|O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=80261,size=1616600,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 34366205952 (0x80062b000)
mmap(0x0,3809280,PROT_NONE,MAP_GUARD,-1,0x0)     = 34370428928 (0x800a32000)
mmap(0x800a32000,1568768,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 34370428928 (0x800a32000)
mmap(0x800db0000,49152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x17e000) = 34374090752 (0x800db0000)
mmap(0x800dbc000,98304,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 34374139904 (0x800dbc000)
munmap(0x80062b000,4096)                         = 0 (0x0)
close(3)                                         = 0 (0x0)
openat(AT_FDCWD,"/lib/libelf.so.2",O_RDONLY|O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=80267,size=93440,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 34366205952 (0x80062b000)
mmap(0x0,2187264,PROT_NONE,MAP_GUARD,-1,0x0)     = 34374238208 (0x800dd4000)
mmap(0x800dd4000,86016,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 34374238208 (0x800dd4000)
mmap(0x800fe9000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x15000) = 34376421376 (0x800fe9000)
munmap(0x80062b000,4096)                         = 0 (0x0)
close(3)                                         = 0 (0x0)
mmap(0x0,102400,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366205952 (0x80062b000)
sysarch(AMD64_SET_FSBASE,0x7fffffffdfc0)         = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)                 = 0 (0x0)
readlink("/etc/malloc.conf",0x7fffffffd6b0,1024) ERR#2 'No such file or directory'
issetugid()                                      = 0 (0x0)
__sysctl(0x7fffffffd550,0x2,0x7fffffffd5a0,0x7fffffffd598,0x800b7f24b,0xd) = 0 (0x0)
__sysctl(0x7fffffffd5a0,0x2,0x7fffffffd664,0x7fffffffd658,0x0,0x0) = 0 (0x0)
mmap(0x0,2097152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34376425472 (0x800fea000)
munmap(0x800fea000,2097152)                      = 0 (0x0)
mmap(0x0,4190208,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34376425472 (0x800fea000)
munmap(0x800fea000,90112)                        = 0 (0x0)
munmap(0x801200000,2002944)                      = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)                 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)                 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)                 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)                 = 0 (0x0)
access("/dev/led/led2",F_OK)                     = 0 (0x0)
sigaction(SIGTERM,{ 0x401190 0x0 ss_t },0x0)     = 0 (0x0)
sigaction(SIGINT,{ 0x401190 0x0 ss_t },0x0)      = 0 (0x0)
mmap(0x0,2097152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34378612736 (0x801200000)
__sysctl(0x7fffffffdb90,0x2,0x800dbe0f0,0x7fffffffdb88,0x0,0x0) = 0 (0x0)
openat(AT_FDCWD,"/dev/mem",O_RDONLY|O_CLOEXEC,00) = 3 (0x3)
fstat(3,{ mode=crw-r----- ,inode=14,size=0,blksize=4096 }) = 0 (0x0)
openat(AT_FDCWD,"/dev/kmem",O_RDONLY|O_CLOEXEC,00) = 4 (0x4)
kldsym(0,KLDSYM_LOOKUP,0x7fffffffd7f0)           = 0 (0x0)
getpid()                                         = 40481 (0x9e21)
kldsym(0,KLDSYM_LOOKUP,0x7fffffffc330)           ERR#2 'No such file or directory'
kldsym(0,KLDSYM_LOOKUP,0x7fffffffc330)           ERR#2 'No such file or directory'
kldsym(0,KLDSYM_LOOKUP,0x7fffffffc330)           ERR#2 'No such file or directory'
kldsym(0,KLDSYM_LOOKUP,0x7fffffffc330)           = 0 (0x0)
kldsym(0,KLDSYM_LOOKUP,0x7fffffffc330)           = 0 (0x0)
kldsym(0,KLDSYM_LOOKUP,0x7fffffffc330)           = 0 (0x0)
kldsym(0,KLDSYM_LOOKUP,0x7fffffffd280)           = 0 (0x0)
kldsym(0,KLDSYM_LOOKUP,0x7fffffffd280)           = 0 (0x0)
kldsym(0,KLDSYM_LOOKUP,0x7fffffffd280)           = 0 (0x0)
kldsym(0,KLDSYM_LOOKUP,0x7fffffffd280)           = 0 (0x0)
lseek(4,0xffffffff827f3f80,SEEK_SET)             = -2105589888 (0xffffffff827f3f80)
read(4,"\0\^A\0\0",4)                            = 4 (0x4)
lseek(4,0xffffffff82ca1ea0,SEEK_SET)             = -2100683104 (0xffffffff82ca1ea0)
read(4,"\0\M-4\M^E\0\0\0\0\0\0\M-4\M-r"...,2048) = 2048 (0x800)
lseek(4,0xffffffff82ca32d0,SEEK_SET)             = -2100677936 (0xffffffff82ca32d0)
read(4,"\0\M-H\M^Q\^D\0\M-x\M^?\M^?\0"...,16)    = 16 (0x10)
lseek(4,0xfffff8000491c800,SEEK_SET)             = -8796016359424 (0xfffff8000491c800)
read(4,"\0\M-@\M^Q\^D\0\M-x\M^?\M^?\M-P2"...,1200) = 1200 (0x4b0)
SIGNAL 11 (SIGSEGV) code=SEGV_MAPERR trapno=12 addr=0xffffffff80612560
process killed, signal = 11 (core dumped)
Actions

Also available in: Atom PDF