------- Comment From [email protected] 2016-04-12 03:30 EDT-------
Hi Verified on today's build seem me working  fine

root@system:~# ltrace ps
__libc_start_main(1, 0x3fffe2d3c9e8, 0x3fffe2d3c9f8, 0x3fffe2d3ca98 <unfinished 
...>
__cxa_atexit(0x10017850, 0, 0, 0x3fffe2d3ca98)                                  
                             = 0
strrchr("ps", '/')                                                              
                             = nil
setlocale(LC_ALL, "")                                                           
                             = "en_US.UTF-8"
bindtextdomain("procps-ng", "/usr/share/locale")                                
                             = "/usr/share/locale"
textdomain("procps-ng")                                                         
                             = "procps-ng"
memset(0x3fffe2d3c4b0, '\0', 152)                                               
                             = 0x3fffe2d3c4b0
sigfillset(~<31-32>)                                                            
                             = 0
sigaction(SIGSYS, { 0x10003e90, ~<31-32>, 0xffffffff, 0xffffffffffffffff }, 
nil)                             = 0
sigaction(SIGPWR, { 0x10003e90, ~<31-32>, 0xffffffff, 0xffffffffffffffff }, 
nil)                             = 0
look_up_our_self(0x10030f50, 0x3fffe2d3c328, 0, 8)                              
                             = 0
ioctl(1, 1074295912, 0x3fffe2d3c3c0)                                            
                             = 0
isatty(1)                                                                       
                             = 1
getenv("COLUMNS")                                                               
                             = nil
getenv("LINES")                                                                 
                             = nil
__strncpy_chk(0x3fffe2d3c308, 0x100181c8, 7, 16)                                
                             = 0x3fffe2d3c308
__strdup(0x3fffe2d3c308, 0x100181c8, 7, 0x6e6b6e75)                             
                             = 0x1001e8a1060
strcasecmp("unknown", "os390")                                                  
                             = 6
strcasecmp("unknown", "svr4")                                                   
                             = 2
geteuid()                                                                       
                             = 0
getpagesize()                                                                   
                             = 65536
uptime(0, 0, 0, 0)                                                              
                             = 0x16c32
dcgettext(0, 0x10018380, 5, 0x1001e8a1080)                                      
                             = 0x10018380
strcmp("ucmd", "pid")                                                           
                             = 5
strcmp("ucmd", "stime")                                                         
                             = 2
malloc(48)                                                                      
                             = 0x1001e8a17b0
__strdup(0x1001db28, 48, 2, 0x3fff88ad0cf8)                                     
                             = 0x1001e8a1080
malloc(48)                                                                      
                             = 0x1001e8a1c20
get_pid_digits(0x1001e8a1ce0, 110, 119, 124)                                    
                             = 6
strlen("PID")                                                                   
                             = 3
mmap(0, 0x40000, 3, 34)                                                         
                             = 0x3fff88240000
memset(0x3fff88240000, ' ', 144)                                                
                             = 0x3fff88240000
mprotect(0x3fff88270000, 0x10000, 0, 34)                                        
                             = 0
time(0)                                                                         
                             = 1460446121
meminfo(0x570ca3a9, 0x570ca3a9, 0, 34)                                          
                             = 0x3fff88b543a0
openproc(96, 0, 0, 0)                                                           
                             = 0x1001e8a1d40
readproc(0x1001e8a1d40, 0x100307f0, 0, 0x3fff88ad0160)                          
                             = 0x100307f0
readproc(0x1001e8a1d40, 0x100307f0, 0, 1)                                       
                             = 0x100307f0
strcpy(0x3fff88240090, "PID")                                                   
                             = 0x3fff88240090
strlen("PID")                                                                   
                             = 3
fwrite("   PID", 6, 1, 0x3fff88ad17c8)                                          
                             = 1
strcpy(0x3fff88240090, "TTY")                                                   
                             = 0x3fff88240090
fwrite(" TTY", 4, 1, 0x3fff88ad17c8)                                            
                             = 1
PID TTY          TIME CMD
__snprintf_chk(0x3fff88240090, 240, 1, -1)                                      
                             = 4
dev_to_tty(0x3fff88240090, 240, 0x8800, 4600)                                   
                             = 5
__snprintf_chk(0x3fff88240090, 240, 1, -1)                                      
                             = 8
escape_command(0x3fff88240090, 0x100307f0, 0x20000, 0x3fffe2d3c2e4)             
                             = 4
4600 pts/0    00:00:00 bash
dev_to_tty(0x3fff88240090, 240, 0x8800, 5237)                                   
                             = 5
escape_command(0x3fff88240090, 0x100307f0, 0x20000, 0x3fffe2d3c2e4)             
                             = 6
5237 pts/0    00:00:00 ltrace
5238 pts/0    00:00:00 ps
closeproc(0x1001e8a1d40, 0x100307f0, 0x8000, 1)                                 
                             = 0x3fff88ad0ce0
__fpending(0x3fff88ad17c8, 0, 1, 0)                                             
                             = 0
ferror(0x3fff88ad17c8)                                                          
                             = 0
fclose(0x3fff88ad17c8)                                                          
                             = 0
__fpending(0x3fff88ad16e8, 0, 0, 0)                                             
                             = 0
ferror(0x3fff88ad16e8)                                                          
                             = 0
fclose(0x3fff88ad16e8)                                                          
                             = 0
+++ exited (status 0) +++
root@system:~#

Regards
Praveen

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547152

Title:
  ltrace is throwing segfault while running any of the userspace command

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ltrace/+bug/1547152/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to