Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[amsn]erreur de segmentation (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Kevin57
Guru
Guru


Joined: 21 Aug 2009
Posts: 373

PostPosted: Tue Oct 13, 2009 5:04 pm    Post subject: [amsn]erreur de segmentation (résolu) Reply with quote

Bonsoir,

Après une assez importante mise à jour (pas mal de paquets de KDE et des librairies), amsn ne voulait plus se lancer pour un problème de librairies. J'ai essayé de le réinstaller mais maintenant il affiche "erreur de segmentation". Je ne sais pas ce que ça veut dire donc je ne sait pas quoi faire. J'ai installé amsn-0.98 et je tourne sous Gentoo ~x86 avec KDE. S'il vous faut d'autres infos, n'hésitez pas à demander.

Merci beaucoup par avance,

Kevin57

Edit : j'ai essayé d'enlever le fichier de configuration (mv .amsn .amsn1) mais ça ne change rien.
_________________
Gentoo ~amd64 avec Openbox, AMD Phenom II X4 965 BE, Radeon HD 4250, 4GB RAM.
Traducteur indépendant allemand-français et anglais-français


Last edited by Kevin57 on Wed Oct 14, 2009 5:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
gregool
Guru
Guru


Joined: 26 Nov 2007
Posts: 336
Location: Lille

PostPosted: Tue Oct 13, 2009 8:55 pm    Post subject: Reply with quote

Salut,

erreur de segmentation ça peut être tout un tas de choses, si tu as compilé amsn avec le use flag debug tu peux utiliser gdb pour avoir des infos un peu plus limpides.

CF : la FAQ aMsn

Quote:
How do I capture bug report information from a segmentation fault? (LINUX)

Make sure amsn was compiled with debugging symbols, if you installed it using a binary package, you should probably download from source and recompile it. To enable debugging symbols, configure it with : ./configure --enable-debug If you're unable to compile it, then you can still send us information without the debugging symbols. Once it is compiled/installed, go to the directory where you have installed aMSN (example: /usr/share/amsn or /home/yourusername/amsn-0.95/) type:

$ gdb --args wish amsn
(gdb) run
[then when it segfaults, type]
(gdb) bt
(gdb) bt full


bien souvent c'est un pb lié à tcl/tk regarde deja de ce coté là, surtout suite à une grosse MAJ...
Back to top
View user's profile Send private message
Kevin57
Guru
Guru


Joined: 21 Aug 2009
Posts: 373

PostPosted: Tue Oct 13, 2009 10:31 pm    Post subject: Reply with quote

Je ne l'ai pas compilé avec le useflag debug, mais je vais recommencer demain pour voir. En effet, la première erreur (avant que je réinstalle aMSN) était liée à tcl/tk donc il est bien possible que ce soit toujours le problème. Si tel est le cas, comment puis-je le résoudre?
_________________
Gentoo ~amd64 avec Openbox, AMD Phenom II X4 965 BE, Radeon HD 4250, 4GB RAM.
Traducteur indépendant allemand-français et anglais-français
Back to top
View user's profile Send private message
Kazuya
Apprentice
Apprentice


Joined: 09 Jul 2006
Posts: 256

PostPosted: Tue Oct 13, 2009 11:55 pm    Post subject: Reply with quote

Hello,
Et bien tu recompiles tcl *et* tk, puis ensuite tu recompiles amsn et ça devrait le faire :lol:.
_________________
Hacker vaillant, rien d'impossible !!!
"Quand une vache boit de l'eau, cette eau devient du lait. Quand un serpent boit de l'eau, cette eau devient du poison."
Back to top
View user's profile Send private message
loopx
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2787
Location: Belgium / Liège

PostPosted: Wed Oct 14, 2009 7:37 am    Post subject: Reply with quote

Kazuya wrote:
Hello,
Et bien tu recompiles tcl *et* tk, puis ensuite tu recompiles amsn et ça devrait le faire :lol:.



et ca fonctionne aussi quand il segfault pas mais qu'il ne trouve pas ou qu'il n'arrive pas a charger ses libs ?


Me casse les couilles amsn, il n'a plus été pendant des mois à cause d'une erreur de chargement de lib, puis il a été ... 1 semaine et paf, l'est de nouveau cassé :evil:
_________________
Mon MediaWiki perso : http://pix-mania.dyndns.org
Back to top
View user's profile Send private message
Kazuya
Apprentice
Apprentice


Joined: 09 Jul 2006
Posts: 256

PostPosted: Wed Oct 14, 2009 9:01 am    Post subject: Reply with quote

Hello,
> Loopx,
Alors là je ne sais pas, je ne suis pas devin :lol: , mais toujours est-il que j'utilise la version SVN (l'ebuild fournit par Biliob) et ça marche.
Si tu veux, voici l'ebuild en question:

amsn-9999.ebuild wrote:

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=2
ESVN_REPO_URI="https://amsn.svn.sourceforge.net/svnroot/amsn/trunk/amsn"
ESVN_PROJECT="amsn"
inherit autotools subversion eutils fdo-mime gnome2-utils


DESCRIPTION="Alvaro's Messenger client for MSN"
HOMEPAGE="http://amsn-project.net"

IUSE="debug static"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~alpha amd64 ~hppa ~ppc ~sparc x86"


DEPEND=">=dev-lang/tcl-8.5
>=dev-lang/tk-8.5
>=dev-tcltk/tls-1.5.0
media-libs/jpeg
media-libs/libpng
>=media-plugins/gst-plugins-farsight-0.12.7
>=net-libs/farsight2-0.0.14
>=dev-tcltk/snack-2.2.10
>=media-libs/gstreamer-0.10.23
>=media-libs/gst-plugins-base-0.10.23
>=net-libs/gupnp-igd-0.1.3
media-libs/libv4l"


RDEPEND="${DEPEND}
>=media-libs/gst-plugins-good-0.10.15
>=media-libs/gst-plugins-bad-0.10.13
>=media-plugins/gst-plugins-ffmpeg-0.10.7
media-video/ffmpeg[encode]"


pkg_setup() {
eerror "This is a LIVE SVN ebuild."
eerror "That means there are NO promises it will work."
}

src_unpack() {
subversion_src_unpack
eaclocal
eautoconf
eautomake
}


src_compile() {
econf \
$(use_enable debug) \
$(use_enable static) \
|| die "configure script failed"
emake || die "Compilation failed"
}

src_install() {
make DESTDIR="${D}" install || die

dodoc AGREEMENT TODO README FAQ CREDITS

domenu amsn.desktop
sed -i -e s:.png:: "${D}/usr/share/applications/amsn.desktop"

cd desktop-icons
for i in *; do
if [ -e ${i}/msn.png ]; then
insinto /usr/share/icons/hicolor/${i}/apps
doins ${i}/msn.png
fi
done
}

pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update

ewarn "You might have to save and remove ~/.amsn prior to running as user if amsn hangs on start-up."
ewarn "Remember, this stuff is SVN only code so dont cry when"
ewarn "I break you :)."
ewarn "If you want to report bugs, go to our forum at http://amsn-project.net/forums"
ewarn "or use our IRC channel at irc.freenode.net #amsn"
}

pkg_postrm() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
}


Je l'ai encore compilé récemment et il se lance toujours :wink:
_________________
Hacker vaillant, rien d'impossible !!!
"Quand une vache boit de l'eau, cette eau devient du lait. Quand un serpent boit de l'eau, cette eau devient du poison."


Last edited by Kazuya on Wed Oct 14, 2009 12:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kevin57
Guru
Guru


Joined: 21 Aug 2009
Posts: 373

PostPosted: Wed Oct 14, 2009 12:06 pm    Post subject: Reply with quote

J'ai recompilé aMSN avec le useflag debug, puisque l'autre solution n'a pas marché, et voila ce que je trouve :

Code:
kevin_gentoo@Kevin /usr/bin $ gdb --args wish amsn

warning: Can not parse XML syscalls information; XML support was disabled at compile time.
GNU gdb (Gentoo 7.0 p1) 7.0
Copyright (C) 2009 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 "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/wish...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/wish amsn
Error while mapping shared library sections:
utils/asyncresolver/libasyncresolver.so: Aucun fichier ou dossier de ce type.
[Thread debugging using libthread_db enabled]
Cannot find new threads: generic error
(gdb)


Il semble donc manquer une librairie, mais comment la réinstaller?

Edit : pourtant un ls /usr/share/amsn/utils/asyncresolver me montre bien libasyncresovler.so, mais écrit en vert, je ne sais pas ce que ça veut dire...

Edit 2 : je n'avais pas pensé à faire un revdep-rebuild, ce qui semble pourtant avoir tout résolu. Je ne comprends pas pourquoi vu que ce qui a été réinstallé n'avais rien à voir avec aMSN mais c'est pas grave!
_________________
Gentoo ~amd64 avec Openbox, AMD Phenom II X4 965 BE, Radeon HD 4250, 4GB RAM.
Traducteur indépendant allemand-français et anglais-français
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum