[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
shar Seg Faults on binary files on Mac OS X 10.1.2
From: |
Jonathon Vance |
Subject: |
shar Seg Faults on binary files on Mac OS X 10.1.2 |
Date: |
Fri, 17 May 2002 11:23:51 -0700 |
Hello,
I compiled shar on Mac OS X 10.1.2 and tried to use it to combine some
text and binary files. shar seg faults on execution. Below is some
output:
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x70000a50 in strlen ()
(gdb) where
#0 0x70000a50 in strlen ()
#1 0x70001b14 in vfprintf ()
#2 0x70000ef0 in fprintf ()
#3 0x00002af0 in generate_one_header_line (local_name=0x263e48 <Address
0x263e48 out of bounds>, restore_name=0xbffff778 "urchin4.tar.gz") at
shar.c:699
#4 0x00002298 in walkdown (routine=0x2aa0 <generate_one_header_line>,
local_name=0xbffff778 "urchin4.tar.gz", restore_name=0xbffff778
"urchin4.tar.gz") at shar.c:287
#5 0x00002530 in walktree (routine=0x2aa0 <generate_one_header_line>,
local_name=0xbffffb54 "urchin4.tar.gz") at shar.c:410
#6 0x00003064 in generate_full_header (argc=1, argv=0xbffffa78) at
shar.c:857
#7 0x000050fc in main (argc=3, argv=0xbffffa70) at shar.c:2083
#8 0x0000217c in _start ()
#9 0x00001fac in start ()
Notice that the local_name variable is at an out of bounds address. I
tried to troubleshoot this a bit, but have not been successful.
Hopefully, you can send me some help on where to look for the problem.
Thanks.
Jonathon Vance
PS. shar was configured without NLS and made using gnumake (no visible
compiler errors). Please contact me if you have any questions. Thanks.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- shar Seg Faults on binary files on Mac OS X 10.1.2,
Jonathon Vance <=