Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Thermald Crash
valdikss@valaptop ~ % sudo gdb thermald
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from thermald...(no debugging symbols found)...done.
(gdb) r thermald --no-daemon --loglevel=debug
Starting program: /usr/bin/thermald thermald --no-daemon --loglevel=debug
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
RAPL sysfs present
RAPL base path /sys/class/powercap/intel-rapl/
RAPL domain dir power
sysfs read failed /sys/class/powercap/intel-rapl/power/name
RAPL domain dir enabled
sysfs read failed /sys/class/powercap/intel-rapl/enabled/name
RAPL domain dir intel-rapl:0
name package-0
RAPL base path /sys/class/powercap/intel-rapl/intel-rapl:0/
RAPL domain dir name
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/name/name
RAPL domain dir power
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/power/name
RAPL domain dir constraint_0_time_window_us
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_time_window_us/name
RAPL domain dir constraint_1_power_limit_uw
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_power_limit_uw/name
RAPL domain dir enabled
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/enabled/name
RAPL domain dir device
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/device/name
RAPL domain dir constraint_0_power_limit_uw
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw/name
RAPL domain dir subsystem
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/subsystem/name
RAPL domain dir constraint_0_name
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_name/name
RAPL domain dir constraint_1_name
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_name/name
RAPL domain dir energy_uj
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj/name
RAPL domain dir constraint_1_max_power_uw
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_max_power_uw/name
RAPL domain dir uevent
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/uevent/name
RAPL domain dir max_energy_range_uj
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/max_energy_range_uj/name
RAPL domain dir constraint_0_max_power_uw
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_max_power_uw/name
RAPL domain dir constraint_1_time_window_us
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_time_window_us/name
RAPL domain dir intel-rapl:0:0
name core
RAPL domain dir intel-rapl:0:1
name uncore
RAPL domain count 0
RAPL domain dir subsystem
sysfs read failed /sys/class/powercap/intel-rapl/subsystem/name
RAPL domain dir uevent
sysfs read failed /sys/class/powercap/intel-rapl/uevent/name
RAPL domain count 1
13 CPUID levels; family:model:stepping 0x6:2a:7 (6:42:7)
Polling mode is enabled: 4
thd_read_default_thermal_sensors
sensor_update: type acpitz
sensor_update: type x86_pkg_temp
thd_read_default_thermal_sensors loaded 2 sensors
dts /sys/devices/platform/coretemp.0/name doesn't exist
dts /sys/class/hwmon/hwmon0/name doesn't exist
failed to open /dev/acpi_thermal_rel
failed to open /dev/acpi_thermal_rel
TRT/ART read failed
Dumping parsed XML Data
*** Index 0 ***
Name: LenovoThinkPadX220
UUID:
type: 0
Zone 0
Name: x86_pkg_temp
Trip Point 0
temp 45000
trip type 2
hyst id 0
sensor type x86_pkg_temp
cdev index 0
type Fan
influence 100
SamplingPeriod 12
Trip Point 1
temp 50000
trip type 2
hyst id 0
sensor type x86_pkg_temp
cdev index 0
type Fan
influence 100
SamplingPeriod 12
Trip Point 2
temp 55000
trip type 2
hyst id 0
sensor type x86_pkg_temp
cdev index 0
type Fan
influence 100
SamplingPeriod 12
Cooling Dev 0
Type: Fan
Path: /sys/devices/platform/thinkpad_hwmon/pwm1
Min: 0
Max: 255
Step: 37
AutoDownControl: 0
config product name [*] match with [4286CTO]
Product Name matched [wildcard]
sensor index:0 acpitz Async:1
sensor index:1 x86_pkg_temp Async:1
sensor index:2 hwmon Async:0
sensor index:3 hwmon Async:0
sensor index:4 hwmon Async:0
thd_read_default_cooling devices
cooling dev 0:3:15:LCD
cooling dev 1:0:10:Processor
cooling dev 2:0:10:Processor
cooling dev 3:0:10:Processor
cooling dev 4:0:10:Processor
cooling dev 5:-1:50:intel_powerclamp
thd_read_default_cooling devices loaded 6 cdevs
powercap RAPL max power limit range 35000000
RAPL max limit 26250000 increment: 1750000
set_pid_param 6 [1000.100,10]
Use Default pstate drv settings
cooling dev index:7, curr_state:0, max_state:10, unit:10.000000, min_com:0, type:intel_pstate
config product name [*] match with [4286CTO]
Product Name matched [wildcard]
pstate CPU present 0-3
name = package-0
name = core
name = uncore
0: LCD, C:3 MN: 0 MX:15 ST:5 pt:/sys/class/thermal/ rd_bk 0
1: Processor, C:0 MN: 0 MX:10 ST:1 pt:/sys/class/thermal/ rd_bk 0
2: Processor, C:0 MN: 0 MX:10 ST:1 pt:/sys/class/thermal/ rd_bk 0
3: Processor, C:0 MN: 0 MX:10 ST:1 pt:/sys/class/thermal/ rd_bk 0
4: Processor, C:0 MN: 0 MX:10 ST:1 pt:/sys/class/thermal/ rd_bk 0
5: intel_powerclamp, C:-1 MN: 0 MX:50 ST:5 pt:/sys/class/thermal/ rd_bk 0
6: rapl_controller, C:0 MN: 0 MX:26250000 ST:1750000 pt:/sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/ rd_bk 1
7: intel_pstate, C:0 MN: 0 MX:10 ST:1 pt:/sys/devices/system/cpu/intel_pstate/ rd_bk 1
8: Fan, C:109 MN: 0 MX:255 ST:37 pt:/sys/devices/platform/thinkpad_hwmon/pwm1 rd_bk 0
thd_read_default_thermal_zones
Added zone index:0
Thermal Zone look for 0/type
Thermal Zone 0:acpitz
read_trip_points 0/trip_point_0_type:critical
read_trip_points 0/trip_point_0_temp:99000
Add trip pt 0:0:0x0:99000:1
read_trip_points Added 1 trips
>> read_cdev_trip_points for
cthd_sysfs_zone::read_cdev_trip_points: ZONE bound to CDEV status 0
Sorted trip dump :
index 0: type:critical temp:99000 hyst:1 zone id:0 sensor id:0 cdev size:0
trip type: 0 temp: 99000
sysfs write failed trip_point_0_temp
cthd_sensor::set_threshold: status -13
Add trip pt 4:0:0x0:94000:0
Added zone index:1
Thermal Zone look for 1/type
Thermal Zone 1:x86_pkg_temp
read_trip_points 1/trip_point_0_type:passive
read_trip_points 1/trip_point_0_temp:66000
read_trip_points 1/trip_point_1_type:passive
read_trip_points 1/trip_point_1_temp:0
read_trip_points Added 0 trips
thd_read_default_thermal_zones loaded 1 zones
zone cpu will be created
dts zone /sys/devices/platform/coretemp.0/name doesn't exist
dts zone /sys/class/hwmon/hwmon0/name doesn't exist
/sys/class/hwmon/hwmon1/name->coretemp
Added zone index:1
zone dts syfs: /sys/class/hwmon/hwmon1/, package id 0
Core temp DTS :critical 100000, max 86000
Read set point 83500
node type: Element, name: CoolingDevice value: rapl_controller
node type: Element, name: CoolingDevice value: intel_pstate
node type: Element, name: CoolingDevice value: intel_powerclamp
node type: Element, name: CoolingDevice value: cpufreq
node type: Element, name: CoolingDevice value: Processor
Add trip pt 1:1:0xffff:83500:0
- rapl_controller
- intel_pstate
- intel_powerclamp
- cpufreq
- Processor
Add trip pt 2:1:0xffff:86000:0
- rapl_controller
- intel_pstate
- intel_powerclamp
- cpufreq
- Processor
CDEVS order specified in thermal-cpu-cdev-order.xml
Sorted trip dump :
index 0: type:max temp:83500 hyst:0 zone id:1 sensor id:65535 cdev size:4
cdev[0] rapl_controller
cdev[1] intel_pstate
cdev[2] intel_powerclamp
cdev[3] Processor
index 1: type:passive temp:86000 hyst:0 zone id:1 sensor id:65535 cdev size:4
cdev[0] rapl_controller
cdev[1] intel_pstate
cdev[2] intel_powerclamp
cdev[3] Processor
trip type: 1 temp: 83500
trip type: 2 temp: 86000
Read set point 83500
cthd_sensor::set_threshold: status 5
Add trip pt 4:1:0x1:66000:0
Read set point 83500
config product name [*] match with [4286CTO]
Product Name matched [wildcard]
Look for Zone [x86_pkg_temp]
Added zone index:2
Add trip pt 2:2:0x1:45000:0
zone x86_pkg_temp bounded
updating existing trip temp
zone x86_pkg_temp bounded
Add trip pt 2:2:0x1:55000:0
zone x86_pkg_temp bounded
*** Error in `/usr/bin/thermald': double free or corruption (fasttop): 0x0000000000895e40 ***
======= Backtrace: =========
/usr/lib/libc.so.6[0x3001c73f8e]
/usr/lib/libc.so.6[0x3001c7988e]
/usr/lib/libc.so.6[0x3001c7a04b]
/usr/bin/thermald(_ZN17cthd_zone_generic16read_trip_pointsEv+0x2dc)[0x44fabc]
/usr/bin/thermald(_ZN9cthd_zone11zone_updateEv+0x76)[0x4273d6]
/usr/bin/thermald(_ZN19cthd_engine_default18read_thermal_zonesEv+0xe75)[0x41c245]
/usr/bin/thermald(_ZN11cthd_engine16thd_engine_startEb+0x329)[0x414bb9]
/usr/bin/thermald(main+0x444)[0x40f3d4]
/usr/lib/libc.so.6(__libc_start_main+0xf0)[0x3001c20000]
/usr/bin/thermald[0x40fe3f]
======= Memory map: ========
00400000-0047d000 r-xp 00000000 08:12 2401298 /usr/bin/thermald
0067c000-0067d000 r--p 0007c000 08:12 2401298 /usr/bin/thermald
0067d000-0067e000 rw-p 0007d000 08:12 2401298 /usr/bin/thermald
0067e000-0067f000 rw-p 00000000 00:00 0
0087d000-00885000 rw-p 0007d000 08:12 2401298 /usr/bin/thermald
00885000-008e9000 rw-p 00000000 00:00 0 [heap]
3000000000-3000021000 r-xp 00000000 08:12 2401337 /usr/lib/ld-2.19.so
3000220000-3000221000 r--p 00020000 08:12 2401337 /usr/lib/ld-2.19.so
3000221000-3000222000 rw-p 00021000 08:12 2401337 /usr/lib/ld-2.19.so
3000222000-3000223000 rw-p 00000000 00:00 0
3001c00000-3001da4000 r-xp 00000000 08:12 2401338 /usr/lib/libc-2.19.so
3001da4000-3001fa4000 ---p 001a4000 08:12 2401338 /usr/lib/libc-2.19.so
3001fa4000-3001fa8000 r--p 001a4000 08:12 2401338 /usr/lib/libc-2.19.so
3001fa8000-3001faa000 rw-p 001a8000 08:12 2401338 /usr/lib/libc-2.19.so
3001faa000-3001fae000 rw-p 00000000 00:00 0
3002000000-3002018000 r-xp 00000000 08:12 2401339 /usr/lib/libpthread-2.19.so
3002018000-3002218000 ---p 00018000 08:12 2401339 /usr/lib/libpthread-2.19.so
3002218000-3002219000 r--p 00018000 08:12 2401339 /usr/lib/libpthread-2.19.so
3002219000-300221a000 rw-p 00019000 08:12 2401339 /usr/lib/libpthread-2.19.so
300221a000-300221e000 rw-p 00000000 00:00 0
3002400000-3002503000 r-xp 00000000 08:12 2386775 /usr/lib/libm-2.19.so
3002503000-3002702000 ---p 00103000 08:12 2386775 /usr/lib/libm-2.19.so
3002702000-3002703000 r--p 00102000 08:12 2386775 /usr/lib/libm-2.19.so
3002703000-3002704000 rw-p 00103000 08:12 2386775 /usr/lib/libm-2.19.so
3002800000-3002803000 r-xp 00000000 08:12 2401353 /usr/lib/libdl-2.19.so
3002803000-3002a02000 ---p 00003000 08:12 2401353 /usr/lib/libdl-2.19.so
3002a02000-3002a03000 r--p 00002000 08:12 2401353 /usr/lib/libdl-2.19.so
3002a03000-3002a04000 rw-p 00003000 08:12 2401353 /usr/lib/libdl-2.19.so
3002c00000-3002c15000 r-xp 00000000 08:12 2401345 /usr/lib/libz.so.1.2.8
3002c15000-3002e14000 ---p 00015000 08:12 2401345 /usr/lib/libz.so.1.2.8
3002e14000-3002e15000 r--p 00014000 08:12 2401345 /usr/lib/libz.so.1.2.8
3002e15000-3002e16000 rw-p 00015000 08:12 2401345 /usr/lib/libz.so.1.2.8
3003800000-3003869000 r-xp 00000000 08:12 2401341 /usr/lib/libpcre.so.1.2.3
3003869000-3003a68000 ---p 00069000 08:12 2401341 /usr/lib/libpcre.so.1.2.3
3003a68000-3003a69000 r--p 00068000 08:12 2401341 /usr/lib/libpcre.so.1.2.3
3003a69000-3003a6a000 rw-p 00069000 08:12 2401341 /usr/lib/libpcre.so.1.2.3
3003c00000-3003c21000 r-xp 00000000 08:12 2401425 /usr/lib/liblzma.so.5.0.5
3003c21000-3003e21000 ---p 00021000 08:12 2401425 /usr/lib/liblzma.so.5.0.5
3003e21000-3003e22000 r--p 00021000 08:12 2401425 /usr/lib/liblzma.so.5.0.5
3003e22000-3003e23000 rw-p 00022000 08:12 2401425 /usr/lib/liblzma.so.5.0.5
3004000000-3004105000 r-xp 00000000 08:12 2401342 /usr/lib/libglib-2.0.so.0.4000.0
3004105000-3004305000 ---p 00105000 08:12 2401342 /usr/lib/libglib-2.0.so.0.4000.0
3004305000-3004306000 r--p 00105000 08:12 2401342 /usr/lib/libglib-2.0.so.0.4000.0
3004306000-3004307000 rw-p 00106000 08:12 2401342 /usr/lib/libglib-2.0.so.0.4000.0
3004307000-3004308000 rw-p 00000000 00:00 0
3004400000-3004416000 r-xp 00000000 08:12 2400590 /usr/lib/libgcc_s.so.1
3004416000-3004615000 ---p 00016000 08:12 2400590 /usr/lib/libgcc_s.so.1
3004615000-3004616000 rw-p 00015000 08:12 2400590 /usr/lib/libgcc_s.so.1
3004800000-30048f0000 r-xp 00000000 08:12 2400591 /usr/lib/libstdc++.so.6.0.20
30048f0000-3004af0000 ---p 000f0000 08:12 2400591 /usr/lib/libstdc++.so.6.0.20
3004af0000-3004af8000 r--p 000f0000 08:12 2400591 /usr/lib/libstdc++.so.6.0.20
3004af8000-3004afa000 rw-p 000f8000 08:12 2400591 /usr/lib/libstdc++.so.6.0.20
3004afa000-3004b0f000 rw-p 00000000 00:00 0
3005000000-3005007000 r-xp 00000000 08:12 2394686 /usr/lib/libffi.so.6.0.2
3005007000-3005206000 ---p 00007000 08:12 2394686 /usr/lib/libffi.so.6.0.2
3005206000-3005207000 r--p 00006000 08:12 2394686 /usr/lib/libffi.so.6.0.2
3005207000-3005208000 rw-p 00007000 08:12 2394686 /usr/lib/libffi.so.6.0.2
3006800000-300684e000 r-xp 00000000 08:12 2367038 /usr/lib/libgobject-2.0.so.0.4000.0
300684e000-3006a4e000 ---p 0004e000 08:12 2367038 /usr/lib/libgobject-2.0.so.0.4000.0
3006a4e000-3006a4f000 r--p 0004e000 08:12 2367038 /usr/lib/libgobject-2.0.so.0.4000.0
3006a4f000-3006a50000 rw-p 0004f000 08:12 2367038 /usr/lib/libgobject-2.0.so.0.4000.0
3007800000-3007826000 r-xp 00000000 08:12 2400676 /usr/lib/libdbus-glib-1.so.2.2.2
3007826000-3007a25000 ---p 00026000 08:12 2400676 /usr/lib/libdbus-glib-1.so.2.2.2
3007a25000-3007a26000 r--p 00025000 08:12 2400676 /usr/lib/libdbus-glib-1.so.2.2.2
3007a26000-3007a27000 rw-p 00026000 08:12 2400676 /usr/lib/libdbus-glib-1.so.2.2.2
3007e00000-3007e14000 r-xp 00000000 08:12 2401395 /usr/lib/libresolv-2.19.so
3007e14000-3008013000 ---p 00014000 08:12 2401395 /usr/lib/libresolv-2.19.so
3008013000-3008014000 r--p 00013000 08:12 2401395 /usr/lib/libresolv-2.19.so
3008014000-3008015000 rw-p 00014000 08:12 2401395 /usr/lib/libresolv-2.19.so
3008015000-3008017000 rw-p 00000000 00:00 0
3009c00000-3009c47000 r-xp 00000000 08:12 2386353 /usr/lib/libdbus-1.so.3.8.6
3009c47000-3009e46000 ---p 00047000 08:12 2386353 /usr/lib/libdbus-1.so.3.8.6
3009e46000-3009e47000 r--p 00046000 08:12 2386353 /usr/lib/libdbus-1.so.3.8.6
3009e47000-3009e48000 rw-p 00047000 08:12 2386353 /usr/lib/libdbus-1.so.3.8.6
300a400000-300a403000 r-xp 00000000 08:12 2401383 /usr/lib/libgmodule-2.0.so.0.4000.0
300a403000-300a602000 ---p 00003000 08:12 2401383 /usr/lib/libgmodule-2.0.so.0.4000.0
300a602000-300a603000 r--p 00002000 08:12 2401383 /usr/lib/libgmodule-2.0.so.0.4000.0
300a603000-300a604000 rw-p 00003000 08:12 2401383 /usr/lib/libgmodule-2.0.so.0.4000.0
300ac00000-300ad69000 r-xp 00000000 08:12 2397653 /usr/lib/libgio-2.0.so.0.4000.0
300ad69000-300af69000 ---p 00169000 08:12 2397653 /usr/lib/libgio-2.0.so.0.4000.0
300af69000-300af6d000 r--p 00169000 08:12 2397653 /usr/lib/libgio-2.0.so.0.4000.0
300af6d000-300af6f000 rw-p 0016d000 08:12 2397653 /usr/lib/libgio-2.0.so.0.4000.0
300af6f000-300af71000 rw-p 00000000 00:00 0
300e800000-300e95d000 r-xp 00000000 08:12 2383384 /usr/lib/libxml2.so.2.9.1
300e95d000-300eb5c000 ---p 0015d000 08:12 2383384 /usr/lib/libxml2.so.2.9.1
300eb5c000-300eb64000 r--p 0015c000 08:12 2383384 /usr/lib/libxml2.so.2.9.1
300eb64000-300eb66000 rw-p 00164000 08:12 2383384 /usr/lib/libxml2.so.2.9.1
300eb66000-300eb68000 rw-p 00000000 00:00 0
7ffff7cfc000-7ffff7fb6000 r--p 00000000 08:12 2388363 /usr/lib/locale/locale-archive
7ffff7fb6000-7ffff7fc1000 rw-p 00000000 00:00 0
7ffff7ffb000-7ffff7ffd000 rw-p 00000000 00:00 0
7ffff7ffd000-7ffff7fff000 r-xp 00000000 00:00 0 [vdso]
7ffffffde000-7ffffffff000 rw-p 00000000 00:00 0 [stack]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Program received signal SIGABRT, Aborted.
0x0000003001c33d67 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x0000003001c33d67 in raise () from /usr/lib/libc.so.6
#1 0x0000003001c35118 in abort () from /usr/lib/libc.so.6
#2 0x0000003001c73f93 in __libc_message () from /usr/lib/libc.so.6
#3 0x0000003001c7988e in malloc_printerr () from /usr/lib/libc.so.6
#4 0x0000003001c7a04b in _int_free () from /usr/lib/libc.so.6
#5 0x000000000044fabc in cthd_zone_generic::read_trip_points() ()
#6 0x00000000004273d6 in cthd_zone::zone_update() ()
#7 0x000000000041c245 in cthd_engine_default::read_thermal_zones() ()
#8 0x0000000000414bb9 in cthd_engine::thd_engine_start(bool) ()
#9 0x000000000040f3d4 in main ()
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.