This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_image.h> | |
#include <assert.h> | |
const int WIDTH = 1024; | |
const int HEIGHT = 768; | |
SDL_Window* window = NULL; | |
SDL_Surface* screenSurface = NULL; | |
SDL_Renderer* renderer = NULL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_mixer.h> | |
int main(int argc, char *argv[]) | |
{ | |
if (SDL_Init(SDL_INIT_AUDIO) <0) { | |
printf("%s\n", SDL_GetError()); | |
} | |
int init = Mix_Init(MIX_INIT_OGG); | |
printf("%d, %s\n", init, Mix_GetError()); | |
init = Mix_Init(MIX_INIT_MP3); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) thread 23 | |
[Switching to thread 23 (Thread 0x7f961c996700 (LWP 1943))] | |
#0 0x00007f962a04f3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0 | |
(gdb) bt | |
#0 0x00007f962a04f3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0 | |
#1 0x00007f962094abf4 in ?? () from /usr/lib/libGLX_nvidia.so.0 | |
#2 0x00007f961f74e8b6 in ?? () from /usr/lib/libnvidia-glcore.so.361.28 | |
#3 0x00007f962094a20c in ?? () from /usr/lib/libGLX_nvidia.so.0 | |
#4 0x00007f962a049424 in start_thread () from /usr/lib/libpthread.so.0 | |
#5 0x00007f962a346cbd in clone () from /usr/lib/libc.so.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) info threads | |
Id Target Id Frame | |
* 1 Thread 0x7f962b17a740 (LWP 1934) "dota2" 0x00007f962a04f03f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0 | |
4 Thread 0x7f95f52a3700 (LWP 1979) "CQueuedPacketSe" 0x00007f962a04f3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () | |
from /usr/lib/libpthread.so.0 | |
5 Thread 0x7f95f75d0700 (LWP 1978) "SDLAudioDev2" 0x00007f962a33dd01 in ppoll () from /usr/lib/libc.so.6 | |
6 Thread 0x7f95f59a4700 (LWP 1977) "SteamDGClient" 0x00007f962a33dc3d in poll () from /usr/lib/libc.so.6 | |
7 Thread 0x7f95f5aa5700 (LWP 1976) "Panorama Image " 0x00007f962a04f3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () | |
from /usr/lib/libpthread.so.0 | |
8 Thread 0x7f95f5ba6700 (LWP 1975) "Panorama Image " 0x00007f962a04f3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 1 "dota2" received signal SIGINT, Interrupt. | |
0x00007f962a04f03f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0 | |
(gdb) bt | |
#0 0x00007f962a04f03f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0 | |
#1 0x00007f9626313ab2 in CThreadSyncObject::WaitImpl(unsigned int) () | |
from /home/engy/.local/share/Steam/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libtier0.so | |
#2 0x00007f961d4657d2 in ?? () | |
from /home/engy/.local/share/Steam/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/librendersystemgl.so | |
#3 0x00007f961d4998e6 in ?? () | |
from /home/engy/.local/share/Steam/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/librendersystemgl.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
futex(0x7fa8e66d62c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7fa8e66d62c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 | |
futex(0x7fa8e66d62c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7fa8e66d62c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 | |
futex(0x5606c8c34da0, FUTEX_WAIT_PRIVATE, 2, NULL) = 0 | |
futex(0x5606c8c34da0, FUTEX_WAKE_PRIVATE, 1) = 0 | |
futex(0x7fa8e66d62c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7fa8e66d62c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 | |
futex(0x7fa8e66d62c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7fa8e66d62c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 | |
futex(0x5606d9de6020, FUTEX_WAIT_PRIVATE, 2, NULL) = 0 | |
futex(0x5606d9de6020, FUTEX_WAKE_PRIVATE, 1) = 0 | |
futex(0x7fa8e66d62c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7fa8e66d62c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 | |
futex(0x7fa8e66d62c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7fa8e66d62c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clock_gettime(CLOCK_MONOTONIC, {6296, 418067054}) = 0 | |
futex(0x953a1b4, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 0x953b02c, 324604) = 1 | |
futex(0x953a1b4, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 0x953b02c, 324606) = 1 | |
clock_gettime(CLOCK_MONOTONIC, {6296, 418225621}) = 0 | |
futex(0x953a334, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 8629, {1439406057, 595861000}, ffffffff) = 0 | |
futex(0x953affc, FUTEX_WAKE_PRIVATE, 1) = 0 | |
clock_gettime(CLOCK_MONOTONIC, {6296, 418659785}) = 0 | |
futex(0x953a1b4, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 0x953b02c, 324608) = 1 | |
getpid() = 9227 | |
clock_gettime(CLOCK_MONOTONIC, {6296, 419823718}) = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
futex(0x7f8f872ea2c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f8f872ea2c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 | |
futex(0x7f8f872ea2c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f8f872ea2c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 | |
futex(0x7f8f872ea2c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f8f872ea2c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 | |
futex(0x560692831800, FUTEX_WAIT_PRIVATE, 2, NULL) = 0 | |
futex(0x560692831800, FUTEX_WAKE_PRIVATE, 1) = 0 | |
futex(0x7f8f872ea2c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f8f872ea2c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 | |
futex(0x7f8f872ea2c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f8f872ea2c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 2 | |
futex(0x7f8f872ea2c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f8f872ea2c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 | |
futex(0x7f8f872ea2c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f8f872ea2c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 | |
futex(0x7f8f872ea2c4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f8f872ea2c0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Processor Information: | |
Vendor: GenuineIntel | |
CPU Family: 0x6 | |
CPU Model: 0x3c | |
CPU Stepping: 0x3 | |
CPU Type: 0x0 | |
Speed: 3900 Mhz | |
4 logical processors | |
4 physical processors | |
HyperThreading: Unsupported |