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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - CyberRascal

Pages: [1]
1
General / Invalid read of size 4 in sf::Window::Window
« on: March 03, 2012, 12:54:50 am »
Hi!

I'm having a little problem. SFML probably isn't the cause of this error, or I should have found it on the bug tracker. But I still can't figure out what I would be doing wrong.

I'm using the latest snapshot of SFML (compiled today), and valgrind 3.7.0.2, running on Archlinux in a vmware machine. I get the following output:

Any ideas?

Code: [Select]
==17135== Invalid read of size 4
==17135==    at 0xA78DEB7: ??? (in /usr/lib/xorg/modules/dri/swrastg_dri.so)
==17135==    by 0xA79212F: ??? (in /usr/lib/xorg/modules/dri/swrastg_dri.so)
==17135==    by 0xA790638: ??? (in /usr/lib/xorg/modules/dri/swrastg_dri.so)
==17135==    by 0xA745774: ??? (in /usr/lib/xorg/modules/dri/swrastg_dri.so)
==17135==    by 0xA7425D5: ??? (in /usr/lib/xorg/modules/dri/swrastg_dri.so)
==17135==    by 0x50DCF9E: ??? (in /usr/lib/libGL.so.1.2)
==17135==    by 0x50BB172: glXMakeContextCurrent (in /usr/lib/libGL.so.1.2)
==17135==    by 0x617F17B: sf::priv::GlxContext::MakeCurrent() (in /usr/local/lib/libsfml-window.so.2.0)
==17135==    by 0x617ABCC: sf::priv::GlContext::GlobalInit() (in /usr/local/lib/libsfml-window.so.2.0)
==17135==    by 0x617B4F3: sf::GlResource::GlResource() (in /usr/local/lib/libsfml-window.so.2.0)
==17135==    by 0x617D570: sf::Window::Window(sf::VideoMode, std::string const&, unsigned int, sf::ContextSettings const&) (in /usr/local/lib/libsfml-window.so.2.0)
==17135==    by 0x42E0F3: rev::main(int, char**) (main.cpp:36)
==17135==  Address 0xa419030 is 0 bytes inside a block of size 1 alloc'd
==17135==    at 0x4C28024: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17135==    by 0xA78E092: ??? (in /usr/lib/xorg/modules/dri/swrastg_dri.so)
==17135==    by 0xA79212F: ??? (in /usr/lib/xorg/modules/dri/swrastg_dri.so)
==17135==    by 0xA790638: ??? (in /usr/lib/xorg/modules/dri/swrastg_dri.so)
==17135==    by 0xA745774: ??? (in /usr/lib/xorg/modules/dri/swrastg_dri.so)
==17135==    by 0xA7425D5: ??? (in /usr/lib/xorg/modules/dri/swrastg_dri.so)
==17135==    by 0x50DCF9E: ??? (in /usr/lib/libGL.so.1.2)
==17135==    by 0x50BB172: glXMakeContextCurrent (in /usr/lib/libGL.so.1.2)
==17135==    by 0x617F17B: sf::priv::GlxContext::MakeCurrent() (in /usr/local/lib/libsfml-window.so.2.0)
==17135==    by 0x617ABCC: sf::priv::GlContext::GlobalInit() (in /usr/local/lib/libsfml-window.so.2.0)
==17135==    by 0x617B4F3: sf::GlResource::GlResource() (in /usr/local/lib/libsfml-window.so.2.0)
==17135==    by 0x617D570: sf::Window::Window(sf::VideoMode, std::string const&, unsigned int, sf::ContextSettings const&) (in /usr/local/lib/libsfml-window.so.2.0)

Pages: [1]
anything