Find the answer to your Linux question:
Results 1 to 2 of 2
Hi Motif program stop (Abort). However, running the program through the debugger, I get the message: Segmentation fault in strlen from /lib64/libc.so.6 at the function (XtVaAppInitialize(); Can you help? Do ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    34

    Segmentation fault in strlen from /lib64/libc.so.6

    Hi

    Motif program stop (Abort). However, running the program through the debugger, I get the message: Segmentation fault in strlen from /lib64/libc.so.6 at the function (XtVaAppInitialize();

    Can you help? Do you know of the command to compile a motif program to correct this problem?

    Thx

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Is this a program you compiled yourself? Basically it means that you are either accessing non-existing memory or have a buffer overrun problem. Is the program compiled for debugging (-g option to gcc)? If so, then you can inspect the pointer passed to strlen() to see if it is a valid pointer, or if it contains an unterminated string.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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