! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-sensors-plugin-1.0.0-1.fc14: malloc_consolidate: Process /usr/libexec/x...
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-sensors-plugin
Component:
General

Comments

Description Christoph Wickert editbugs 2011-01-16 22:19:15 CET
Created attachment 3357 
backtrace of the crash

Original bug report at https://bugzilla.redhat.com/show_bug.cgi?id=666224


abrt version: 1.1.14
architecture: i686
Attached file: backtrace
cmdline: /usr/libexec/xfce4/panel-plugins/xfce4-sensors-plugin socket_id
18874402 name xfce4-sensors-plugin id 12916896720 display_name 'Sensor plugin'
size 28 screen_position 11
comment: Just starting the xfce session...
component: xfce4-sensors-plugin
crash_function: malloc_consolidate
executable: /usr/libexec/xfce4/panel-plugins/xfce4-sensors-plugin
kernel: 2.6.35.10-74.fc14.i686
package: xfce4-sensors-plugin-1.0.0-1.fc14
rating: 4
reason: Process /usr/libexec/xfce4/panel-plugins/xfce4-sensors-plugin was
killed by signal 11 (SIGSEGV)
release: Fedora release 14 (Laughlin)
time: 1293585734
uid: 500

How to reproduce
-----
1. Iniciated session
2. error occurt
3.


Notes: Not sure if this is related to bug 6541.
Comment 1 goldedragon 2011-05-25 15:40:17 CEST
Xfce4-Sensors crashed on start. 

