Skip to content

openal causes SIGSEGV on "crash" #108

@kortemik

Description

@kortemik

...
entered "developer 1" and "crash" on the console:

Program received signal SIGILL, Illegal instruction.
BFG::crash_f (args=...) at /home/kordex/code/OpenTechBFG/neo/framework/Common.cpp:633
633     __builtin_trap();

as expected. But later:

soundSystem->Shutdown();
[Thread 0x7fffcca3c700 (LWP 13456) exited]
AL lib: (WW) FreeDevice: (0x39e7d90) Deleting 3 Buffer(s)
[Thread 0x7fffcd23d700 (LWP 13455) exited]

Program received signal SIGSEGV, Segmentation fault.
0x000000000076ee95 in BFG::idSoundSystemLocal::StopVoicesWithSample (this=0x12b3e60 <BFG::soundSystemLocal>, sample=sample@entry=0x44dced0)
    at /home/kordex/code/OpenTechBFG/neo/sound/snd_system.cpp:551
551                 if( emitter->channels[i]->leadinSample == sample || emitter->channels[i]->loopingSample == sample )
(gdb) bt full
#0  0x000000000076ee95 in BFG::idSoundSystemLocal::StopVoicesWithSample (this=0x12b3e60 <BFG::soundSystemLocal>, sample=sample@entry=0x44dced0)
    at /home/kordex/code/OpenTechBFG/neo/sound/snd_system.cpp:551
        i = 0
        emitter = 0x3fde9d0
        e = 0
        sw = 0x3fdb430
        w = 0
#1  0x0000000000acc484 in BFG::idSoundSample_OpenAL::FreeData (this=0x44dced0) at /home/kordex/code/OpenTechBFG/neo/sound/OpenAL/AL_SoundSample.cpp:636
No locals.
#2  BFG::idSoundSample_OpenAL::~idSoundSample_OpenAL (this=0x44dced0, __in_chrg=<optimized out>)
    at /home/kordex/code/OpenTechBFG/neo/sound/OpenAL/AL_SoundSample.cpp:118
No locals.
#3  0x000000000076f030 in BFG::idSoundSample::~idSoundSample (this=0x44dced0, __in_chrg=<optimized out>)
    at /home/kordex/code/OpenTechBFG/neo/idlib/../sound/OpenAL/AL_SoundSample.h:237
No locals.
#4  BFG::idSoundSample::~idSoundSample (this=0x44dced0, __in_chrg=<optimized out>)
    at /home/kordex/code/OpenTechBFG/neo/idlib/../sound/OpenAL/AL_SoundSample.h:237
No locals.
#5  0x000000000076d13f in BFG::idList<BFG::idSoundSample*, (BFG::memTag_t)32>::DeleteContents (clear=true, this=0x12b5638 <BFG::soundSystemLocal+6104>)
    at /home/kordex/code/OpenTechBFG/neo/idlib/../idlib/containers/List.h:294
        i = 0
#6  BFG::idSoundSystemLocal::Shutdown (this=0x12b3e60 <BFG::soundSystemLocal>) at /home/kordex/code/OpenTechBFG/neo/sound/snd_system.cpp:259
No locals.
#7  0x0000000000601cb3 in BFG::idCommonLocal::Shutdown (this=0xfd7ee0 <BFG::commonLocal>) at /home/kordex/code/OpenTechBFG/neo/framework/Common.cpp:1560
        this = 0xfd7ee0 <BFG::commonLocal>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions