Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Switching to Thread 1671.1671]
- server_accept_loop (config_s=0x0, newsock=<synthetic pointer>, sock_out=<synthetic pointer>,
- sock_in=<synthetic pointer>) at sshd.c:1323
- 1323 platform_post_fork_child();
- (gdb) n
- 1324 startup_pipe = startup_p[1];
- (gdb) n
- 1314 if ((pid = fork()) == 0) {
- (gdb) n
- 1324 startup_pipe = startup_p[1];
- (gdb) n
- 1325 close_startup_pipes();
- (gdb) n
- 1326 close_listen_socks();
- (gdb) n
- 1329 log_init(__progname,
- (gdb) n
- 1333 if (rexec_flag)
- (gdb) n
- 1238 *newsock = accept(listen_socks[i],
- (gdb) info inf
- Num Description Executable
- * 2 process 1671 /opt/bia/2015.11/sysroots/cortexa9hf-vfp-neon-bia-linux-gnueabi/usr/sbin/sshd
- 1 process 1662 /opt/bia/2015.11/sysroots/cortexa9hf-vfp-neon-bia-linux-gnueabi/usr/sbin/sshd
- (gdb) inferior 1
- [Switching to inferior 1 [process 1662] (/opt/bia/2015.11/sysroots/cortexa9hf-vfp-neon-bia-linux-gnueabi/usr/sbin/sshd)]
- [Switching to thread 1 (Thread 1662.1662)]
- #0 0xb6c0ac4c in __libc_fork () at ../sysdeps/nptl/fork.c:124
- 124 ../sysdeps/nptl/fork.c: No such file or directory.
- (gdb) fin
- Run till exit from #0 0xb6c0ac4c in __libc_fork () at ../sysdeps/nptl/fork.c:124
- 0xb6eead34 in server_accept_loop (config_s=0x0, newsock=<synthetic pointer>,
- sock_out=<synthetic pointer>, sock_in=<synthetic pointer>) at sshd.c:1314
- 1314 if ((pid = fork()) == 0) {
- Value returned is $1 = 1671
- (gdb) n
- 1339 platform_post_fork_parent(pid);
- (gdb) n
- 1340 if (pid < 0)
- (gdb) n
- 1343 debug("Forked child %ld.", (long)pid);
- (gdb) n
- 1345 close(startup_p[1]);
- (gdb) detach inferior 2
- Detaching from program: /opt/bia/2015.11/sysroots/cortexa9hf-vfp-neon-bia-linux-gnueabi/usr/sbin/sshd, process 1671
- (gdb) info inf
- Num Description Executable
- * 2 <null> /opt/bia/2015.11/sysroots/cortexa9hf-vfp-neon-bia-linux-gnueabi/usr/sbin/sshd
- 1 process 1662 /opt/bia/2015.11/sysroots/cortexa9hf-vfp-neon-bia-linux-gnueabi/usr/sbin/sshd
- (gdb) n
- The program is not being run.
- (gdb) inferior 1
- [Switching to inferior 1 [process 1662] (/opt/bia/2015.11/sysroots/cortexa9hf-vfp-neon-bia-linux-gnueabi/usr/sbin/sshd)]
- [Switching to thread 1 (Thread 1662.1662)]
- #0 server_accept_loop (config_s=0x0, newsock=<synthetic pointer>, sock_out=<synthetic pointer>,
- sock_in=<synthetic pointer>) at sshd.c:1345
- 1345 close(startup_p[1]);
- (gdb) info inferior
- Num Description Executable
- 2 <null> /opt/bia/2015.11/sysroots/cortexa9hf-vfp-neon-bia-linux-gnueabi/usr/sbin/sshd
- * 1 process 1662 /opt/bia/2015.11/sysroots/cortexa9hf-vfp-neon-bia-linux-gnueabi/usr/sbin/sshd
- (gdb) remove-inferiors 2
- (gdb) info inf
- Num Description Executable
- * 1 process 1662 /opt/bia/2015.11/sysroots/cortexa9hf-vfp-neon-bia-linux-gnueabi/usr/sbin/sshd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement