Bug 1396 - XFdrake crashed (cannot ensure a safe /home/jeff/tmp/.drakx.Xoutput at /usr/lib/libDrakX/common.pm line 270.)
Summary: XFdrake crashed (cannot ensure a safe /home/jeff/tmp/.drakx.Xoutput at /usr/l...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
: 1572 2166 2968 3462 4575 4872 5082 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-23 05:07 CEST by Jeffry Gutiérrez
Modified: 2012-05-03 23:53 CEST (History)
11 users (show)

See Also:
Source RPM: drakx-kbd-mouse-x11-0.97-1.mga1
CVE:
Status comment:


Attachments

Description Jeffry Gutiérrez 2011-05-23 05:07:06 CEST
The "XFdrake" program crashed. Drakbug-13.55 caught it.

trying to test display configuration

Backtrace was:
cannot ensure a safe /home/jeff/tmp/.drakx.Xoutput at /usr/lib/libDrakX/common.pm line 270.
standalone::bug_handler() called from /usr/lib/libDrakX/mygtk2.pm:1425
mygtk2::main() called from /usr/lib/libDrakX/ugtk2.pm:767
ugtk2::main() called from /usr/lib/libDrakX/interactive/gtk.pm:883
interactive::gtk::ask_fromW() called from /usr/lib/libDrakX/interactive.pm:533
interactive::ask_from_real() called from /usr/lib/libDrakX/interactive.pm:521
interactive::ask_from_() called from /usr/lib/libDrakX/Xconfig/main.pm:152
Xconfig::main::configure_chooser_raw() called from /usr/lib/libDrakX/Xconfig/main.pm:165
Xconfig::main::configure_chooser() called from /usr/lib/libDrakX/Xconfig/main.pm:188
Xconfig::main::configure_everything_or_configure_chooser() called from /usr/sbin/XFdrake:48

Kernel version = 2.6.38.6-desktop586-2.mga
Distribution=Mageia release 1 (Cauldron) for i586
CPU=Intel(R) Atom(TM) CPU N280   @ 1.66GHz
Comment 1 Ahmad Samir 2011-05-24 00:37:16 CEST
Could you post the steps you too to launch XFdrake?

Keywords: (none) => NEEDINFO

Comment 2 Jeffry Gutiérrez 2011-05-24 22:58:14 CEST
I went to the mageia control center and in the hardware section selected to setup graphical server, i changed the color depth and resolution and selected in the options to duplicate both video outputs, then pressed the button to test the configuration and then XFDrake crashed
Comment 3 Ahmad Samir 2011-05-24 23:21:39 CEST
How did you start drakconf, i.e. used 'su' or the icon on the panel/menu, or sudo... etc?
Comment 4 Jeffry Gutiérrez 2011-05-25 06:48:45 CEST
i just launched the program with the icon in the panel, after an upgrade i have not been able to boot again so i dunno if i will be able to make any other test, just in case i believe it has something to do with my video card that is an integrated intel 945GME and my laptop is an ASUS eeepc 1005ha
Ahmad Samir 2011-06-04 22:48:35 CEST

Keywords: NEEDINFO => (none)
CC: (none) => pterjan, thierry.vignaud

Comment 5 Ahmad Samir 2011-06-04 22:49:13 CEST
*** Bug 1572 has been marked as a duplicate of this bug. ***

CC: (none) => madboater

Comment 6 Pascal Terjan 2011-06-04 23:02:59 CEST
I this error means it could not create the file but I don't know why it would fail.

# ll -d /home/pterjan/tmp
drwx------ 2 pterjan pterjan 4096 Jun  4 20:59 /home/pterjan/tmp/
# perl -I/usr/lib/libDrakX/ -e "use feature 'say'; use common; say common::secured_file('/home/pterjan/tmp/plop');"
/home/pterjan/tmp/plop
# ll /home/pterjan/tmp/plop
-rw------- 1 root root 0 Jun  4 21:00 /home/pterjan/tmp/plop

Maybe read-only partition ?
Comment 7 Ahmad Samir 2011-06-04 23:08:43 CEST
If /home is read-only, I guess the user won't be able to log in...
Comment 8 Pascal Terjan 2011-06-04 23:28:45 CEST
Yes and it's unlikely to happen to 2 people but I currently can't think of another reason why it would fail, I probably lack imagination :)
Comment 9 Ahmad Samir 2011-06-05 02:33:40 CEST
FWIW, this is not new, I've seen a report of a similar issue over at the mdv bugzilla some time ago, the issue was never pinned down though...
Comment 10 Pascal Terjan 2011-06-05 20:06:49 CEST
Just thought about it, maybe /home/jeff/tmp/ does not exist?
Comment 11 Pascal Terjan 2011-06-05 20:12:13 CEST
Code in drakx-kbd-mouse-x11/trunk/lib/Xconfig/test.pm:

    my $f_err = common::secured_file($::prefix . ($ENV{TMPDIR} || "$ENV{HOME}/tmp") . '/.drakx.Xoutput');

