Mod'ing struct tm causes segmentation fault on RHEL 5.4
Tim P. Starrin
Timothy.P.Starrin at nasa.gov
Tue Jul 6 16:42:23 UTC 2010
They're all 64 bit systems.
I already gdb'ed it. The segfault occurs in the following location when
I mod date->tm_year.
(gdb) run
Starting program: /home/noid/fault
Program received signal SIGSEGV, Segmentation fault.
0x000000000040054f in main () at fault.c:15
15 date->tm_year %= 100;
Did you compile the program with "-DBUG"?
Tim
Josh Miller wrote:
> On 07/01/2010 04:11 PM, Tim P. Starrin wrote:
>
>> The following program generates a segmentation fault on RHEL 5.4.
>>
>
> I was not able to reproduce this issue on RHEL 5.2, 5.3, or 5.5.
> Unfortunately, I do not have a 5.4 system to test on.
>
> Is this on a 64 bit or 32 bit system?
>
> Try stepping through it with gdb and see where the seg fault occurs.
>
>
More information about the redhat-list
mailing list