Gentoo Archives: gentoo-user

From: Billy Holmes <billy@××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] BUG in glibc????
Date: Tue, 01 Nov 2005 15:58:58
Message-Id: 43678F7A.7070505@gonoph.net
In Reply to: [gentoo-user] BUG in glibc???? by capsel
1 capsel wrote:
2 > j=strcmp( "log", *(lines+i) );
3 > printf( "ble\n" );
4 > if( strcmp( "log", *(lines+i) ) == 0 )
5 > {
6 > printf( "ble2\n" );
7
8 it looks to me like you're probably getting an invalid pointer
9 reference. When that happens, your program is undefined. More then
10 likely, you're going out of bounds on your array, try adding some debug
11 code, or looking at it in gdb. You'll want to keep an eye on "i".
12 --
13 gentoo-user@g.o mailing list