From mboxrd@z Thu Jan 1 00:00:00 1970 From: umut aymakoglu Date: Mon, 05 Jan 2004 19:52:38 +0000 Subject: RE: segv at strcmp Message-Id: <20040105195238.80473.qmail@web60006.mail.yahoo.com> List-Id: References: <20040105190848.66033.qmail@web60006.mail.yahoo.com> In-Reply-To: <20040105190848.66033.qmail@web60006.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org Probably the location of "x" is not at the end of the shared memory segment. In /usr/include/bits/string2.h strcmp is defined as memcmp which must be getting picked up. thanks, Umut --- "Luck, Tony" wrote: > > Hi - > > The gcc version is gcc-3.2-29 and the flags we > pass > > to gcc are : -O -ansi -fwritable-strings > -fsigned-char > > -D_GNU_SOURCE -D_REENTRANT > > I have gcc 3.2.3 ... but it appears to not do > anything > strange to my test program with those options. > > main() > { > char *x = "7chars!"; > > strcmp(x, "This is 24 chars long!!!"); > } > > with those options. Do you have any include files > that > might be redefining strcmp as memcmp? > > -Tony __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/