Bug 754585

Summary: [abrt] xfce4-power-manager-1.0.10-2.fc16: _IO_vfprintf_internal: Process /usr/bin/xfce4-power-manager was killed by signal 11 (SIGSEGV)
Product: [Fedora] Fedora Reporter: perfectop
Component: xfce4-power-managerAssignee: Christoph Wickert <christoph.wickert>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: alyschik777, andrey.henneberg, christoph.wickert, detune.baptiste, fedoration, joe, linux78, maxamillion, mvanross, pahan, pparsons, rjones, valveur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b3a819d8d78ea0fe1b2582ba231aa36dc8ca7cbd
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-25 22:51:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: maps
none
File: backtrace
none
Smolt profile
none
File: backtrace
none
File: backtrace none

Description perfectop 2011-11-16 22:03:41 UTC
libreport version: 2.0.6
abrt_version:   2.0.4.981
backtrace_rating: 4
cmdline:        xfce4-power-manager --restart --sm-client-id 291123cfe-2cdf-4853-8d31-cd014a0d5277
comment:        Waking up from sleep mode
crash_function: _IO_vfprintf_internal
executable:     /usr/bin/xfce4-power-manager
kernel:         3.1.1-1.fc16.x86_64
reason:         Process /usr/bin/xfce4-power-manager was killed by signal 11 (SIGSEGV)
time:           Wed Nov 16 16:43:59 2011
uid:            1000
username:       jerome
var_log_messages: Nov 16 16:43:59 jerome-3830t abrt[3318]: saved core dump of pid 1411 (/usr/bin/xfce4-power-manager) to /var/spool/abrt/ccpp-2011-11-16-16:43:59-1411 (11771904 bytes)

backtrace:      Text file, 267644 bytes
maps:           Text file, 30118 bytes

dso_list:
:/lib64/libm-2.14.90.so glibc-2.14.90-14.x86_64 (Fedora Project) 1320787705
:/lib64/libgio-2.0.so.0.3000.1 glib2-2.30.1-1.fc16.x86_64 (Fedora Project) 1320788043
:/usr/lib64/libgdk-x11-2.0.so.0.2400.7 gtk2-2.24.7-3.fc16.x86_64 (Fedora Project) 1320961732
:/usr/share/icons/hicolor/icon-theme.cache hicolor-icon-theme-0.12-3.fc16.noarch (Fedora Project) 1320789978
:/usr/lib64/libXdamage.so.1.1.0 libXdamage-1.1.3-2.fc15.x86_64 (Fedora Project) 1320793188
:/lib64/ld-2.14.90.so glibc-2.14.90-14.x86_64 (Fedora Project) 1320787705
:/usr/lib64/libpng12.so.0.46.0 libpng-2:1.2.46-1.fc16.x86_64 (Fedora Project) 1320787795
:/usr/lib64/libatk-1.0.so.0.20209.1 atk-2.2.0-2.fc16.x86_64 (Fedora Project) 1320788052
:/usr/share/icons/gnome/icon-theme.cache gnome-icon-theme-3.2.1.2-1.fc16.noarch (Fedora Project) 1321197501
:/lib64/libz.so.1.2.5 zlib-1.2.5-5.fc16.x86_64 (Fedora Project) 1321342658
:/usr/lib64/libXext.so.6.4.0 libXext-1.2.0-2.fc15.x86_64 (Fedora Project) 1320793179
:/usr/lib64/libgtk-x11-2.0.so.0.2400.7 gtk2-2.24.7-3.fc16.x86_64 (Fedora Project) 1320961732
:/lib64/libgthread-2.0.so.0.3000.1 glib2-2.30.1-1.fc16.x86_64 (Fedora Project) 1320788043
:/usr/lib/locale/locale-archive glibc-common-2.14.90-14.x86_64 (Fedora Project) 1320787678
:/usr/bin/xfce4-power-manager xfce4-power-manager-1.0.10-2.fc16.x86_64 (Fedora Project) 1321096493
:/usr/share/locale/fr/LC_MESSAGES/gtk20.mo gtk2-2.24.7-3.fc16.x86_64 (Fedora Project) 1320961732
:/usr/lib64/libXcursor.so.1.0.2 libXcursor-1.1.11-3.fc15.x86_64 (Fedora Project) 1320793202
:/usr/lib64/libxcb.so.1.1.0 libxcb-1.7-3.fc16.x86_64 (Fedora Project) 1320787968
:/usr/lib64/libxfconf-0.so.2.0.0 xfconf-4.8.0-4.fc16.x86_64 (Fedora Project) 1320793966
:/usr/lib64/libgdk_pixbuf-2.0.so.0.2400.0 gdk-pixbuf2-2.24.0-1.fc16.x86_64 (Fedora Project) 1320793178
:/lib64/libresolv-2.14.90.so glibc-2.14.90-14.x86_64 (Fedora Project) 1320787705
:/usr/lib64/libgvfscommon.so.0.0.0 gvfs-1.10.1-2.fc16.x86_64 (Fedora Project) 1320794929
:/usr/lib64/libfontconfig.so.1.4.4 fontconfig-2.8.0-4.fc16.x86_64 (Fedora Project) 1320789788
:/usr/lib64/libnotify.so.4.0.0 libnotify-0.7.4-1.fc16.x86_64 (Fedora Project) 1320794017
:/lib64/librt-2.14.90.so glibc-2.14.90-14.x86_64 (Fedora Project) 1320787705
:/usr/lib64/libICE.so.6.3.0 libICE-1.0.7-1.fc16.x86_64 (Fedora Project) 1320787804
:/usr/lib64/libpangoft2-1.0.so.0.2904.0 pango-1.29.4-1.fc16.x86_64 (Fedora Project) 1320793192
:/usr/share/locale/fr/LC_MESSAGES/xfce4-power-manager.mo xfce4-power-manager-1.0.10-2.fc16.x86_64 (Fedora Project) 1321096493
:/usr/lib64/libpixman-1.so.0.22.2 pixman-0.22.2-1.fc16.x86_64 (Fedora Project) 1320787930
:/usr/lib64/libXcomposite.so.1.0.0 libXcomposite-0.4.3-2.fc15.x86_64 (Fedora Project) 1320793189
:/usr/share/locale/fr/LC_MESSAGES/libc.mo glibc-common-2.14.90-14.x86_64 (Fedora Project) 1320787678
:/usr/lib64/libfreetype.so.6.7.1 freetype-2.4.6-3.fc16.x86_64 (Fedora Project) 1320787765
:/usr/lib64/libstartup-notification-1.so.0.0.0 startup-notification-0.12-1.fc16.x86_64 (Fedora Project) 1320793201
:/usr/lib64/libpango-1.0.so.0.2904.0 pango-1.29.4-1.fc16.x86_64 (Fedora Project) 1320793192
:/usr/lib64/libX11-xcb.so.1.0.0 libX11-1.4.3-1.fc16.x86_64 (Fedora Project) 1320793175
:/lib64/libgmodule-2.0.so.0.3000.1 glib2-2.30.1-1.fc16.x86_64 (Fedora Project) 1320788043
:/usr/lib64/libdbus-glib-1.so.2.1.0 dbus-glib-0.92-2.fc15.x86_64 (Fedora Project) 1320788056
:/usr/share/locale/fr/LC_MESSAGES/glib20.mo glib2-2.30.1-1.fc16.x86_64 (Fedora Project) 1320788043
:/lib64/libpthread-2.14.90.so glibc-2.14.90-14.x86_64 (Fedora Project) 1320787705
:/usr/lib64/libXfixes.so.3.1.0 libXfixes-5.0-1.fc16.x86_64 (Fedora Project) 1320793184
:/usr/lib64/gconv/gconv-modules.cache glibc-2.14.90-14.x86_64 (Fedora Project) 1320787705
:/usr/lib64/libXrender.so.1.3.0 libXrender-0.9.6-2.fc15.x86_64 (Fedora Project) 1320793179
:/lib64/libgobject-2.0.so.0.3000.1 glib2-2.30.1-1.fc16.x86_64 (Fedora Project) 1320788043
:/usr/lib64/libxml2.so.2.7.8 libxml2-2.7.8-6.fc16.x86_64 (Fedora Project) 1320787789
:/lib64/libdbus-1.so.3.5.6 dbus-libs-1:1.4.10-3.fc16.x86_64 (Fedora Project) 1320787773
:/lib64/libdl-2.14.90.so glibc-2.14.90-14.x86_64 (Fedora Project) 1320787705
:/usr/lib64/libxfce4util.so.4.1.1 libxfce4util-4.8.2-1.fc16.x86_64 (Fedora Project) 1320788059
:/lib64/libudev.so.0.12.0 libudev-173-3.fc16.x86_64 (Fedora Project) 1320787897
:/usr/lib64/libXau.so.6.0.0 libXau-1.0.6-2.fc15.x86_64 (Fedora Project) 1320787858
:/usr/share/icons/Mist/icon-theme.cache gnome-themes-2.32.0-7.fc16.noarch (Fedora Project) 1320793371
:/usr/lib64/libXrandr.so.2.2.0 libXrandr-1.3.1-2.fc15.x86_64 (Fedora Project) 1320793186
:/usr/lib64/libxfce4ui-1.so.0.0.0 libxfce4ui-4.8.0-4.fc16.x86_64 (Fedora Project) 1320793967
:/lib64/libutil-2.14.90.so glibc-2.14.90-14.x86_64 (Fedora Project) 1320787705
:/usr/lib64/libXi.so.6.1.0 libXi-1.4.3-3.fc16.x86_64 (Fedora Project) 1320793193
:/usr/lib64/libffi.so.5.0.10 libffi-3.0.10-1.fc16.x86_64 (Fedora Project) 1320788022
:/usr/lib64/libSM.so.6.0.1 libSM-1.2.0-2.fc15.x86_64 (Fedora Project) 1320787873
:/usr/lib64/libXinerama.so.1.0.0 libXinerama-1.1.1-2.fc15.x86_64 (Fedora Project) 1320793203
:/lib64/libexpat.so.1.5.2 expat-2.0.1-11.fc15.x86_64 (Fedora Project) 1320787829
:/lib64/libnss_files-2.14.90.so glibc-2.14.90-14.x86_64 (Fedora Project) 1320787705
:/usr/lib64/libbluray.so.0.0.0 libbluray-0.2-0.5.20110710git51d7d60a96d06.fc16.x86_64 (Fedora Project) 1320788546
:/lib64/libglib-2.0.so.0.3000.1 glib2-2.30.1-1.fc16.x86_64 (Fedora Project) 1320788043
:/usr/lib64/libX11.so.6.3.0 libX11-1.4.3-1.fc16.x86_64 (Fedora Project) 1320793175
:/lib64/libgcc_s-4.6.2-20111027.so.1 libgcc-4.6.2-1.fc16.x86_64 (Fedora Project) 1320787322
:/usr/lib64/gtk-2.0/2.10.0/engines/libclearlooks.so gtk2-engines-2.20.2-2.fc15.x86_64 (Fedora Project) 1320793334
:/usr/lib64/gio/modules/libgvfsdbus.so gvfs-1.10.1-2.fc16.x86_64 (Fedora Project) 1320794929
:/lib64/libuuid.so.1.3.0 libuuid-2.20.1-2.fc16.x86_64 (Fedora Project) 1320787870
:/usr/share/fonts/dejavu/DejaVuSans.ttf dejavu-sans-fonts-2.33-1.fc16.noarch (Fedora Project) 1320797308
:/lib64/libc-2.14.90.so glibc-2.14.90-14.x86_64 (Fedora Project) 1320787705
:/lib64/libselinux.so.1 libselinux-2.1.6-4.fc16.x86_64 (Fedora Project) 1320787738
:/usr/lib64/libpangocairo-1.0.so.0.2904.0 pango-1.29.4-1.fc16.x86_64 (Fedora Project) 1320793192
:/usr/lib64/libxcb-aux.so.0.0.0 xcb-util-0.3.6-2.fc15.x86_64 (Fedora Project) 1320788827
:/usr/share/locale/fr/LC_MESSAGES/gdk-pixbuf.mo gdk-pixbuf2-2.24.0-1.fc16.x86_64 (Fedora Project) 1320793178
:/usr/lib64/libcairo.so.2.11000.2 cairo-1.10.2-4.fc16.x86_64 (Fedora Project) 1320793182

environ:
:XDG_VTNR=1
:XDG_SESSION_ID=2
:SSH_AGENT_PID=1371
:HOSTNAME=jerome-3830t.localdomain
:IMSETTINGS_INTEGRATE_DESKTOP=yes
:GPG_AGENT_INFO=/home/jerome/.gnupg/S.gpg-agent:1391:1
:GLADE_PIXMAP_PATH=:
:XDG_MENU_PREFIX=xfce-
:TERM=dumb
:SHELL=/bin/bash
:HISTSIZE=1000
:XDG_SESSION_COOKIE=db6122158cd32cf301f1126600000010-1321452743.815468-1370199163
:GNOME_KEYRING_CONTROL=/tmp/keyring-9QpScY
:IMSETTINGS_MODULE=none
:USER=jerome
:GLADE_MODULE_PATH=:
:SSH_AUTH_SOCK=/tmp/ssh-EEgFIpnS1256/agent.1256
:USERNAME=jerome
:XDG_CONFIG_DIRS=/etc/xdg
:MAIL=/var/spool/mail/jerome
:DESKTOP_SESSION=xfce
:PATH=/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/jerome/.local/bin:/home/jerome/bin
:QT_IM_MODULE=xim
:PWD=/home/jerome
:XMODIFIERS=@im=none
:KDE_IS_PRELINKED=1
:LANG=fr_FR.UTF-8
:GNOME_KEYRING_PID=1252
:KDEDIRS=/usr
:GDMSESSION=xfce
:HISTCONTROL=ignoredups
:SHLVL=2
:XDG_SEAT=seat0
:HOME=/home/jerome
:LOGNAME=jerome
:CVS_RSH=ssh
:DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-C179DSDvfl,guid=54d003d952a253ce3ce1fb4100000027
:XDG_DATA_DIRS=/usr/local/share:/usr/share
:'LESSOPEN=||/usr/bin/lesspipe.sh %s'
:WINDOWPATH=1
:DISPLAY=:0
:XDG_RUNTIME_DIR=/run/user/jerome
:GLADE_CATALOG_PATH=:
:LIBGLADE_MODULE_PATH=:
:XAUTHORITY=/var/run/gdm/auth-for-jerome-h7jM1p/database
:_=/usr/bin/xfce4-session
:SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/1400,unix/unix:/tmp/.ICE-unix/1400

Comment 1 perfectop 2011-11-16 22:03:46 UTC
Created attachment 534105 [details]
File: maps

Comment 2 perfectop 2011-11-16 22:03:56 UTC
Created attachment 534106 [details]
File: backtrace

Comment 3 Christoph Wickert 2011-11-16 22:12:33 UTC
Does it crash every time your computer wakes up from sleep?

Comment 4 perfectop 2011-11-16 22:17:25 UTC
No, it was the first time. I didn't retry to reproduce this bug since it happens.

Comment 5 perfectop 2011-11-23 13:04:07 UTC
Package: xfce4-power-manager-1.0.10-2.fc16
Architecture: x86_64
OS Release: Fedora release 16 (Verne)

Comment
-----
When i plugged in the power plug

Comment 6 Christoph Wickert 2011-11-23 13:11:37 UTC
Seems you are the only one to get this crash. Can you tell us a little about your hardware or even better give us a link to it's smolt profile?

Comment 7 perfectop 2011-11-24 20:12:40 UTC
Created attachment 536037 [details]
Smolt profile

Comment 8 Christoph Wickert 2011-11-29 19:14:03 UTC
*** Bug 758379 has been marked as a duplicate of this bug. ***

Comment 9 Christoph Wickert 2011-11-30 08:48:42 UTC
*** Bug 758572 has been marked as a duplicate of this bug. ***

Comment 10 perfectop 2011-12-01 15:56:46 UTC
Package: xfce4-power-manager-1.0.10-2.fc16
Architecture: x86_64
OS Release: Fedora release 16 (Verne)

Comment
-----
When unplugging the power plug

Comment 11 Christoph Wickert 2011-12-02 13:20:13 UTC
*** Bug 759464 has been marked as a duplicate of this bug. ***

Comment 12 Christoph Wickert 2011-12-09 11:15:28 UTC
*** Bug 765762 has been marked as a duplicate of this bug. ***

Comment 13 Christoph Wickert 2011-12-17 20:52:02 UTC
*** Bug 766496 has been marked as a duplicate of this bug. ***

Comment 14 Baptiste D 2011-12-28 21:42:50 UTC
Plug / Unplug power supply on netbook.

rating: 4
Package: xfce4-power-manager-1.0.10-2.fc16
Architecture: i686
OS Release: Fedora release 16 (Verne)

Comment 15 Andrey V. Henneberg 2012-01-01 08:34:22 UTC
I have just do it - power manager crashed. If it significant the netbook battery is being charged now.

Comment 16 Baptiste D 2012-01-02 13:16:47 UTC
Seems like the problem is coming directly from xfce4 and not Fedora itself.

Maybe we should submit a ticket about this to xfce4 dev team.

Under Xubuntu (using xfce4), we have the same problem as follow :

https://bugs.launchpad.net/ubuntu/+source/xfce4-power-manager/+bug/910776

B.D.

Comment 17 Sergey Solomkin 2012-02-21 17:32:16 UTC
Plug and unplug AC cable. Wakeup after going to suspen and hibernate mode.

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-2.fc16
OS Release: Fedora release 16 (Verne)

Comment 18 Sergey Solomkin 2012-02-21 17:32:24 UTC
Created attachment 564756 [details]
File: backtrace

Comment 19 Andrew Lyschik 2012-03-27 11:23:16 UTC
It just crashed after suspending.

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-2.fc16
Architecture: i686
OS Release: Fedora release 16 (Verne)

Comment 20 Andrew Lyschik 2012-03-27 11:23:25 UTC
Created attachment 573025 [details]
File: backtrace

Comment 21 admin 2012-05-21 15:06:06 UTC
Just log in

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-3.fc17
OS Release: Fedora release 17 (Beefy Miracle)

Comment 22 Ilya Pashchenko 2012-06-14 20:10:54 UTC
changing battery to AC

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-3.fc17
Architecture: i686
OS Release: Fedora release 17 (Beefy Miracle)

Comment 23 muscat 2012-06-21 18:10:27 UTC
just power on after standby

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-3.fc17
Architecture: i686
OS Release: Fedora release 17 (Beefy Miracle)

Comment 24 Ilya Pashchenko 2012-06-21 21:06:28 UTC
battery to AC change

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-3.fc17
Architecture: i686
OS Release: Fedora release 17 (Beefy Miracle)

Comment 25 Ilya Pashchenko 2012-06-26 10:21:24 UTC
switch to battery

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-3.fc17
Architecture: i686
OS Release: Fedora release 17 (Beefy Miracle)

Comment 26 Ilya Pashchenko 2012-06-26 16:08:11 UTC
switch to AC

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-3.fc17
Architecture: i686
OS Release: Fedora release 17 (Beefy Miracle)

Comment 27 JMarc Therond 2012-06-28 14:03:05 UTC
plugged AC then crash

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-3.fc17
Architecture: i686
OS Release: Fedora release 17 (Beefy Miracle)

Comment 28 kianby 2012-06-28 14:36:12 UTC
Back from standby mode. 

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-3.fc17
OS Release: Fedora release 17 (Beefy Miracle)

Comment 29 Delhez Nicolas 2012-07-07 08:25:19 UTC
I plugged the power cord, in fact, each time I plug it, I get this error

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-3.fc17
Architecture: i686
OS Release: Fedora release 17 (Beefy Miracle)

Comment 30 Ilya Pashchenko 2012-07-10 19:42:24 UTC
wake up from hibernate in battery mode

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-3.fc17
Architecture: i686
OS Release: Fedora release 17 (Beefy Miracle)

Comment 31 Jean-Marc Therond 2012-09-20 15:56:23 UTC
Unplugged AC

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-3.fc17
OS Release: Fedora release 17 (Beefy Miracle)

Comment 32 Richard W.M. Jones 2012-09-23 18:28:43 UTC
Not sure what I did, but here's the stack trace.  This is with
a completely up to date Fedora 18 system.

xfce4-power-manager-1.2.0-2.fc18.x86_64

(gdb) t a a bt

Thread 2 (Thread 0x7f90a008c700 (LWP 2825)):
#0  0x0000003a834e96ad in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003a86448074 in g_main_context_iterate.isra.24 ()
   from /lib64/libglib-2.0.so.0
#2  0x0000003a864484d2 in g_main_loop_run () from /lib64/libglib-2.0.so.0
#3  0x0000003a8a0d5ed6 in gdbus_shared_thread_func ()
   from /lib64/libgio-2.0.so.0
#4  0x0000003a8646b0c5 in g_thread_proxy () from /lib64/libglib-2.0.so.0
#5  0x0000003a83807d15 in start_thread (arg=0x7f90a008c700)
    at pthread_create.c:308
#6  0x0000003a834f218d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 1 (Thread 0x7f90a66cc9c0 (LWP 2811)):
#0  0x0000003a83447ea8 in _IO_vfprintf_internal (s=s@entry=0x7fff4d478050, 
    format=<optimized out>, format@entry=
    0x7f90a6714874 <Address 0x7f90a6714874 out of bounds>, ap=ap@entry=
    0x7fff4d4781b8) at vfprintf.c:1615
#1  0x0000003a83509e01 in __GI___vasprintf_chk (result_ptr=0x7fff4d478198, 
    flags=1, format=0x7f90a6714874 <Address 0x7f90a6714874 out of bounds>, 
    args=0x7fff4d4781b8) at vasprintf_chk.c:66
#2  0x0000003a86483e2b in g_vasprintf () from /lib64/libglib-2.0.so.0
#3  0x0000003a86463c2d in g_strdup_vprintf () from /lib64/libglib-2.0.so.0
#4  0x0000003a86463ccc in g_strdup_printf () from /lib64/libglib-2.0.so.0
#5  0x000000000040dfc0 in xfpm_battery_notify ()
#6  0x000000000040e67f in xfpm_battery_notify_idle ()
#7  0x0000003a86447da5 in g_main_context_dispatch ()
   from /lib64/libglib-2.0.so.0
#8  0x0000003a864480d8 in g_main_context_iterate.isra.24 ()
   from /lib64/libglib-2.0.so.0
#9  0x0000003a864484d2 in g_main_loop_run () from /lib64/libglib-2.0.so.0
#10 0x0000003a9814ac87 in gtk_main () from /lib64/libgtk-x11-2.0.so.0
#11 0x00000000004086ee in xfpm_start ()
#12 0x0000000000408c76 in main ()

Comment 33 Richard W.M. Jones 2012-09-23 18:36:05 UTC
Looking at the code, I don't even see where that function calls
{g_,}vasprintf.  Must be in a glib macro ...

Comment 34 Richard W.M. Jones 2012-09-23 18:43:36 UTC
Here's a better stack trace with more debuginfo packages
installed.  This also confirms that it's happening in the
same place as for the original bug reporter.

#0  0x0000003a83447ea8 in _IO_vfprintf_internal (s=s@entry=0x7fff6bdc04f0, 
    format=<optimized out>, format@entry=
    0x7f7408b538ad <Address 0x7f7408b538ad out of bounds>, ap=ap@entry=
    0x7fff6bdc0658) at vfprintf.c:1615
#1  0x0000003a83509e01 in __GI___vasprintf_chk (result_ptr=0x7fff6bdc0638, 
    flags=1, format=0x7f7408b538ad <Address 0x7f7408b538ad out of bounds>, 
    args=0x7fff6bdc0658) at vasprintf_chk.c:66
#2  0x0000003a86483e2b in g_vasprintf () from /lib64/libglib-2.0.so.0
#3  0x0000003a86463c2d in g_strdup_vprintf () from /lib64/libglib-2.0.so.0
#4  0x0000003a86463ccc in g_strdup_printf () from /lib64/libglib-2.0.so.0
#5  0x000000000040dfc0 in xfpm_battery_get_message_from_battery_state (battery=
    0x12c1830) at xfpm-battery.c:244
#6  xfpm_battery_notify (battery=0x12c1830) at xfpm-battery.c:345
#7  0x000000000040e67f in xfpm_battery_notify_idle (data=<optimized out>)
    at xfpm-battery.c:367
#8  0x0000003a86447da5 in g_main_context_dispatch ()
   from /lib64/libglib-2.0.so.0
#9  0x0000003a864480d8 in g_main_context_iterate.isra.24 ()
   from /lib64/libglib-2.0.so.0
#10 0x0000003a864484d2 in g_main_loop_run () from /lib64/libglib-2.0.so.0
#11 0x0000003a9814ac87 in IA__gtk_main () at gtkmain.c:1257
#12 0x00000000004086ee in xfpm_start (bus=bus@entry=0x1293c08, client_id=0x0, 
    dump=<optimized out>) at xfpm-main.c:238
#13 0x0000000000408c76 in main (argc=1, argv=0x7fff6bdc0c38) at xfpm-main.c:426


The code which is failing is:

                    if ( battery->priv->time_to_empty != 0 )
                    {
                        gchar *tmp, *est_time_str;
                        tmp = g_strdup (msg);
                        g_free (msg);
                        
                        est_time_str = xfpm_battery_get_time_string (battery->pr
iv->time_to_empty);
                        
        HERE>>>         msg = g_strdup_printf (_("%s (%i%%)\nEstimated time left
 is %s."), tmp, battery->priv->percentage, est_time_str);
                        g_free (tmp);
                        g_free (est_time_str);
                    }

Unfortunately 'tmp' and 'est_time_str' are <optimized out> and
*battery looks OK.  I will compile a local copy with -g -O0 and
see if I can reproduce the bug from that.

Comment 35 Richard W.M. Jones 2012-09-23 18:51:33 UTC
Without optimization it still crashes.  Here is some more
data from gdb:

(gdb) frame 5
#5  0x000000000040f919 in xfpm_battery_get_message_from_battery_state (battery=
    0x698030) at xfpm-battery.c:244
244				msg = g_strdup_printf (_("%s (%i%%)\nEstimated time left is %s."), tmp, battery->priv->percentage, est_time_str);
(gdb) print tmp
$1 = (gchar *) 0x7c3ec0 "System is running on battery power"
(gdb) print est_time_str
$2 = (gchar *) 0x6e6520 "1 hour 3 minutes"
(gdb) print *battery
$3 = {
  parent = {
    parent_instance = {
      g_type_instance = {
        g_class = 0x6972f0
      }, 
      ref_count = 1, 
      qdata = 0x0
    }, 
    priv = 0x698060
  }, 
  priv = 0x6980a0
}
(gdb) print *battery->priv
$5 = {
  conf = 0x68a700, 
  notify = 0x6515e0, 
  button = 0x673740, 
  proxy = 0x67c070, 
  proxy_prop = 0x7fffec003510, 
  icon_prefix = 0x6d0830 "xfpm-primary-", 
  charge = XFPM_BATTERY_CHARGE_OK, 
  state = XFPM_DEVICE_STATE_DISCHARGING, 
  type = XFPM_DEVICE_TYPE_BATTERY, 
  ac_online = 0, 
  present = 1, 
  percentage = 64, 
  time_to_full = 0, 
  time_to_empty = 3768, 
  battery_name = 0x7ffff7ffc94c "battery", 
  sig = 34, 
  sig_bt = 35, 
  notify_idle = 89
}

I must be missing the bleedin' obvious here, but why would that crash ...?

Comment 36 Mark van Rossum 2012-09-25 21:00:27 UTC
Plugged in the powersupply of my laptop.
Reproducible crash every time I go from battery to power or back.


backtrace_rating: 4
Package: xfce4-power-manager-1.2.0-2.fc18
OS Release: Fedora release 18 (Spherical Cow)

Comment 37 Mark van Rossum 2012-10-17 08:45:19 UTC
In the Ubuntu forums it is suggested to do 

rm -rf ~/.cache/sessions

while xfce is not running.

I did not work for me though...

Comment 38 lucasgauvain 2012-10-24 19:35:41 UTC
When i'm pluging my ac powermanagement stops working. Thank you

backtrace_rating: 4
Package: xfce4-power-manager-1.0.10-3.fc17
OS Release: Fedora release 17 (Beefy Miracle)

Comment 39 Mark van Rossum 2012-10-26 13:10:23 UTC
Found the solution (in my case at least) at the xfce bugzilla.

It has to do with translation and language packages.
Set your language to en_US (was en_UK in my case).
(yum install system-config-language)
and reboot.


Can someone at redhat check that Christoph Wickert has not evaporated?

Comment 40 Christoph Wickert 2012-10-26 14:35:26 UTC
I haven't, I'm still alive and kicking.

However there is not much I can do here. I am using xfce4-power-manager heavily and I never hit that bug. That's why I am very surprised about the workaround you describe. Where do you have it from?

Comment 41 Mark van Rossum 2012-10-26 20:40:26 UTC
see 

https://bugzilla.xfce.org/show_bug.cgi?id=9404

Comment 42 Mark van Rossum 2012-10-26 20:41:33 UTC
sorry , that should have been

https://bugzilla.xfce.org/show_bug.cgi?id=8992

Comment 43 Joe Wrigley 2012-12-21 21:59:52 UTC
FYI, I manually patched the xfce4-power-manager-1.2.0-2.fc18.src.rpm using with the changes in https://bugzilla.xfce.org/attachment.cgi?id=4639 (from https://bugzilla.xfce.org/show_bug.cgi?id=8992) and after force-installing it (didn't make a patch or change the changelog) and starting xfce4-power-manager, plugging/unplugging the power no longer crashes it. My locale is en_GB.utf8

Seems like a pretty trivial fix to port to the Fedora package, and this must be frustrating other UK Xfce users.

Comment 44 Christoph Wickert 2013-01-21 13:37:08 UTC
Thanks, I will look at this ASAP.

Comment 45 Jonathan Wakely 2013-02-23 01:00:17 UTC
I left the computer for a while and I think the screen switched off to save power, and I couldn't wake it up again.

backtrace_rating: 4
Package: xfce4-power-manager-1.2.0-2.fc18
Architecture: armv7l
OS Release: Fedora release 18 (Spherical Cow)

Comment 46 Joe Wrigley 2013-03-19 13:43:13 UTC
Still not fixed in xfce4-power-manager-1.2.0-5.fc18

Can we please get this fixed, there is a known, upstream, patch which is completely trivial. I have manually applied the patch again in 1.2.0-5 and confirmed it fixes the issue.

Comment 47 Christoph Wickert 2013-03-21 13:33:09 UTC
Sorry, it took so long. It affected more locales than just en_GB and and not all patches wee applying cleanly. Plus, I was just terribly busy. Update is currently building, stay tuned.

Comment 48 Joe Wrigley 2013-03-21 13:36:37 UTC
(In reply to comment #47)
> Sorry, it took so long. It affected more locales than just en_GB and and not
> all patches wee applying cleanly. Plus, I was just terribly busy. Update is
> currently building, stay tuned.

Thanks for the update. I had not realised other locales were affected, obviously not seeing the bigger picture.

Comment 49 Fedora Update System 2013-03-21 15:45:28 UTC
xfce4-power-manager-1.2.0-7.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/xfce4-power-manager-1.2.0-7.fc18

Comment 50 Fedora Update System 2013-03-21 22:15:10 UTC
xfce4-power-manager-1.0.10-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/xfce4-power-manager-1.0.10-4.fc17

Comment 51 Fedora Update System 2013-03-22 00:41:24 UTC
Package xfce4-power-manager-1.2.0-7.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing xfce4-power-manager-1.2.0-7.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-4203/xfce4-power-manager-1.2.0-7.fc18
then log in and leave karma (feedback).

Comment 52 Fedora Update System 2013-03-25 22:51:33 UTC
xfce4-power-manager-1.2.0-7.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 53 Fedora Update System 2013-04-01 03:34:11 UTC
xfce4-power-manager-1.0.10-4.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.