Jump to content

Problem with strlen


Recommended Posts

Hey,i have problem with my game, is crashing , i have backtrace but i dont know where is a problem

 

GNU gdb (GDB) 7.6.1 [GDB v7.6.1 for FreeBSD]

Copyright © 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-portbld-freebsd9.1".
For bug reporting instructions, please see:
Reading symbols from /usr/Server/game/game1_ch1...done.
[New process 155155739]
[New process 155157399]
[New process 155154667]
[New process 102059]
 
warning: .dynamic section for "/libexec/ld-elf.so.1" is not at the expected address (wrong library or version mismatch?)
[New Thread 28c05500 (LWP 155157399)]
[New Thread 28c05200 (LWP 155154667)]
[New Thread 28c04f00 (LWP 102059)]
[New Thread 28c04300 (LWP 155155739)]
Core was generated by `game1_ch1'.
Program terminated with signal 11, Segmentation fault.
#0  0x289a73dc in strlen () from /usr/lib32/libc.so.7
(gdb) bt
#0  0x289a73dc in strlen () from /usr/lib32/libc.so.7
#1  0x2899f305 in gettimeofday () from /usr/lib32/libc.so.7
#2  0x00000001 in ?? ()
#3  0x00000000 in ?? ()
 

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Are you using a gamefile compiled from source or a public one? If second: What revision?

 

Segmentation fault is a security protection to let programs not access memory out of their permission.

 

It seems like there's a version mismatch with your library ld-elf.so.1 you should look at that.

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

Link to comment
Share on other sites

It seems like you compiled your game in an environment different from yours. And that explains the library mismatch.

You'd fix that by referencing to the library you used to compile the gamefile.

Also note that you can provide a special linkpath in your compiler flags. With this you'll be able to use the libraries you used to compile the gamefile.

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.