Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2006
    Posts
    2

    Unanswered: segmentation fault

    two.c:
    #include<stdio.h>
    main()
    {
    printf("hello C is working");
    }

    #gcc -0 two two.c
    #./two
    segmetnation fault
    #gdb two two.core
    This GDB was configured as "i386-marcel-freebsd"..(no debugging symbols found)..
    Core was generated by 'two'
    Program terminated with signal 11,segmentation fault
    Reading symbols from /lib/lib.so.6..(no debugging symbols found)..done
    Loaded symbols for /lib/libc.so.6
    Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)..done

    Loaded symbols for /libexec/ld-elf.so.1
    #0 0x08048455 in _start()

    #backtrace
    #0 0x08048455 in _start()
    #1 0x00000001 in ?? ()


    ----these are the errors,what to do now.please help.iam stucked.actually i have nothing to do with two.c.When i ./configure in SDL folder iam getting cannot run c compiled programs.Thats y iam into gdb after running gcc
    Thanks in advance

  2. #2
    Join Date
    May 2005
    Location
    South Africa
    Posts
    1,365
    Provided Answers: 1
    And how is this related to Unix shell script?
    Maybe you’ll have better luck posting at one of these:
    gnu.gcc
    comp.unix.bsd.freebsd.misc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •