karl@mote.umb.edu ("Karl Berry.") (05/17/89)
I am not exactly sure how to report this, since I doubt you want to see the 30-odd object files. This is on a Sun 3 running 3.4, ar version of Mar 5. The problem is just that strcmp is called with a null pointer, as the following backtrace shows. Please let me know what other information I could give you that would help. gdb $gnu/bin/ar core Reading symbol data from /usr/local/gnu/bin/ar...done. Core file is from "ar". Program terminated with signal 11, Segmentation fault. (gdb) bt #0 0x6650 in strcmp () #1 0x3c94 in update_symdefs (map=(struct mapelt *) 0x25af8, archive_indesc=3) (ar.c line 1523) #2 0x2e0e in write_archive (map=(struct mapelt *) 0x25af8, appendflag=0) (ar.c line 819) #3 0x33e2 in replace_members () (ar.c line 1124) #4 0x2342 in main (argc=35, argv=(char **) 0xefff1b0) (ar.c line 363) (gdb) up #1 0x3c94 in update_symdefs (map=(struct mapelt *) 0x25af8, archive_indesc=3) (ar.c line 1523) 1523 if (!strcmp (tail->info.name, "__.SYMDEF")) (gdb) p tail $1 = (struct mapelt *) 0x25b40 (gdb) p *tail $2 = {info = {name = 0x0, mode = 33204, date = 611351502, size = 63437, uid = 1377, gid = 6107, offset = 17572, data_offset = 17632, new_offset = 0, symdefs = 0x0, nsymdefs = 0, string_size = 0}, next = 0x25b8c}