On 03/18/12 14:46, Nilay Vaish wrote:
> On Sat, 17 Mar 2012, Jinchun Kim wrote:
>
>> Hi, I'm trying to run simple Helloworld code on gem5.
>>
>> ====================
>> #include <stdio.h>
>>
>> int main(void)
>> {
>>     printf("Hello world!\n");
>>     return 0;
>> }
>> ====================
>>
>> I've compiled this code on my host machine(kernel : i686, version
>> 3.0) and
>> tried to run it on gem5 (x86 full system, x86_64, version 2.6.22.9).
>>
>> However, this segmentation fault message popped up and the code is not
>> working.
>>
>> (none) Projects # ./c_test
>> c_test[812]: segfault at 00000000000000c8 rip 00000000f7efbac7 rsp
>> 00000000ffc8122c error 6
>> Segmentation fault
>> (none) Projects #
>>
>> I can't understand why this error message showed up.
>>
>
> Which cpu type are you using?
>
> -- 
> Nilay
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

That stack pointer and ip look like they belong to the kernel, and the
actual faulting address looks like an access to a structure through a
null pointer. Using a 32 bit kernel hasn't been tested very much and we
don't have any regression testing for it, but as I think Nilay is
alluding to, if you're using the O3 CPU that also hasn't been supported
for very long and may have its own issues.

Gabe
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to