On 19 Feb 2005 at 17:33, Waldek Hebisch wrote:
Can you post a complete traceback or at least error position? (There are many strncmp's in gpc.c, and know which one it is might help.)
Attached ...
<snip> > Program received signal SIGSEGV, Segmentation fault. > 0x77c47a64 in strncmp () > (gdb) info line *0x77c47a64 > No line number information available for address 0x77c47a64 > <strncmp+20>
can you type `bt' here (to get the calling place)?
Program received signal SIGSEGV, Segmentation fault. 0x77c47a64 in strncmp () (gdb) bt #0 0x77c47a64 in strncmp () #1 0x0040f24d in update_path (path=0x0, key=0x4191f7 "GCC") at ../../gcc/prefix.c:256 During symbol reading, Incomplete CFI data; unspecified registers at 0x0040f229. During symbol reading, Incomplete CFI data; unspecified registers at 0x0040f229. During symbol reading, Incomplete CFI data; unspecified registers at 0x0040f229. During symbol reading, Incomplete CFI data; unspecified registers at 0x0040f229. #2 0x0040284f in add_prefix (pprefix=0x415024, prefix=0x0, component=0x0, priority=1, require_machine_suffix=0, warn=0x0, os_multilib=0) at ../../gcc/p/gpc.c:3207 During symbol reading, Incomplete CFI data; unspecified registers at 0x0040280d. During symbol reading, Incomplete CFI data; unspecified registers at 0x0040280d. During symbol reading, Incomplete CFI data; unspecified registers at 0x0040280d. During symbol reading, Incomplete CFI data; unspecified registers at 0x0040280d. #3 0x0040898e in process_command (argc=2, argv=0x3d2588) at ../../gcc/p/gpc.c:3888 During symbol reading, Incomplete CFI data; unspecified registers at 0x0040861c. During symbol reading, Incomplete CFI data; unspecified registers at 0x0040861c. During symbol reading, Incomplete CFI data; unspecified registers at 0x0040861c. During symbol reading, Incomplete CFI data; unspecified registers at 0x0040861c. #4 0x0040cf44 in main (argc=2, argv=0x3d2588) at ../../gcc/p/gpc.c:7000
The offending call to strncmp() in prefix.c is on line 256. Starting from line 249, it is as follows:
249 char * 250 update_path (path, key) 251 const char *path; 252 const char *key; 253{ 254 char *result; 255 256 if (! strncmp (path, std_prefix, strlen (std_prefix)) && key != 0)
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/