This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/20847] New: tst-vfork3 failure


https://sourceware.org/bugzilla/show_bug.cgi?id=20847

            Bug ID: 20847
           Summary: tst-vfork3 failure
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: markus at trippelsdorf dot de
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

glibc trunk, linux latest git:

markus@x4 posix % ./tst-vfork3
script 1
script 1
script 1
script 1
script 1
/bin/sh: : No such file or directory
script2.sh failed with status 32512

strace shows:

...
12906 vfork( <unfinished ...>                                                   
12912 execve("/tmp/tst-vfork3.Ox2RZ9/script2.sh", ["script2.sh", "2"], [/* 53
vars */]) = -1 ENOEXEC (Exec format error)                                      
12912 execve("/bin/sh", ["/bin/sh", "\1", "2"], [/* 53 vars */] <unfinished
...>                                                                            
12906 <... vfork resumed> )             = 12912                                 
12906 wait4(12912,  <unfinished ...>                                            
12912 <... execve resumed> )            = 0                                     
12912 brk(NULL)                         = 0x1a60000 
...
12912 open("\1", O_RDONLY)              = -1 ENOENT (No such file or directory) 
12912 stat(".", {st_mode=S_IFDIR|0755, st_size=6840, ...}) = 0                  
12912 stat("/tmp/tst-vfork3.Ox2RZ9/\1", 0x7ffebae61900) = -1 ENOENT (No such
file or directory)                                                              
12912 stat("/var/texlive_2016/bin/x86_64-linux/\1", 0x7ffebae61900) = -1 ENOENT
(No such file or directory)                                                     
12912 stat("/home/markus/bin/\1", 0x7ffebae61900) = -1 ENOENT (No such file or
directory)                                                                      
12912 stat("/usr/local/bin/\1", 0x7ffebae61900) = -1 ENOENT (No such file or
directory)                                                                      
12912 stat("/usr/bin/\1", 0x7ffebae61900) = -1 ENOENT (No such file or
directory)                                                                      
12912 stat("/bin/\1", 0x7ffebae61900)   = -1 ENOENT (No such file or directory) 
12912 stat("/opt/bin/\1", 0x7ffebae61900) = -1 ENOENT (No such file or
directory)                                                                      
12912 stat("/usr/x86_64-pc-linux-gnu/gcc-bin/7.0.0/\1", 0x7ffebae61900) = -1
ENOENT (No such file or directory)                                              
12912 stat("/usr/lib64/subversion/bin/\1", 0x7ffebae61900) = -1 ENOENT (No such
file or directory)                                                              
12912 stat("/usr/games/bin/\1", 0x7ffebae61900) = -1 ENOENT (No such file or
directory)                                                                      
...                                                                             
12912 write(2, "/bin/sh: \1: No such file or dire"..., 38) = 3
...

Notice the strange "\1" in the execve() call.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]