[Linux-bruxelles] C sous unix -- re-help

Frederic Peters fpeters at theridion.com
Sam 11 Jan 18:19:53 CET 2003


> J'ai beau chercher je ne trouve pas... Une erreur de segmentation qui
> doit être toute bête mais je n'arrive pas a mettre la main dessus, qq'un
> pourrais regarder au code? j'ai allégé le prg de tout ce qui ne buggais
> pas pour isoler la faute...

As-tu utilisé gdb ?

 $ gdb serveur_allege
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) r
Starting program: /tmp/serveur_allege 

Program received signal SIGSEGV, Segmentation fault.
0x40090f34 in strcmp () from /lib/libc.so.6
(gdb) where
#0  0x40090f34 in strcmp () from /lib/libc.so.6
#1  0x08048a8d in main (argc=1, argv=0xbffffc24) at serveur_allege.c:68



        Frédéric

-- 
Frédéric Péters <fpeters at theridion.com> <fpeters at debian.org>
Théridion, spécialistes GNU/Linux, rue de l'Aqueduc 83 - 1050 Bruxelles
GPG: 1024D/6783ED5E: 62BF 2EDA 404A 6EB4 F5BE  A1E2 A11D CBB1 6783 ED5E




Plus d'informations sur la liste de diffusion Linux-bruxelles