bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pgrep and pkill (any? arguments): cannot allocate 4294967295 bytes


From: Paul Dufresne
Subject: Re: pgrep and pkill (any? arguments): cannot allocate 4294967295 bytes
Date: Tue, 02 Feb 2021 09:57:01 -0500
User-agent: Zoho Mail

(gdb) l
429     {
430             PROCTAB *ptp;
431             int flags = 0;
432     
433             if (opt_pattern || opt_full || opt_longlong)
434                     flags |= PROC_FILLCOM;
435             if (opt_ruid || opt_rgid)
436                     flags |= PROC_FILLSTATUS;
437             if (opt_oldest || opt_newest || opt_pgrp || opt_sid || opt_term)
438                     flags |= PROC_FILLSTAT;

(gdb) [disassemble]
Dump of assembler code for function select_procs:
   0x08034710 <+0>:       push   %ebp
   0x08034711 <+1>:       call   0x8035509 <__x86.get_pc_thunk.bp>
   0x08034716 <+6>:       add    $0x47d2,%ebp
   0x0803471c <+12>:      push   %edi
   0x0803471d <+13>:      push   %esi
   0x0803471e <+14>:      push   %ebx
   0x0803471f <+15>:      sub    $0xaac,%esp
   0x08034725 <+21>:      mov    %eax,0x4c(%esp)
   0x08034729 <+25>:      mov    %ebp,%ebx
   0x0803472b <+27>:      mov    %gs:0x14,%eax
   0x08034731 <+33>:      mov    %eax,0xa9c(%esp)
   0x08034738 <+40>:      xor    %eax,%eax
   0x0803473a <+42>:      call   0x8032f90 <getpid@plt>
   0x0803473f <+47>:      sub    $0xc,%esp
   0x08034742 <+50>:      mov    %eax,0x3c(%esp)
   0x08034746 <+54>:      push   $0x0
   0x08034748 <+56>:      call   0x8032eb0 <sysconf@plt>
=> 0x0803474d <+61>:      mov    $0x2,%ebx
   0x08034752 <+66>:      mov    %eax,(%esp)
   0x08034755 <+69>:      mov    %eax,%edi
   0x08034757 <+71>:      mov    %eax,0x44(%esp)
   0x0803475b <+75>:      call   0x8033f40 <xmalloc>
--Type <RET> for more, q to quit, c to continue without paging--


reply via email to

[Prev in Thread] Current Thread [Next in Thread]