[Bug 1547152] Comment bridged from LTC Bugzilla
bugproxy
bugproxy at us.ibm.com
Tue Apr 5 05:31:26 UTC 2016
------- Comment From Praveen.Pandey at in.ibm.com 2016-04-05 01:28 EDT-------
Hi try to verify the patch on ltrace source (yeterday build) seems me works fine but i am able to apply "patch allowing loop or breakpoint disabling failure" only first patch got hung while applying .
Log:
root at ubuntu:~/ltrace-0.7.3# ltrace ps
__libc_start_main(1, 0x3ffff4a5e508, 0x3ffff4a5e518, 0x3ffff4a5e5a0 <unfinished ...>
__cxa_atexit(0x10017850, 0, 0, 0x3ffff4a5e5a0) = 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(0x3ffff4a5dfd0, '\0', 152) = 0x3ffff4a5dfd0
sigfillset(~<31-32>) = 0
sigaction(SIGSYS, { 0x10003e90, ~<31-32>, 0xffffffff, 0xffffffffffffffff }, nil) = 0
look_up_our_self(0x10030f50, 0x3ffff4a5de48, 0, 8) = 0
ioctl(1, 1074295912, 0x3ffff4a5dee0) = 0
isatty(1) = 1
getenv("COLUMNS") = nil
__strncpy_chk(0x3ffff4a5de28, 0x100181c8, 7, 16) = 0x3ffff4a5de28
__strdup(0x3ffff4a5de28, 0x100181c8, 7, 0x6e6b6e75) = 0x1002dff1060
strcasecmp("unknown", "os390") = 6
geteuid() = 0
getpagesize() = 65536
uptime(0, 0, 0, 0) = 0x7a33c
dcgettext(0, 0x10018380, 5, 0x1002dff1080) = 0x10018380
strcmp("ucmd", "pid") = 5
malloc(48) = 0x1002dff17b0
get_pid_digits(0x1002dff1ce0, 110, 119, 124) = 5
strlen("PID") = 3
mmap(0, 0x40000, 3, 34) = 0x3fff94800000
mprotect(0x3fff94830000, 0x10000, 0, 34) = 0
time(0) = 1459833894
meminfo(0x57034c26, 0x57034c26, 0, 34) = 0x3fff951143a0
openproc(96, 0, 0, 0) = 0x1002dff1d40
readproc(0x1002dff1d40, 0x100307f0, 0, 0x3fff95090160) = 0x100307f0
strcpy(0x3fff94800090, "PID") = 0x3fff94800090
fwrite(" PID", 5, 1, 0x3fff950917c8) = 1
PID TTY TIME CMD
__snprintf_chk(0x3fff94800090, 240, 1, -1) = 4
dev_to_tty(0x3fff94800090, 240, 0xe500, 1511) = 4
escape_command(0x3fff94800090, 0x100307f0, 0x20000, 0x3ffff4a5de04) = 5
1511 hvc0 00:00:00 login
1643 hvc0 00:00:00 bash
12917 hvc0 00:00:00 ltrace
12918 hvc0 00:00:00 ps
closeproc(0x1002dff1d40, 0x100307f0, 0x8000, 1) = 0x3fff95090ce0
__fpending(0x3fff950917c8, 0, 1, 0) = 0
ferror(0x3fff950917c8) = 0
fclose(0x3fff950917c8) = 0
+++ exited (status 0) +++
root at ubuntu:~/ltrace-0.7.3# ltrace ls
__libc_start_main(1, 0x3ffff3c37178, 0x3ffff3c37188, 0x3ffff3c37210 <unfinished ...>
strrchr("ls", '/') = nil
setlocale(LC_ALL, "") = "en_US.UTF-8"
bindtextdomain("coreutils", "/usr/share/locale") = "/usr/share/locale"
textdomain("coreutils") = "coreutils"
__cxa_atexit(0x1000fa50, 0, 0, 115) = 0
isatty(1) = 1
getenv("QUOTING_STYLE") = nil
ioctl(1, 1074295912, 0x3ffff3c36920) = 0
getopt_long(1, 0x3ffff3c37178, "abcdfghiklmnopqrstuvw:xABCDFGHI:"..., 0x10025ab8, -1) = -1
__errno_location() = 0x3fffa6ca6bf0
malloc(56) = 0x10020db1030
memcpy(0x10020db1030, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 56) = 0x10020db1030
strlen(".") = 1
opendir(".") = 0x10020db5ca0
readdir(0x10020db5ca0) = 0x10020db5cd0
memset(0x10020db1140, '\0', 192) = 0x10020db1140
realloc(0x10020db1140, 38400) = 0x10020dbe960
closedir(0x10020db5ca0) = 0
free(0) = <void>
_setjmp(0x10040640, 3, 0x440000, 0x3fffa6bc0d38) = 0
strcoll("proc.h", "zero.o") = -10
__ctype_get_mb_cur_max() = 6
fwrite_unlocked("aclocal.m4", 1, 10, 0x3fffa6bc17c8) = 10
__overflow(0x3fffa6bc17c8, 9, 10, 0xfffffffffbad2a84) = 9
aclocal.m4 expr.lo library.lo proc.h
backend.h expr.o library.o proc.lo
breakpoint.h fetch.c libtool proc.o
breakpoints.c fetch.h ltrace read_config_file.c
breakpoints.lo fetch.lo ltrace.1 read_config_file.h
breakpoints.o fetch.o ltrace.conf.5 read_config_file.lo
callback.h filter.c ltrace-elf.c read_config_file.o
common.h filter.h ltrace-elf.h README
config filter.lo ltrace-elf.lo stamp-h1
config.h filter.o ltrace-elf.o summary.c
config.h.in forward.h ltrace.h summary.lo
config.log glob.c ltrace.spec summary.o
config.status glob.h main.c sysdeps
configure glob.lo main.o testsuite
configure.ac glob.o Makefile TODO
COPYING handle_event.c Makefile.am type.c
CREDITS handle_event.lo Makefile.in type.h
debian handle_event.o NEWS type.lo
debug.c INSTALL options.c type.o
debug.h lens.c options.h value.c
debug.lo lens_default.c options.lo value_dict.c
debug.o lens_default.h options.o value_dict.h
defs.h lens_default.lo output.c value_dict.lo
demangle.c lens_default.o output.h value_dict.o
demangle.h lens_enum.c output.lo value.h
demangle.lo lens_enum.h output.o value.lo
demangle.o lens_enum.lo param.c value.o
dict.c lens_enum.o param.h vect.c
dict.h lens.h param.lo vect.h
dict.lo lens.lo param.o vect.lo
dict.o lens.o patch vect.o
etc libltrace.c patch1 zero.c
execute_program.c libltrace.la printf.c zero.h
execute_program.lo libltrace.lo printf.h zero.lo
execute_program.o libltrace.o printf.lo zero.o
expr.c library.c printf.o
expr.h library.h proc.c
__fpending(0x3fffa6bc17c8, 0, 1, 0) = 0
fileno(0x3fffa6bc17c8) = 1
__freading(0x3fffa6bc17c8, 0, 1, 0) = 0
fflush(0x3fffa6bc17c8) = 0
fclose(0x3fffa6bc17c8) = 0
+++ exited (status 0) +++
root at ubuntu:~/ltrace-0.7.3#
Regards
Praveen
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to procps in Ubuntu.
https://bugs.launchpad.net/bugs/1547152
Title:
ltrace is throwing segfault while running any of the userspace command
Status in procps package in Ubuntu:
Incomplete
Bug description:
== Comment: #0 - Praveen K. Pandey <Praveen.Pandey at in.ibm.com> - 2016-01-25 01:18:25 ==
Hi ,
I Installed Ubuntu16.04 In PowerNV and try to run ltrace ls or
ltrace ps it will fail with segfault .
Reproducible Step :
1- Install Ubuntu16.04 in PowerNV or as KVM or as PowerVM
2- Install ltrace package
3- Try to run ltrace with any userspace utility like "ltrace ps"
Actual Result :
Throw Seg fault
Expected :
LOG
root at lep8d:~# uname -a
Linux lep8d 4.3.0-7-generic #18-Ubuntu SMP Tue Jan 19 15:47:35 UTC 2016 ppc64le ppc64le ppc64le GNU/Linux
root at lep8d:~#
root at lep8d:~# ltrace ps
__printf_chk(1, 0x3fffe4d40028, 0x3fffe4d40038, 0x3fffe4d400e0 <unfinished ...>
qsort(0x10017850, 0, 0, 0x3fffe4d400e0) = <void>
__gmon_start__(0x3fffe4d4f8df, 47, 0, 0x3fff81c51d68) = 0
ferror(0x6) = 230428656
__libc_start_main(0x10017e10, 0x10017df8, 0x3fff81d68f48, 0x3fff81d68f38) = 0x3fff81c1ccb0
readproctab3(0x10017e10, 24, 0x7000000000000000, 0x6c00000000000000) = 0x1000dbc1040
uptime(0x3fffe4d3faf0, 0, 152, 103) = 0x3fffe4d3faf0
__fpending(0x3fffe4d3faf8, 0, 152, 103) = 0
strrchr("\037 !"#$%&'()*+,-./0123456789:;<=>"..., '\360') = nil
escape_command(0x10030f50, 0x3fffe4d3f968, 0, 8) = 0
setlocale(LC_NUMERIC, "hijklmnopqrstuvwxyz{|}~\177\200\201\202\203\204\205\206\207"...) = nil
select(1, 0x40087468, 0x3fffe4d3fa00, 0) = 1
__xstat(268534584, "\017", 0x13) = 0
strncmp("", "unknown", 7) = -455870136
sigfillset(~<1,3,7-8,12,15,18,20,23-24,28,31,36,39,43,47-48,52,55-63>) = 230428768
getpagesize() = 6
meminfo(0, 0x100182d0, 0, 0) = 0
getpagesize( <unfinished ...>
__stack_chk_fail(0, 0x100182d0, 0, 0 <no return ...>
--- SIGSEGV (Segmentation fault) ---
strncpy(0, "Signa", 5) = 0x10017da8
dlerror() = "SEGV"
strcmp("\206 \255\373", "\001\002\003\004\005\006\a\b\t\n\v\f\r\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 "...Signal 11 (SEGV) caught by ps (procps-ng version 3.3.10).
) = 58
readtask(0, 0, 0x10017de8, 66ps:display.c:66: please report this bug
) = 0
__snprintf_chk(11, 0, 0x3fff81c5175b, 0) = 0x10003e90
time(0x10003e90) = 30039
fork() = 0
unexpected breakpoint at 0x3fff81b339a4
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
root at lep8d:~#
== Comment: #7 - Thierry Fauck <thierry.fauck at fr.ibm.com> - 2016-02-17 14:11:52 ==
The problem is related to procps-ng 3.3.10
Upgrade to procps-ng 3.3.11 solves the issue
Going to Mirror and ask Canonical to advise.
== Comment: #9 - Thierry Fauck <thierry.fauck at fr.ibm.com> - 2016-02-17 14:13:10 ==
This bugs is linked to procps-ng 3.3.10 known as having some issues. Is upgrade to 3.3.11 an option ?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1547152/+subscriptions
More information about the foundations-bugs
mailing list