Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: example program SFML segfault on redhat 6.4  (Read 5292 times)

0 Members and 1 Guest are viewing this topic.

Sarcarx

  • Guest
example program SFML segfault on redhat 6.4
« on: July 03, 2014, 12:57:34 pm »
Hello guys !

I have made a program using sfml, it works fine on Linux MInt, i tried to start it on a IBM computer on red hat 6.4, starting the program i had a segfault, here is what valgrind told me :


Code: [Select]

Process terminating with default action of signal 11 (SIGSEGV)
==29780==  Access not within mapped region at address 0xE0
sf::priv::GlxContext::GlxContext(sf::priv::GlxContext*) (in /workfs/dev/libs/SFML-2-2.1/build/lib/libsfml-window.so.2.1)

Actually this segfault appears ALSO on the examples i built from SFML, i did a startx and a ./opengl --display=:0.0

Thanks a lot.
« Last Edit: July 03, 2014, 04:47:52 pm by Sarcarx »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: program with SFML segfault on redhat 6.4
« Reply #1 on: July 03, 2014, 01:10:40 pm »
I've no experience with Red Hat, but my guess would've been that you need to recompile it for Red Hat.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Sarcarx

  • Guest
Re: program with SFML segfault on redhat 6.4
« Reply #2 on: July 03, 2014, 01:11:52 pm »
I've no experience with Red Hat, but my guess would've been that you need to recompile it for Red Hat.

If you mean recompile SFML for red hat that is actually what i have done. The SFML for linux thing wasn't working

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: program with SFML segfault on redhat 6.4
« Reply #3 on: July 03, 2014, 01:13:46 pm »
And you've recompiled your application newly as well?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Sarcarx

  • Guest
Re: program with SFML segfault on redhat 6.4
« Reply #4 on: July 03, 2014, 02:12:34 pm »
And you've recompiled your application newly as well?
Yes, i have a Makefile, i did make clean and then make, the application was fully recompiled.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: program with SFML segfault on redhat 6.4
« Reply #5 on: July 03, 2014, 02:15:23 pm »
Okay, well you made it sound like you just c&p the file from your Linux Mint to your Red Hat system and then wondered why it didn't work. ;D

Is your graphics driver uptodate? What is your graphics driver?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Sarcarx

  • Guest
Re: program with SFML segfault on redhat 6.4
« Reply #6 on: July 03, 2014, 02:23:46 pm »
Okay, well you made it sound like you just c&p the file from your Linux Mint to your Red Hat system and then wondered why it didn't work. ;D

Is your graphics driver uptodate? What is your graphics driver?

Ho :D sorry, I have an actual forge on SVN where i just pull the code from and compile it when i want to deploy my app. The computer is an IBM from a university, every day lots of people use its graphic cards to compute graphics simulation so i guess everything is up to date on it. At least i know people can use OpenGL just fine on it.

Sarcarx

  • Guest
Re: program with SFML segfault on redhat 6.4
« Reply #7 on: July 03, 2014, 02:31:10 pm »
Now that i think about it, it may come from the SFML installation, when i compiled it i got this warning do you think it is related ?

Code: [Select]
WARNING: Target "sfml-graphics" requests linking to directory "/workfs/dev/libs/glew-1.10.0/lib".  Targets may link only to libraries.  CMake is
 dropping the item.
« Last Edit: July 03, 2014, 02:33:27 pm by Sarcarx »

Sarcarx

  • Guest
Re: example program SFML segfault on redhat 6.4
« Reply #8 on: July 03, 2014, 04:50:55 pm »
It appears that error still occurs on example programs from SFML, i already tried these on other computers and we all know they work for sure so what is not going right ? Does someone have an idea where that error could come from ?

nomdeplume

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: example program SFML segfault on redhat 6.4
« Reply #9 on: July 07, 2014, 03:06:38 pm »
How are you building SFML? As a completely uneducated guess it looks like maybe the glew library was somehow specified as a path to its location rather than the library name?

 

anything