<< Juillet >>
 
   
<< 2008 >>
Dernières entrées
04/01/2006 : Comment utiliser urpmi --parallel
09/03/2005 : Comment installer plusieurs distributions
07/07/2004 : Introduction à Linux
07/07/2004 : Gestion des logiciels ( tar.gz, rpm et urpmi )
07/07/2004 : Comment installer le pilote NForce ?

Linux Wizard - Votre ressource Linux !!

Linux : Kmail : QGArray::at: Absolute index ? out of range22/07/2008 13:16:12

Today at work, one user had a very strange problem with Kmail. Kontact was not started, and when looking at the ~/.xsession-errors file, we could see many many lines with the following content :

QGArray::at: Absolute index 892108940 out of range
QGArray::at: Absolute index 892108944 out of range
QGArray::at: Absolute index 892108948 out of range
QGArray::at: Absolute index 892108952 out of range
QGArray::at: Absolute index 892108956 out of range
QGArray::at: Absolute index 892108960 out of range
QGArray::at: Absolute index 892108964 out of range
QGArray::at: Absolute index 892108968 out of range
Even worst, the .xsession-errors file keep growing and even manage to reach more than 20Go ! The only solution at this time was to killed Kontact process ( killall kontact ), and delete the log file. Now to allow kmail to start, the only solution was to delete kmail index files. For this you just need to do the following :
  • Enter in kmail mail directory : cd ~/.Mail
  • Delete all the index files, you can ignore the index.ids and index.sorted ones : rm -f .*.index
  • Start again kontact from CLI to see if everything is right. Kmail may take some time to start as it's going to rebuild the indexes.
Now your done, and Kmail should work again normally. I guess that kmail need to CLI option to force indexes rebuild, instead of forcing users to delete the indexes files by hand ... this could be perceived by the user as a scary thing to do.

Dark_Schneider


Linux : Debugging applications crashes with GDB16/07/2008 18:48:39

Since the upgrade to GNOME 2.23, I'm unable to write emails with evolution. Each time I tried to write an email or reply to another one, evolution will crashed when trying to start the mail editor ... In order to do a meaningful bug report, I've read the Analyzing a software crash HOWTO in Mandriva wiki. This is especially useful for cooker users. As gdb package was already installed on my system, at first I just need to add the _debug media in order to be able to install the -debug packages :
urpmi.addmedia main_debug ftp://ftp.proxad.net/pub/Distributions_Linux/MandrivaLinux/devel/cooker/i586/media/debug_main/release/
urpmi.addmedia contrib_debug ftp://ftp.proxad.net/pub/Distributions_Linux/MandrivaLinux/devel/cooker/i586/media/debug_contrib/release/

Then I installed just the evolution-debug package and start evolution with gdb like this : gdb evolution
However many others -debug packages were missing, and gdb gave me the name of the packages to install. After a copy/paste, I installed all the missing packages. For the record, here is the command : urpmi GConf2-debug ORBit2-debug aspell-debug at-spi-debug atk1.0-debug audiofile-debug avahi-debug cairo-debug cyrus-sasl-debug db46-debug dbus-debug dbus-glib-debug e2fsprogs-debug enchant-debug esound-debug evolution-data-server-debug fontconfig-debug freetype2-debug gamin-debug gcc-debug glib2.0-debug glibc-debug gnome-keyring-debug gnome-panel-debug gnome-vfs2-debug gnutls-debug gstreamer0.10-debug gtk+2.0-debug gtkhtml-3.14-debug gvfs-debug hal-debug ia_ora-gnome-debug krb5-debug libart_lgpl-debug libbonobo-debug libbonoboui-debug libgail-gnome-debug libgcrypt-debug libglade2.0-debug libgnome2-debug libgnomecanvas-debug libgnomeui2-debug libgpg-error-debug libice-debug libpng-debug libsm-debug libsoup-debug libtasn1-debug libvoikko-debug libx11-debug libxau-debug libxcb-debug libxcomposite-debug libxcursor-debug libxdamage-debug libxdmcp-debug libxext-debug libxfixes-debug libxi-debug libxml2-debug libxrandr-debug libxrender-debug libytnef-debug nspr-debug nss-debug nss_mdns-debug openssl-debug pango-debug pcre-debug pixman-debug rpm-debug zlib-debug

Once done, I start again gdb with evolution. At evolution crash, I enter the command thread apply all bt full to have the backtrace, however it was several lines long, and I couldn't copy/paste the output easily for a bug report. The solution in this case is to run gdb in batch mode, and put in a file all the needed commands, and also redirected gdb output to a file. Here is the procedure :

  • create a file named for example evolution_gdb_cmd with the following content :
    run
    thread apply all bt full
    quit
    
  • Then start gdb like this : gdb -batch -e evolution -x evolution_gdb_cmd > evolution_gdb_cmd.log
As you can see, gdb output will be redirected to evolution_gdb_cmd.log, and it will contain the full backtrace. now you just need to attached this file to the bug report.

Note : Please note that "thread apply all bt full" is used for threaded application. If there's no thread in your application, you'd better use "bt full" instead.

Dark_Schneider


Divers : Nuit du Hack 200815/06/2008 23:01:58

Je reviens de la Nuit du Hack 2008, et vraiment ce fut un très bon moment. J'ai eu l'occasion de rencontrer plein de personnes vraiment très sympathique :) Je voulais remercier Corbier, Freeman, et GodMaster pour m'avoir invité et fait venir :) Les photos sont désormais en lignes sur mon Album photo

14-06-2008 : Nuit du Hack
Dark_Schneider


Mandriva : Some Cooker news as of 2008-06-0808/06/2008 23:06:28

Ok, here are some quick news from Cooker :

  • Banshee 1.0 is available. This is the banshee-1 package.
  • On users requests, wallpapoz have been packaged. WHat's interesting with wallpapoz is the fact that you have a large panel of options to configure the wallpaper of the GNOME desktop, notably the ability to define a wallpaper for each virtual desktop :)
  • Google Gadgets for Linux have been packaged too
  • SSL support in KDE 3 Kopete version have been fixed in the new QCA package
  • Oxygen theme support for Firefox have been packaged as mozilla-firefox-theme-oxygen
  • Latests xservers snapshots are upload in Cooker by Paulo Andrade. Indeed, for people doing upstream Xorg dev, they can use the snapshots packagesdone by Paulo, which are extracted directly from git. For those willing to test them, they should look at the packages ending with -snapshot. Maybe in the future a task-x11-snapshot will be created to ease their installation.
  • KDE 4.0.81 is in Cooker since at least 1 week. Don't forget to report bugs upstream for features/fixes/crashers, and at Mandriva bugzilla for the others ones, like the packaging or the desktop integration ones. KDE 4.0.4 is available in 2008.1/contrib/backports for 2008.1 users.
  • Firefox 3.0 RC2 is available in main/testing
  • Cooker is now using kernel 2.6.26-rc4-git5 ( kernel-2.6.26-0.rc4.2mnb2 ). Nvidia drivers have been updated to support this new kernel.
  • There will have some changes concerning post-rpm installation shared libraries linking
  • Since May, Mandriva have switched to TCB ( from OpenWall ) to store password instead of the old shadow. Presently, the compatibility mode is used, but users can easily switch to full TCB database and blowfish encryption. In the future, it may be possible to switch from shadow compatibility mode to full TCB mode by using MSEC/draksec.
  • Olivier Blin is on fire and have add many new features and bugfixes to Mandriva network tools, notably concerning 3G connections. Memory optimisation of net_applet have been done, and LXDE support have been added. Look at drakx-net-0.35-1mdv2009.0 changelog for more informations.
That's all for today :)

Dark_Schneider


Divers : Je sors la tête hors de l'eau un instant08/06/2008 11:04:39

Oui, bon, cela fait longtemps que l'on ne pas pas trop vue. En effet dernièrement j'ai été super occupé, et ce n'est pas fini. Pas mal de changement en ce moment dans am vie : recherche d'un nouvel appartement et déménagement à venir, acquisition d'une voiture, articles à écrire pour divers magazines : un emploi du temps de ministre ;)
En ce moment je commence un peu à émerger, mais ce sera bientôt partie encore pour un tour. Il me reste encore 2 articles en anglais pour Linux Identity Kit concernant la Mandriva 2008 Spring, et du 09/06/2008 au 11/06/2008, je donne pendant 3 jours un cours à des MCSA ( Microsoft Certified Systems Administrator ) un cours sur Linux et la sécurité : vous imaginez le challenge ! Bien sûr ma distribution Linux de référence reste ... la Mandriva ;-)
Ensuite je vais me ressourcer le 14 avec d'autres geeks à la nuit du Hack 2008

Sinon j'en ai profité pour mettre en ligne les photos des 24H motonautiques à Rouen qui se sont déroulées en 2007. Je n'ai aps fait de photos cette année, et je tenais à ce que l'on puisse découvrir cette épreuve. Pleins de photos prévues cette été avec notamment l'Armada de Rouen 2008 et un programme de concerts gratuits de folie ( Calie, Iggy Pop, Bashung, Hugues Aufray, Tiken Jah Fakoly, Gilberto Gil ) !

30-04-2007 : 24H motonautique
Dark_Schneider