View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000140 | easycwmp | Bug | public | 2016-06-10 16:01 | 2016-07-14 15:50 |
Reporter | okraits | Assigned To | mohamed.kallel | ||
Priority | urgent | Severity | crash | Reproducibility | sometimes |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | OpenWRT | OS Version | ChaosCalmer |
Summary | 0000140: easycwmp crashes with Segmentation Fault | ||||
Description | 2 of our devices crashed with segmentation fault. One ran for ~ 24h and then crashed, the other one ran for ~ 10 min and then crashed. On both devices /etc/easycwmp/.backup.xml has a size of 0 bytes after the crash. Because of that, easycwmd crashes again with segmentation fault if you try to run it again. Same effect as in http://support.easycwmp.org/view.php?id=32 easycwmp version is 1.3.1. I think one can trace back the error to this line (see strace log): https://github.com/pivasoftware/easycwmp/blob/master/src/backup.c#L57 I guess that this is the last open call in the strace log. | ||||
Steps To Reproduce | I don't know exactly what caused the initial crash (i guess some issue in the xml handling) but you can make easycwmpd crash again by running it when the backup file has still a size of 0 bytes. | ||||
Additional Information | The last lines of "strace -f -v easycwmpd -f" are: open("/var/run/easycwmp.pid", O_RDWR|O_CREAT, 0644) = 3 flock(3, LOCK_EX|LOCK_NB) = 0 fcntl64(3, F_GETFD) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 umask(037) = 022 getuid() = 0 brk(0) = 0xa2c000 brk(0xa2d000) = 0xa2d000 epoll_create(32) = 4 fcntl64(4, F_GETFD) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 access("/etc/easycwmp", F_OK) = 0 access("/etc/easycwmp/.backup.xml", F_OK) = 0 open("/etc/easycwmp/.backup.xml", O_RDONLY) = 5 ioctl(5, TIOCNXCL, 0x7fc50770) = -1 ENOTTY (Inappropriate ioctl for device) brk(0xa2e000) = 0xa2e000 read(5, "", 4096) = 0 close(5) = 0 open("/etc/easycwmp/.backup.xml", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5 ioctl(5, TIOCNXCL, 0x7fc50718) = -1 ENOTTY (Inappropriate ioctl for device) --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} --- +++ killed by SIGSEGV +++ Segmentation fault | ||||
Tags | No tags attached. | ||||
e-mail notification | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2016-06-10 16:01 | okraits | New Issue | |
2016-07-14 15:50 | mohamed.kallel | Note Added: 0000503 | |
2016-07-14 15:50 | mohamed.kallel | Status | new => resolved |
2016-07-14 15:50 | mohamed.kallel | Resolution | open => fixed |
2016-07-14 15:50 | mohamed.kallel | Assigned To | => mohamed.kallel |