This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug glob/22183] New: commit 5554304f0ddd ("posix: Allow glob to match dangling symlinks") cause "make" segfaults
- From: "markus at trippelsdorf dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 22 Sep 2017 08:16:06 +0000
- Subject: [Bug glob/22183] New: commit 5554304f0ddd ("posix: Allow glob to match dangling symlinks") cause "make" segfaults
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=22183
Bug ID: 22183
Summary: commit 5554304f0ddd ("posix: Allow glob to match
dangling symlinks") cause "make" segfaults
Product: glibc
Version: unspecified
Status: NEW
Severity: critical
Priority: P2
Component: glob
Assignee: unassigned at sourceware dot org
Reporter: markus at trippelsdorf dot de
CC: adhemerval.zanella at linaro dot org
Target Milestone: ---
Since:
commit 5554304f0dddf75dc27cc6250fc53355161fd16a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Sep 4 16:22:28 2017 -0300
posix: Allow glob to match dangling symlinks [BZ #866]
I get, e.g.:
markus@x4 linux % make
[1] 303 segmentation fault nice -n 19 make
...
52590 8275 openat(AT_FDCWD, "/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
52591 8275 read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@q\2\0\0\0\0\0"..., 832) = 832
52592 8275 fstat(3, {st_mode=S_IFREG|0755, st_size=16657728, ...}) = 0
52593 8275 mmap(NULL, 1779696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x7f3861552000
52594 8275 mprotect(0x7f38616fa000, 4096, PROT_NONE) = 0
52595 8275 mmap(0x7f38616fb000, 24576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a8000) = 0x7f38616fb000
52596 8275 mmap(0x7f3861701000, 14320, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3861701000
52597 8275 close(3) = 0
52598 8275 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x7f386154f000
52599 8275 arch_prctl(ARCH_SET_FS, 0x7f386154f740) = 0
52600 8275 mprotect(0x7f38616fb000, 12288, PROT_READ) = 0
52601 8275 mprotect(0x414000, 4096, PROT_READ) = 0
52602 8275 mprotect(0x7f386175a000, 4096, PROT_READ) = 0
52603 8275 munmap(0x7f3861705000, 171226) = 0
52604 8275 brk(NULL) = 0x1fba000
52605 8275 brk(0x1fdb000) = 0x1fdb000
52606 8275 openat(AT_FDCWD, "/usr/lib/locale/locale-archive",
O_RDONLY|O_CLOEXEC) = 3
52607 8275 fstat(3, {st_mode=S_IFREG|0644, st_size=3155424, ...}) = 0
52608 8275 mmap(NULL, 3155424, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f386124c000
52609 8275 close(3) = 0
52610 8275 ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
52611 8275 newfstatat(AT_FDCWD, ".8267.tmp", 0x1fbc5b8, AT_SYMLINK_NOFOLLOW) =
-1 ENOENT (No such file or directory)
52612 8275 unlinkat(AT_FDCWD, ".8267.tmp", 0) = -1 ENOENT (No such file or
directory)
52613 8275 newfstatat(AT_FDCWD, ".8267.o", 0x1fbc6d8, AT_SYMLINK_NOFOLLOW) =
-1 ENOENT (No such file or directory)
52614 8275 unlinkat(AT_FDCWD, ".8267.o", 0) = -1 ENOENT (No such file or
directory)
52615 8275 lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
52616 8275 close(0) = 0
52617 8275 close(1) = 0
52618 8275 close(2) = 0
52619 8275 exit_group(0) = ?
52620 8275 +++ exited with 0 +++
52621 8267 <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0,
NULL) = 8275
52622 8267 rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[],
sa_flags=SA_RESTORER, sa_restorer=0x7fc196ed8070}, {sa_handler=0x43ca80,
sa_mask=[], sa_flags=SA_RESTORER, sa_res torer=0x7fc196ed8070}, 8) = 0
52623 8267 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
52624 8267 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=8275,
si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
52625 8267 wait4(-1, 0x7ffdd4d28a58, WNOHANG, NULL) = -1 ECHILD (No child
processes)
52626 8267 rt_sigreturn({mask=[]}) = 0
52627 8267 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
52628 8267 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
52629 8267 exit_group(0) = ?
52630 8267 +++ exited with 0 +++
52631 7948 <... read resumed> "", 198) = 0
52632 7948 close(4) = 0
52633 7948 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 8267
52634 7948 read(3, "rch/$(SRCARCH)/kernel/vmlinux.ld"..., 4096) = 4096
52635 7948 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xc8}
---
52636 7948 +++ killed by SIGSEGV +++
--
You are receiving this mail because:
You are on the CC list for the bug.