Re: Mod'ing struct tm causes segmentation fault on RHEL 5.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux