ubuntu-bug argument issue with complete path to .crash file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
Fix Released
|
Undecided
|
Unassigned | ||
apport (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt | ||
Jaunty |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
This command shows an error, it can't handle the file with full path correctly. I'll attach a fix for this.
$ ubuntu-bug /var/crash/
$ sudo strace ubuntu-bug /var/crash/
execve(
brk(0) = 0x8d3b000
access(
mmap2(NULL, 4096, PROT_READ|
access(
open("/
fstat64(3, {st_mode=
mmap2(NULL, 74485, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb800b000
close(3) = 0
access(
open("/
read(3, "\177ELF\
fstat64(3, {st_mode=
mmap2(NULL, 4096, PROT_READ|
mmap2(NULL, 1407336, PROT_READ|
mprotect(0xe50000, 4096, PROT_NONE) = 0
mmap2(0xe51000, 12288, PROT_READ|
mmap2(0xe54000, 10600, PROT_READ|
close(3) = 0
mmap2(NULL, 4096, PROT_READ|
set_thread_
mprotect(0xe51000, 8192, PROT_READ) = 0
mprotect(0x805e000, 4096, PROT_READ) = 0
mprotect(0x8f1000, 4096, PROT_READ) = 0
munmap(0xb800b000, 74485) = 0
getpid() = 18934
rt_sigaction(
geteuid32() = 0
brk(0) = 0x8d3b000
brk(0x8d5c000) = 0x8d5c000
getppid() = 18933
getcwd(
open("/
fcntl64(3, F_DUPFD, 10) = 10
close(3) = 0
fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
rt_sigaction(
rt_sigaction(
rt_sigaction(
rt_sigaction(
rt_sigaction(
rt_sigaction(
read(10, "#!/bin/sh -e\n\n# filter out -p an"..., 8192) = 2020
open("/dev/null", O_WRONLY|
fcntl64(2, F_DUPFD, 10) = 11
close(2) = 0
fcntl64(11, F_SETFD, FD_CLOEXEC) = 0
dup2(3, 2) = 2
close(3) = 0
write(2, "test: 37: ", 10) = 10
write(2, "Illegal number: /var/crash/
write(2, "\n", 1) = 1
dup2(11, 2) = 2
close(11) = 0
pipe([3, 4]) = 0
clone(child_
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
read(3, "0\n", 128) = 2
read(3, "", 128) = 0
close(3) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 18935
open("/dev/null", O_WRONLY|
fcntl64(1, F_DUPFD, 10) = 11
close(1) = 0
fcntl64(11, F_SETFD, FD_CLOEXEC) = 0
dup2(3, 1) = 1
close(3) = 0
stat64(
stat64(
stat64(
stat64(
clone(child_
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 18936
dup2(11, 1) = 1
close(11) = 0
pipe([3, 4]) = 0
clone(child_
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
read(3, "0\n", 128) = 2
read(3, "", 128) = 0
close(3) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 18937
open("/dev/null", O_WRONLY|
fcntl64(1, F_DUPFD, 10) = 11
close(1) = 0
fcntl64(11, F_SETFD, FD_CLOEXEC) = 0
dup2(3, 1) = 1
close(3) = 0
clone(child_
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 18938
dup2(11, 1) = 1
close(11) = 0
stat64(
geteuid32() = 0
clone(child_
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 18939
--- SIGCHLD (Child exited) @ 0 (0) ---
read(10, "", 8192) = 0
exit_group(0) = ?
Changed in apport: | |
status: | Invalid → Fix Released |
ubuntu-bug isn't upstream.