xfce4-sensors 
*** glibc detected *** xfce4-sensors: double free or corruption (fasttop): 0x08a51950 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6ea85)[0xb70aea85]
/lib/libc.so.6(+0x6f722)[0xb70af722]
/lib/libc.so.6(cfree+0x6d)[0xb70b280d]
/usr/lib/libglib-2.0.so.0(+0x47bab)[0xb7208bab]
/usr/lib/libglib-2.0.so.0(g_free+0x36)[0xb7208e86]
/usr/lib/xfce4/modules/libxfce4sensors.so.0(get_hddtemp_value+0xd5)[0xb7795185]
/usr/lib/xfce4/modules/libxfce4sensors.so.0(remove_unmonitored_drives+0x64)[0xb7795294]
/usr/lib/xfce4/modules/libxfce4sensors.so.0(initialize_hddtemp+0xfa)[0xb779546a]
/usr/lib/xfce4/modules/libxfce4sensors.so.0(initialize_all+0x41)[0xb77914e1]
/usr/lib/xfce4/modules/libxfce4sensors.so.0(sensors_new+0x67)[0xb77927e7]
xfce4-sensors[0x8049928]
xfce4-sensors[0x804974c]
/lib/libc.so.6(__libc_start_main+0xf3)[0xb7059103]
xfce4-sensors[0x8049805]
======= Memory map: ========
08048000-0804c000 r-xp 00000000 08:03 429498     /usr/bin/xfce4-sensors
0804c000-0804d000 rw-p 00003000 08:03 429498     /usr/bin/xfce4-sensors
089fe000-08a69000 rw-p 00000000 00:00 0          [heap]
b6400000-b6421000 rw-p 00000000 00:00 0 
b6421000-b6500000 ---p 00000000 00:00 0 
b653b000-b6557000 r-xp 00000000 08:03 398510     /usr/lib/libgcc_s.so.1
b6557000-b6558000 rw-p 0001b000 08:03 398510     /usr/lib/libgcc_s.so.1
b6558000-b658e000 r--p 00000000 08:03 420027     /usr/share/locale/ru/LC_MESSAGES/gtk20-properties.mo
b658e000-b6599000 r-xp 00000000 08:03 130979     /lib/libnss_files-2.13.so
b6599000-b659a000 r--p 0000a000 08:03 130979     /lib/libnss_files-2.13.so
b659a000-b659b000 rw-p 0000b000 08:03 130979     /lib/libnss_files-2.13.so
b65b2000-b65dd000 r--p 00000000 08:03 395301     /usr/share/locale/ru/LC_MESSAGES/libc.mo
b65dd000-b65f6000 r--p 00000000 08:03 420026     /usr/share/locale/ru/LC_MESSAGES/gtk20.mo
b65f6000-b65f8000 r--p 00000000 08:03 429474     /usr/share/locale/ru/LC_MESSAGES/xfce4-sensors-plugin.mo
b65f8000-b6718000 r--p 001b2000 08:03 417277     /usr/lib/locale/locale-archive
b6718000-b6918000 r--p 00000000 08:03 417277     /usr/lib/locale/locale-archive
b6918000-b691a000 rw-p 00000000 00:00 0 
b691a000-b691e000 r-xp 00000000 08:03 414027     /usr/lib/libXdmcp.so.6.0.0
b691e000-b691f000 rw-p 00003000 08:03 414027     /usr/lib/libXdmcp.so.6.0.0
b691f000-b6921000 r-xp 00000000 08:03 414217     /usr/lib/libXau.so.6.0.0
b6921000-b6922000 rw-p 00001000 08:03 414217     /usr/lib/libXau.so.6.0.0
b6922000-b6923000 rw-p 00000000 00:00 0 
b6923000-b6924000 r-xp 00000000 08:03 415506     /usr/lib/libX11-xcb.so.1.0.0
b6924000-b6925000 rw-p 00000000 08:03 415506     /usr/lib/libX11-xcb.so.1.0.0
b6925000-b6927000 r-xp 00000000 08:03 417019     /usr/lib/libxcb-aux.so.0.0.0
b6927000-b6928000 rw-p 00001000 08:03 417019     /usr/lib/libxcb-aux.so.0.0.0
b6928000-b6945000 r-xp 00000000 08:03 414324     /usr/lib/libxcb.so.1.1.0
b6945000-b6946000 rw-p 0001d000 08:03 414324     /usr/lib/libxcb.so.1.1.0
b6946000-b6949000 r-xp 00000000 08:03 131189     /lib/libuuid.so.1.3.0
b6949000-b694a000 rw-p 00003000 08:03 131189     /lib/libuuid.so.1.3.0
b694a000-b694b000 rw-p 00000000 00:00 0 
b694b000-b695e000 r-xp 00000000 08:03 130978     /lib/libresolv-2.13.so
b695e000-b695f000 r--p 00012000 08:03 130978     /lib/libresolv-2.13.so
b695f000-b6960000 rw-p 00013000 08:03 130978     /lib/libresolv-2.13.so
b6960000-b6962000 rw-p 00000000 00:00 0 
b6962000-b6965000 r-xp 00000000 08:03 130956     /lib/libdl-2.13.so
b6965000-b6966000 r--p 00002000 08:03 130956     /lib/libdl-2.13.so
b6966000-b6967000 rw-p 00003000 08:03 130956     /lib/libdl-2.13.so
b6967000-b698d000 r-xp 00000000 08:03 412022     /usr/lib/libexpat.so.1.5.2
b698d000-b698f000 rw-p 00026000 08:03 412022     /usr/lib/libexpat.so.1.5.2
b698f000-b69a3000 r-xp 00000000 08:03 398324     /usr/lib/libz.so.1.2.5
b69a3000-b69a4000 rw-p 00013000 08:03 398324     /usr/lib/libz.so.1.2.5
b69a4000-b69a5000 rw-p 00000000 00:00 0 
b69a5000-b6a0c000 r-xp 00000000 08:03 414194     /usr/lib/libpixman-1.so.0.20.2
b6a0c000-b6a10000 rw-p 00066000 08:03 414194     /usr/lib/libpixman-1.so.0.20.2
b6a10000-b6a4c000 r-xp 00000000 08:03 131199     /lib/libpcre.so.0.0.1
b6a4c000-b6a4d000 rw-p 0003b000 08:03 131199     /lib/libpcre.so.0.0.1
b6a4d000-b6a51000 r-xp 00000000 08:03 416911     /usr/lib/libXfixes.so.3.1.0
b6a51000-b6a52000 rw-p 00003000 08:03 416911     /usr/lib/libXfixes.so.3.1.0
b6a52000-b6a54000 r-xp 00000000 08:03 416977     /usr/lib/libXdamage.so.1.1.0
b6a54000-b6a55000 rw-p 00001000 08:03 416977     /usr/lib/libXdamage.so.1.1.0
b6a55000-b6a57000 r-xp 00000000 08:03 416917     /usr/lib/libXcomposite.so.1.0.0
b6a57000-b6a58000 rw-p 00001000 08:03 416917     /usr/lib/libXcomposite.so.1.0.0
b6a58000-b6a59000 rw-p 00000000 00:00 0 
b6a59000-b6a61000 r-xp 00000000 08:03 417138     /usr/lib/libXcursor.so.1.0.2
b6a61000-b6a62000 rw-p 00007000 08:03 417138     /usr/lib/libXcursor.so.1.0.2
b6a62000-b6a68000 r-xp 00000000 08:03 417095     /usr/lib/libXrandr.so.2.2.0
b6a68000-b6a69000 rw-p 00005000 08:03 417095     /usr/lib/libXrandr.so.2.2.0
b6a69000-b6a75000 r-xp 00000000 08:03 416805     /usr/lib/libXi.so.6.1.0
b6a75000-b6a76000 rw-p 0000b000 08:03 416805     /usr/lib/libXi.so.6.1.0
b6a76000-b6a78000 r-xp 00000000 08:03 416936     /usr/lib/libXinerama.so.1.0.0
b6a78000-b6a79000 rw-p 00001000 08:03 416936     /usr/lib/libXinerama.so.1.0.0
b6a79000-b6a80000 r-xp 00000000 08:03 416901     /usr/lib/libXrender.so.1.3.0
b6a80000-b6a81000 rw-p 00007000 08:03 416901     /usr/lib/libXrender.so.1.3.0
b6a81000-b6a82000 rw-p 00000000 00:00 0 
b6a82000-b6a93000 r-xp 00000000 08:03 416313     /usr/lib/libXext.so.6.4.0
b6a93000-b6a94000 rw-p 00010000 08:03 416313     /usr/lib/libXext.so.6.4.0
b6a94000-b6a9c000 r-xp 00000000 08:03 420280     /usr/lib/libstartup-notification-1.so.0.0.0
b6a9c000-b6a9d000 rw-p 00008000 08:03 420280     /usr/lib/libstartup-notification-1.so.0.0.0
b6a9d000-b6bb5000 r-xp 00000000 08:03 415505     /usr/lib/libX11.so.6.3.0
b6bb5000-b6bb9000 rw-p 00117000 08:03 415505     /usr/lib/libX11.so.6.3.0
b6bb9000-b6bcd000 r-xp 00000000 08:03 416376     /usr/lib/libICE.so.6.3.0
b6bcd000-b6bce000 rw-p 00013000 08:03 416376     /usr/lib/libICE.so.6.3.0
b6bce000-b6bd0000 rw-p 00000000 00:00 0 
b6bd0000-b6bd6000 r-xp 00000000 08:03 416384     /usr/lib/libSM.so.6.0.1
b6bd6000-b6bd7000 rw-p 00005000 08:03 416384     /usr/lib/libSM.so.6.0.1
b6bd7000-b6bd8000 rw-p 00000000 00:00 0 
b6bd8000-b6bdf000 r-xp 00000000 08:03 130996     /lib/librt-2.13.so
b6bdf000-b6be0000 r--p 00006000 08:03 130996     /lib/librt-2.13.so
b6be0000-b6be1000 rw-p 00007000 08:03 130996     /lib/librt-2.13.so
b6be1000-b6be5000 r-xp 00000000 08:03 402195     /usr/lib/libgthread-2.0.so.0.2800.7Аварийный останов
Comment 2 Fabian Nowak editbugs 2011-05-26 12:44:48 CEST
(In reply to comment #1)
> Xfce4-Sensors crashed on start. 
> 
> xfce4-sensors 
> *** glibc detected *** xfce4-sensors: double free or corruption (fasttop):
> 0x08a51950 ***

This doesn't help me at all.
What version of the plugin, which distribution/OS, is the sensors-plugin running in the xfce4-panel concurrently, ...

It's a duplicate g_free() operation on some data within gethddtempvalue(), that's what I can detect. However I can't reproduce it on my systems, that's why I need more information.

Also, how is the package configured? with path to netcat, with path to hddtemp, running the hddtemp interface via sockets? This information is available of the summary after running ./configure.

In case you have a prepackaged version, contact your distribution people so that they continue handling this bug report.
Comment 3 Christoph Wickert editbugs 2011-05-26 15:59:30 CEST
Created attachment 3697 
a hopefully better backtrace

This one should be better than the initial one
Comment 4 Vitaly 2011-07-29 14:52:59 CEST
I saw the crash of xfce4-sensors app and plugin at Arch Linux. App reports its version as 1.2.3. The cause that leads to crash is not started hddtemp daemon. xfce4-sensors tries to connect with it at 7634 port and then crashes with "double free or corruption" message. The reproducibility is 100%.
Comment 5 Vitaly 2011-07-29 14:55:32 CEST
When I installed and started hddtemp daemon, application works normally.
Comment 6 Fabian Nowak editbugs 2011-07-29 16:15:57 CEST
(In reply to comment #5)
> When I installed and started hddtemp daemon, application works normally.

OK, thanks for letting me know.

So the maintainers didn't follow the guidelines in README and INSTALL files: Only configure the packages this way that you also specify the dependencies: when hddtemp is used with netcat and port, the dependency must be fulfilled accordingly. Anyone else installing on its own is self-responsible for keeping the configuration correct, potentially reconfiguring and reinstalling the plugin.

I will add some code to handle improper connections, insulting the maintainers and administrators of bad system maintainance :)
Comment 7 Christoph Wickert editbugs 2012-02-29 00:25:59 CET
(In reply to comment #6)
> So the maintainers didn't follow the guidelines in README and INSTALL files:
> Only configure the packages this way that you also specify the dependencies:
> when hddtemp is used with netcat and port, the dependency must be fulfilled
> accordingly.

There is not much a maintainer can change. Even I have added a dependency, I have no control whatsoever if the user actually enables the service.
Comment 8 Fabian Nowak editbugs 2012-05-13 17:03:14 CEST
Has been fixed recently.

*** This bug has been marked as a duplicate of bug 8839 ***

Bug #7109

Reported by:
Christoph Wickert
Reported on: 2011-01-16
Last modified on: 2012-05-13

People

Assignee:
Fabian Nowak
CC List:
3 users

Version

Version:
unspecified

Attachments

backtrace of the crash (30.70 KB, text/plain)
2011-01-16 22:19 CET , Christoph Wickert
no flags
a hopefully better backtrace (32.17 KB, text/plain)
2011-05-26 15:59 CEST , Christoph Wickert
no flags

Additional information