Package: powertop Version: 2.0-0.2 Severity: important Tags: upstream powertop crashes at startup with *** stack smashing detected ***: powertop terminated
The crash is not reproducible with powertop:amd64. After recompiling powertop to get debug symbols I got the following backtrace with gdb.: #0 0xf7fdf425 in __kernel_vsyscall () #1 0xf7ca1941 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #2 0xf7ca4d72 in *__GI_abort () at abort.c:92 #3 0xf7cdb305 in __libc_message (do_abort=2, fmt=0xf7dae5c8 "*** %s ***: %s terminated\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189 #4 0xf7d5beb0 in *__GI___fortify_fail (msg=<optimized out>) at fortify_fail.c:32 #5 0xf7d5be5a in __stack_chk_fail () at stack_chk_fail.c:29 #6 0x08066f91 in process::process (this=0xdf00650, _comm=<optimized out>, _pid=7812, _tid=0) at process/process.cpp:140 #7 0x08067277 in find_create_process (comm=0xde7794c "mplayer", pid=7812) at process/process.cpp:173 #8 0x0806a9b3 in perf_process_bundle::handle_trace_point (this=0xde4e080, trace=0xde7791c, cpu=0, time=1053728094267690) at process/do_process.cpp:264 #9 0x0806fd52 in perf_bundle::process (this=0xde4e080) at perf/perf_bundle.cpp:303 #10 0x0806b6c6 in process_process_data () at process/do_process.cpp:1131 #11 0x08089d0f in one_measurement (seconds=1) at main.cpp:193 #12 0x0804dd5a in main (argc=1, argv=0xffffdc94) at main.cpp:418 /proc/7812/cmdline contains exactly 4096 characters (though process::process appears to read only 4095 of them) and is not null-terminated. As a result, variable "line" does not contain sequence of two nulls and cmdline_to_string replaces nulls with spaces further into stack until it finds such sequence. As expected, powertop does not crash if there is no process with long command line. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (900, 'testing'), (400, 'stable') Architecture: i386 (x86_64) Foreign Architectures: amd64 Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages powertop depends on: ii libc6 2.13-33 ii libgcc1 1:4.7.1-2 ii libncursesw5 5.9-10 ii libnl-3-200 3.2.7-4 ii libnl-genl-3-200 3.2.7-4 ii libpci3 1:3.1.9-5 ii libstdc++6 4.7.1-2 ii libtinfo5 5.9-10 ii zlib1g 1:1.2.7.dfsg-13 powertop recommends no packages. Versions of packages powertop suggests: ii cpufrequtils 008-1 pn laptop-mode-tools <none> -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org