gnuplot_i : Probleme bizarre... - Programmation
Ceci répond-il à votre question ? Oui | Non
 

Ajouter une réponse



 Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet : gnuplot_i : Probleme bizarre...
 
Profil : IDNaute
Plus d'informations

Bonjour,
Voici mon problème, on doit faire une programme pour afficher une courbe du son, en TP tout marche très bien mais sur mon PC (sous Mandriva 2007) lorsque je lance mon programme (qui utilise gnuplot_i.c et gnuplot_i.h) voici le message qui s'affiche au lieu de l'affichage :
*** buffer overflow detected ***: gnuplot_x11 terminated
======= Backtrace: =========
/lib/i686/libc.so.6(__chk_fail+0x41)[0xb7dfcc41]
/lib/i686/libc.so.6(__read_chk+0x50)[0xb7dfd0d0]
gnuplot_x11[0x804b7de]
======= Memory map: ========
08048000-08059000 r-xp 00000000 16:05 1174934 /usr/lib/gnuplot/4.0/gnuplot_x11
08059000-0805b000 rwxp 00010000 16:05 1174934 /usr/lib/gnuplot/4.0/gnuplot_x11
0805b000-0809f000 rwxp 0805b000 00:00 0 [heap]
b7ced000-b7cf7000 r-xp 00000000 16:05 1169467 /lib/libgcc_s-4.1.1.so.1
b7cf7000-b7cf8000 rwxp 0000a000 16:05 1169467 /lib/libgcc_s-4.1.1.so.1
b7cf8000-b7cfc000 r-xp 00000000 16:05 772184 /usr/lib/libXfixes.so.3.1.0
b7cfc000-b7cfd000 rwxp 00003000 16:05 772184 /usr/lib/libXfixes.so.3.1.0
b7cfd000-b7d05000 r-xp 00000000 16:05 772142 /usr/lib/libXrender.so.1.3.0
b7d05000-b7d06000 rwxp 00007000 16:05 772142 /usr/lib/libXrender.so.1.3.0
b7d06000-b7d0f000 r-xp 00000000 16:05 772190 /usr/lib/libXcursor.so.1.0.2
b7d0f000-b7d10000 rwxp 00008000 16:05 772190 /usr/lib/libXcursor.so.1.0.2
b7d10000-b7d11000 rwxp b7d10000 00:00 0
b7d11000-b7d13000 r-xp 00000000 16:05 1169435 /lib/libdl-2.4.so
b7d13000-b7d15000 rwxp 00001000 16:05 1169435 /lib/libdl-2.4.so
b7d15000-b7d1a000 r-xp 00000000 16:05 772131 /usr/lib/libXdmcp.so.6.0.0
b7d1a000-b7d1b000 rwxp 00004000 16:05 772131 /usr/lib/libXdmcp.so.6.0.0
b7d1b000-b7d1c000 rwxp b7d1b000 00:00 0
b7d1c000-b7d1e000 r-xp 00000000 16:05 772127 /usr/lib/libXau.so.6.0.0
b7d1e000-b7d1f000 rwxp 00001000 16:05 772127 /usr/lib/libXau.so.6.0.0
b7d1f000-b7e46000 r-xp 00000000 16:05 1169414 /lib/i686/libc-2.4.so
b7e46000-b7e47000 r-xp 00126000 16:05 1169414 /lib/i686/libc-2.4.so
b7e47000-b7e49000 rwxp 00127000 16:05 1169414 /lib/i686/libc-2.4.so
b7e49000-b7e4c000 rwxp b7e49000 00:00 0
b7e4c000-b7e6f000 r-xp 00000000 16:05 1169416 /lib/i686/libm-2.4.so
b7e6f000-b7e71000 rwxp 00023000 16:05 1169416 /lib/i686/libm-2.4.so
b7e71000-b7f6b000 r-xp 00000000 16:05 772133 /usr/lib/libX11.so.6.2.0
b7f6b000-b7f6f000 rwxp 000fa000 16:05 772133 /usr/lib/libX11.so.6.2.0
b7f85000-b7f86000 rwxp b7f85000 00:00 0
b7f86000-b7f9e000 r-xp 00000000 16:05 1169424 /lib/ld-2.4.so
b7f9e000-b7f9f000 r-xp 00017000 16:05 1169424 /lib/ld-2.4.so
b7f9f000-b7fa0000 rwxp 00018000 16:05 1169424 /lib/ld-2.4.so
bfe88000-bfe9d000 rw-p bfe88000 00:00 0 [stack]
bfffe000-bffff000 r-xp bfffe000 00:00 0

J'ai installé la librairie gnuplot pourtant ! Je n'arrive pas a saisir le problème... :/
Si quelqu'un pouvait m'aider car j'ai besoin de résoudre ce problème pour pouvoir finir mon projet (à rendre bientôt)...

Merci beaucoup de votre aide

Liens

Profil : IDNaute
Plus d'informations

buffer overflow => dépassement des capacités. C'est certainement du à un dépassement dans un tableau


---------------
B800A0 8EC0 B400 B013 CD10 B91000 BA1000 B005
E81000 B407 CD21 B400 B003 CD10 B44C B000 CD21
50 89D0 BB4001 F7E3 89C7 01CF 58 26 8805 C3
Profil : IDNaute
Plus d'informations

ok merci beaucoup mais en fait le même programme compilé à la fac marche très bien la bas ! donc je pense que ça vient peut-etre de ma version de gnuplot mais je ne vois pas comment résoudre ce problème...

Profil : IDNaute
Plus d'informations

C'est surtout l'utilisation de la lib qui est a revoir, car s'il y a un bug, il se peut que ça fonctionne sur une plateforme, et pas sur une autre.


---------------
B800A0 8EC0 B400 B013 CD10 B91000 BA1000 B005
E81000 B407 CD21 B400 B003 CD10 B44C B000 CD21
50 89D0 BB4001 F7E3 89C7 01CF 58 26 8805 C3

Aller à :
Ajouter une réponse
  FORUM Infos-du-Net » Programmation » gnuplot_i : Probleme bizarre...
 

Liens