So indeed it would fail if TMPDIR is not set but HOME is set and $HOME/tmp does not exist
Comment 12 Ahmad Samir 2011-06-05 20:21:34 CEST
If SECURE_TMP isn't exported, then /tmp is used instead of /home/<user>/tmp.

I could reproduce the bug with TMPDIR set:
$ env | grep TMP
TMPDIR=/tmp
GCONF_TMPDIR=/tmp
TMP=/tmp

Running it as root directly, it never fails, because if /root/tmp doesn't exist it gets created; SECURE_TMP isn't set for root here too.
Comment 13 Steve Edgar 2011-06-05 20:37:50 CEST
I manually created "/home/<user>/tmp" and then could re-configure my display.
Hope this helps.
Ahmad Samir 2011-07-09 17:48:08 CEST

Component: Installer => RPM Packages

Comment 14 Ahmad Samir 2011-07-16 14:21:49 CEST
*** Bug 2166 has been marked as a duplicate of this bug. ***

CC: (none) => izekledkha

Comment 15 Marja Van Waes 2011-10-14 20:15:51 CEST
@ Thierry

This reminds me very much of bug 226 before I changed that to "Clicking "Test" in XFdrake causes grey screen (was: causes black screen) " 


@ Jeffrey

Is the bug still there in current cauldron?

CC: (none) => marja11
Keywords: (none) => NEEDINFO

Comment 16 Jeffry Gutiérrez 2011-10-14 20:32:36 CEST
sorry guys i couldnt tell my vacations ended and the time for me to test mageia went off im not using it anymore by now.
Comment 17 Marja Van Waes 2011-10-14 21:16:10 CEST
@ Jeffry

Thanks for letting us know.

Closing this bug as old

Status: NEW => RESOLVED
Resolution: (none) => OLD

Comment 18 Thierry Vignaud 2011-11-27 00:43:16 CET
Still valid

Status: RESOLVED => REOPENED
Resolution: OLD => (none)

Comment 19 Thierry Vignaud 2011-11-27 00:43:52 CET
*** Bug 3462 has been marked as a duplicate of this bug. ***

CC: (none) => elegant.pegasus

Comment 20 Thierry Vignaud 2011-11-27 00:43:57 CET
*** Bug 2968 has been marked as a duplicate of this bug. ***

CC: (none) => firatkutlu

Comment 21 Thierry Vignaud 2011-11-27 01:50:56 CET
Fixed in SVN

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Comment 22 Olivier Blin 2011-11-27 15:15:11 CET
But why would ~/tmp not exist or not be writable?
Maybe when reusing a /home from another distro?

You mentioned "live system" in other bug reports, how is related?

CC: (none) => mageia

Comment 23 Manuel Hiebel 2012-03-11 09:25:35 CET
*** Bug 4872 has been marked as a duplicate of this bug. ***

CC: (none) => lte87

Comment 24 Thierry Vignaud 2012-05-03 23:52:53 CEST
*** Bug 5082 has been marked as a duplicate of this bug. ***

CC: (none) => john

Comment 25 Thierry Vignaud 2012-05-03 23:53:23 CEST
*** Bug 4575 has been marked as a duplicate of this bug. ***

CC: (none) => giovanni.perna


Note You need to log in before you can comment on or make changes to this bug.