[no bug] Irrlicht 1.8 SIGSEGV when calling getDriver

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

[no bug] Irrlicht 1.8 SIGSEGV when calling getDriver

Post by Cube_ »

So, I got the idea to try out 1.8, I quickly wipped together the hello world app from memory and was met with this:
Irrlicht Engine version 1.8.0
Microsoft Windows 7 Enterprise Edition Service Pack 1 (Build 7601)
Using renderer: OpenGL 2.1.0
Intel(R) Q45/Q43 Express Chipset: Intel
OpenGL driver version is 1.2 or better.
GLSL version: 1.2
Resizing window (800 600)


Debugger returns:
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.4
Child process PID: 4768
Program received signal SIGSEGV, Segmentation fault.
At E:\Softwarez\CodeBlocksPortable\Projects\asd\main.cpp:16


Dissasembly:

Code: Select all

0040138C    push   %ebp
0040138D    mov    %esp,%ebp
0040138F    push   %ebx
00401390    and    $0xfffffff0,%esp
00401393    sub    $0xd0,%esp
00401399    call   0x401e74 <__main>
0040139E    movl   $0x258,0x34(%esp)
004013A6    movl   $0x320,0x38(%esp)
004013AE    lea    0x34(%esp),%eax
004013B2    mov    %eax,0x8(%esp)
004013B6    lea    0x38(%esp),%eax
004013BA    mov    %eax,0x4(%esp)
004013BE    lea    0x2c(%esp),%eax
004013C2    mov    %eax,(%esp)
004013C5    call   0x40214c <irr::core::dimension2d<unsigned int>::dimension2d(unsigned int const&, unsigned int const&)>
004013CA    movl   $0x0,0x18(%esp)
004013D2    movl   $0x0,0x14(%esp)
004013DA    movl   $0x0,0x10(%esp)
004013E2    movl   $0x0,0xc(%esp)
004013EA    movl   $0x20,0x8(%esp)
004013F2    lea    0x2c(%esp),%eax
004013F6    mov    %eax,0x4(%esp)
004013FA    movl   $0x5,(%esp)
00401401    mov    0x408118,%eax
00401406    call   *%eax
00401408    mov    %eax,0xcc(%esp)
0040140F    mov    0xcc(%esp),%eax
00401416    mov    (%eax),%eax
00401418    add    $0x3c,%eax
0040141B    mov    (%eax),%edx
0040141D    movl   $0x404080,0x4(%esp)
00401425    mov    0xcc(%esp),%eax
0040142C    mov    %eax,(%esp)
0040142F    call   *%edx
00401431    mov    0xcc(%esp),%eax
00401438    mov    (%eax),%eax
0040143A    add    $0xc,%eax
0040143D    mov    (%eax),%edx
0040143F    mov    0xcc(%esp),%eax
00401446    mov    %eax,(%esp)
00401449    call   *%edx
0040144B    mov    %eax,0xc8(%esp)
00401452    mov    0xcc(%esp),%eax
00401459    mov    (%eax),%eax
0040145B    add    $0x18,%eax
0040145E    mov    (%eax),%edx
00401460    mov    0xcc(%esp),%eax
00401467    mov    %eax,(%esp)
0040146A    call   *%edx
0040146C    mov    %eax,0xc4(%esp)
00401473    mov    0xcc(%esp),%eax
0040147A    mov    (%eax),%eax
0040147C    add    $0x14,%eax
0040147F    mov    (%eax),%edx
00401481    mov    0xcc(%esp),%eax
00401488    mov    %eax,(%esp)
0040148B    call   *%edx
0040148D    mov    %eax,0xc0(%esp)
00401494    mov    0xc0(%esp),%eax
0040149B    mov    (%eax),%eax
0040149D    add    $0x90,%eax
004014A2    mov    (%eax),%ebx
004014A4    movl   $0x37,0x10(%esp)
004014AC    movl   $0x12c,0xc(%esp)
004014B4    movl   $0x28,0x8(%esp)
004014BC    movl   $0x28,0x4(%esp)
004014C4    lea    0x3c(%esp),%eax
004014C8    mov    %eax,(%esp)
004014CB    call   0x402230 <irr::core::rect<int>::rect(int, int, int, int)>
004014D0    movl   $0x0,0x1c(%esp)
004014D8    movl   $0xffffffff,0x18(%esp)
004014E0    movl   $0x0,0x14(%esp)
004014E8    movl   $0x1,0x10(%esp)
004014F0    movl   $0x1,0xc(%esp)
004014F8    lea    0x3c(%esp),%eax
004014FC    mov    %eax,0x8(%esp)
00401500    movl   $0x40409c,0x4(%esp)
00401508    mov    0xc0(%esp),%eax
0040150F    mov    %eax,(%esp)
00401512    call   *%ebx
00401514    mov    0xc4(%esp),%eax
0040151B    mov    (%eax),%eax
0040151D    mov    (%eax),%ebx
0040151F    movl   $0x4040b6,0x4(%esp)
00401527    lea    0x4c(%esp),%eax
0040152B    mov    %eax,(%esp)
0040152E    call   0x402270 <irr::core::string<char, irr::core::irrAllocator<char> >::string<char>(char const*)>
00401533    lea    0x4c(%esp),%eax
00401537    mov    %eax,0x4(%esp)
0040153B    mov    0xc4(%esp),%eax
00401542    mov    %eax,(%esp)
00401545    call   *%ebx
00401547    mov    %eax,0xbc(%esp)
0040154E    lea    0x4c(%esp),%eax
00401552    mov    %eax,(%esp)
00401555    call   0x4022d8 <irr::core::string<char, irr::core::irrAllocator<char> >::~string()>
0040155A    mov    0xc4(%esp),%eax
00401561    mov    (%eax),%eax
00401563    add    $0x24,%eax
00401566    mov    (%eax),%ebx
00401568    mov    $0x3f800000,%eax
0040156D    mov    %eax,0xc(%esp)
00401571    mov    $0x3f800000,%eax
00401576    mov    %eax,0x8(%esp)
0040157A    mov    $0x3f800000,%eax
0040157F    mov    %eax,0x4(%esp)
00401583    lea    0x5c(%esp),%eax
00401587    mov    %eax,(%esp)
0040158A    call   0x402464 <irr::core::vector3d<float>::vector3d(float, float, float)>
0040158F    mov    $0x0,%eax
00401594    mov    %eax,0xc(%esp)
00401598    mov    $0x0,%eax
0040159D    mov    %eax,0x8(%esp)
004015A1    mov    $0x0,%eax
004015A6    mov    %eax,0x4(%esp)
004015AA    lea    0x68(%esp),%eax
004015AE    mov    %eax,(%esp)
004015B1    call   0x402464 <irr::core::vector3d<float>::vector3d(float, float, float)>
004015B6    mov    $0x0,%eax
004015BB    mov    %eax,0xc(%esp)
004015BF    mov    $0x0,%eax
004015C4    mov    %eax,0x8(%esp)
004015C8    mov    $0x0,%eax
004015CD    mov    %eax,0x4(%esp)
004015D1    lea    0x74(%esp),%eax
004015D5    mov    %eax,(%esp)
004015D8    call   0x402464 <irr::core::vector3d<float>::vector3d(float, float, float)>
004015DD    movl   $0x0,0x1c(%esp)
004015E5    lea    0x5c(%esp),%eax
004015E9    mov    %eax,0x18(%esp)
004015ED    lea    0x68(%esp),%eax
004015F1    mov    %eax,0x14(%esp)
004015F5    lea    0x74(%esp),%eax
004015F9    mov    %eax,0x10(%esp)
004015FD    movl   $0xffffffff,0xc(%esp)
00401605    movl   $0x0,0x8(%esp)
0040160D    mov    0xbc(%esp),%eax
00401614    mov    %eax,0x4(%esp)
00401618    mov    0xc4(%esp),%eax
0040161F    mov    %eax,(%esp)
00401622    call   *%ebx
00401624    mov    %eax,0xb8(%esp)
0040162B    cmpl   $0x0,0xb8(%esp)
00401633    je     0x4016ec <main()+864>
00401639    mov    0xb8(%esp),%eax
00401640    movl   $0x0,0x8(%esp)
00401648    movl   $0x8,0x4(%esp)
00401650    mov    %eax,(%esp)
00401653    call   0x402484 <irr::scene::ISceneNode::setMaterialFlag(irr::video::E_MATERIAL_FLAG, bool)>
00401658    mov    0xb8(%esp),%eax
0040165F    mov    (%eax),%eax
00401661    add    $0xb0,%eax
00401666    mov    (%eax),%edx
00401668    movl   $0x136,0x8(%esp)
00401670    movl   $0x0,0x4(%esp)
00401678    mov    0xb8(%esp),%eax
0040167F    mov    %eax,(%esp)
00401682    call   *%edx
00401684    mov    0xc8(%esp),%eax
0040168B    mov    (%eax),%eax
0040168D    add    $0x34,%eax
00401690    mov    (%eax),%ebx
00401692    movl   $0x4040c7,0x4(%esp)
0040169A    lea    0x80(%esp),%eax
004016A1    mov    %eax,(%esp)
004016A4    call   0x402270 <irr::core::string<char, irr::core::irrAllocator<char> >::string<char>(char const*)>
004016A9    lea    0x80(%esp),%eax
004016B0    mov    %eax,0x4(%esp)
004016B4    mov    0xc8(%esp),%eax
004016BB    mov    %eax,(%esp)
004016BE    call   *%ebx
004016C0    mov    %eax,%edx
004016C2    mov    0xb8(%esp),%eax
004016C9    mov    %edx,0x8(%esp)
004016CD    movl   $0x0,0x4(%esp)
004016D5    mov    %eax,(%esp)
004016D8    call   0x4024f0 <irr::scene::ISceneNode::setMaterialTexture(unsigned int, irr::video::ITexture*)>
004016DD    lea    0x80(%esp),%eax
004016E4    mov    %eax,(%esp)
004016E7    call   0x4022d8 <irr::core::string<char, irr::core::irrAllocator<char> >::~string()>
004016EC    mov    0xc4(%esp),%eax
004016F3    mov    (%eax),%eax
004016F5    add    $0x38,%eax
004016F8    mov    (%eax),%ebx
004016FA    mov    $0x0,%eax
004016FF    mov    %eax,0xc(%esp)
00401703    mov    $0x40a00000,%eax
00401708    mov    %eax,0x8(%esp)
0040170C    mov    $0x0,%eax
00401711    mov    %eax,0x4(%esp)
00401715    lea    0x90(%esp),%eax
0040171C    mov    %eax,(%esp)
0040171F    call   0x402464 <irr::core::vector3d<float>::vector3d(float, float, float)>
00401724    mov    $0xc2200000,%eax
00401729    mov    %eax,0xc(%esp)
0040172D    mov    $0x41f00000,%eax
00401732    mov    %eax,0x8(%esp)
00401736    mov    $0x0,%eax
0040173B    mov    %eax,0x4(%esp)
0040173F    lea    0x9c(%esp),%eax
00401746    mov    %eax,(%esp)
00401749    call   0x402464 <irr::core::vector3d<float>::vector3d(float, float, float)>
0040174E    movl   $0x1,0x14(%esp)
00401756    movl   $0xffffffff,0x10(%esp)
0040175E    lea    0x90(%esp),%eax
00401765    mov    %eax,0xc(%esp)
00401769    lea    0x9c(%esp),%eax
00401770    mov    %eax,0x8(%esp)
00401774    movl   $0x0,0x4(%esp)
0040177C    mov    0xc4(%esp),%eax
00401783    mov    %eax,(%esp)
00401786    call   *%ebx
00401788    jmp    0x40185d <main()+1233>
0040178D    mov    0xc8(%esp),%eax
00401794    mov    (%eax),%eax
00401796    mov    (%eax),%ebx
00401798    lea    0xa8(%esp),%eax
0040179F    mov    %eax,(%esp)
004017A2    call   0x402558 <irr::video::SExposedVideoData::SExposedVideoData()>
004017A7    movl   $0x8c,0x10(%esp)
004017AF    movl   $0x0,0xc(%esp)
004017B7    movl   $0x0,0x8(%esp)
004017BF    movl   $0xff,0x4(%esp)
004017C7    lea    0xb4(%esp),%eax
004017CE    mov    %eax,(%esp)
004017D1    call   0x40257c <irr::video::SColor::SColor(irr::u32, irr::u32, irr::u32, irr::u32)>
004017D6    movl   $0x0,0x14(%esp)
004017DE    lea    0xa8(%esp),%eax
004017E5    mov    %eax,0x10(%esp)
004017E9    mov    0xb4(%esp),%eax
004017F0    mov    %eax,0xc(%esp)
004017F4    movl   $0x1,0x8(%esp)
004017FC    movl   $0x1,0x4(%esp)
00401804    mov    0xc8(%esp),%eax
0040180B    mov    %eax,(%esp)
0040180E    call   *%ebx
00401810    mov    0xc4(%esp),%eax
00401817    mov    (%eax),%eax
00401819    add    $0xb0,%eax
0040181E    mov    (%eax),%edx
00401820    mov    0xc4(%esp),%eax
00401827    mov    %eax,(%esp)
0040182A    call   *%edx
0040182C    mov    0xc0(%esp),%eax
00401833    mov    (%eax),%eax
00401835    mov    (%eax),%edx
00401837    mov    0xc0(%esp),%eax
0040183E    mov    %eax,(%esp)
00401841    call   *%edx
00401843    mov    0xc8(%esp),%eax
0040184A    mov    (%eax),%eax
0040184C    add    $0x4,%eax
0040184F    mov    (%eax),%edx
00401851    mov    0xc8(%esp),%eax
00401858    mov    %eax,(%esp)
0040185B    call   *%edx
0040185D    mov    0xcc(%esp),%eax
00401864    mov    (%eax),%eax
00401866    mov    (%eax),%edx
00401868    mov    0xcc(%esp),%eax
0040186F    mov    %eax,(%esp)
00401872    call   *%edx
00401874    test   %al,%al
00401876    jne    0x40178d <main()+1025>
0040187C    mov    0xcc(%esp),%eax
00401883    mov    (%eax),%eax
00401885    sub    $0xc,%eax
00401888    mov    (%eax),%eax
0040188A    add    0xcc(%esp),%eax
00401891    mov    %eax,(%esp)
00401894    call   0x402a24 <irr::IReferenceCounted::drop() const>
00401899    mov    $0x0,%eax
0040189E    mov    -0x4(%ebp),%ebx
004018A1    leave
004018A2    ret
004018A3    mov    %eax,%ebx
004018A5    lea    0x4c(%esp),%eax
004018A9    mov    %eax,(%esp)
004018AC    call   0x4022d8 <irr::core::string<char, irr::core::irrAllocator<char> >::~string()>
004018B1    mov    %ebx,%eax
004018B3    mov    %eax,(%esp)
004018B6    call   0x40208c <_Unwind_Resume>
004018BB    mov    %eax,%ebx
004018BD    lea    0x80(%esp),%eax
004018C4    mov    %eax,(%esp)
004018C7    call   0x4022d8 <irr::core::string<char, irr::core::irrAllocator<char> >::~string()>
004018CC    mov    %ebx,%eax
004018CE    mov    %eax,(%esp)
004018D1    call   0x40208c <_Unwind_Resume>
 
The code:

Code: Select all

#include "E:\Softwarez\CodeBlocksPortable\MinGW\include\Irrlicht\irrlicht.h"
 
using namespace irr;
//*
using namespace core;
using namespace gui;
using namespace video;
using namespace io;
using namespace scene; //*/
 
int main()
{
    IrrlichtDevice *device = createDevice(EDT_OPENGL, dimension2d<u32>(800,600), 32, false, false, false, 0); //Some initialization c0de, creating a window with various options.
    (*device).setWindowCaption(L"ZOMG! TITLEZ!"); //Equivalent to device->setWindowCaption... Just don't like the funking arrow operator.
 
    IVideoDriver* driver = (*device).getVideoDriver();
    ISceneManager* smgr = (*device).getSceneManager();
    IGUIEnvironment* guienv = (*device).getGUIEnvironment();
 
    (*guienv).addStaticText(L"OMFG! TEXTZ!", rect<s32>(40, 40, 300, 55), true);
 
    IAnimatedMesh* mesh = (*smgr).getMesh("media/sydney.md2");
    IAnimatedMeshSceneNode* node = (*smgr).addAnimatedMeshSceneNode( mesh );
 
    if( node )
    {
        (*node).setMaterialFlag(EMF_LIGHTING, false);
        (*node).setFrameLoop(0, 310);
        (*node).setMaterialTexture(0, (*driver).getTexture("media/sydney.bmp"));
    }
 
    (*smgr).addCameraSceneNode(0, vector3df(0,30,-40),vector3df(0,5,0));
 
    while((*device).run())
    {
        (*driver).beginScene(true,true,SColor(255,0,0,140));
        (*smgr).drawAll();
        (*guienv).drawAll();
        (*driver).endScene();
    }
    (*device).drop();
    return 0;
}
 
This is observed with the included win32-gcc binary and lib as well as a version compiled specifically for this.
MinGW - GCC 4.6.2
Similar results on GCC 4.7.x under linux (kernel: 3.2.x, as well as 3.6.x i686, tried both)
This is observable with the other renderers as well.
"this is not the bottleneck you are looking for"
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Possible bug: Irrlicht 1.8 SIGSEGV when calling getDrive

Post by hybrid »

That call simply returns an internally stored pointer. So nothing which can sigsegv. Only possibility is that you have a corrupt device pointer in the beginning. SImply debug your app properly and check the device pointer after it returns. What happens if you remove the setWindowCaption?
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Possible bug: Irrlicht 1.8 SIGSEGV when calling getDrive

Post by Cube_ »

*removes setWindowCaption*
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.4
Child process PID: 1708
Program received signal SIGSEGV, Segmentation fault.
In ?? () (E:\Softwarez\CodeBlocksPortable\Projects\asd\bin\Debug\Irrlicht.dll)
Continuing...
Program received signal SIGSEGV, Segmentation fault.
In ?? () (E:\Softwarez\CodeBlocksPortable\Projects\asd\bin\Debug\Irrlicht.dll)

Callback:
address | function
63499AC0 | ??()
635B23CD | createDevice()
00000000 | 0x00618db0 in ??()

^^"
Oh yes, should be worth noting that device gets mapped to 0x0 and the debugger spits "Cannot access memory at address 0x0" at me.
"this is not the bottleneck you are looking for"
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Possible bug: Irrlicht 1.8 SIGSEGV when calling getDrive

Post by hybrid »

Ok, first thing which will help you a lot in the future: If you need to debug an app, compile it (and all libs you have access to) as DEBUG. You can skip all this disassembly nonsense and get useful results.
Second: If a function can return a null pointer, you should check for it. If you get a null pointer, it does not make sense to work with it other than erroring out of the apop or trying the function again with a different set of parameters. You can try with the null pointer forever, but your app will never work correctly.
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Possible bug: Irrlicht 1.8 SIGSEGV when calling getDrive

Post by Cube_ »

I know.
Anyway.
I set a breakpoint at IrrlichtDevice *device = createDevice(EDT_OPENGL, dimension2d<u32>(800,600), 32, false, false, false, 0);
device gets a memory address of 0x7efde000 moving one more line it gets 0x904fd0 and turns red, moving on! Next line returns "no symbol table info available" with this output in the debugging window and then finally it turns to a null pointer and segfaults:
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.4
Child process PID: 4232
At E:\Softwarez\CodeBlocksPortable\Projects\asd\main.cpp:13
At E:\Softwarez\CodeBlocksPortable\Projects\asd\main.cpp:14
In ?? () (E:\Softwarez\CodeBlocksPortable\Projects\asd\bin\Debug\Irrlicht.dll)
In ?? () (E:\Softwarez\CodeBlocksPortable\Projects\asd\bin\Debug\Irrlicht.dll)
In ?? () (E:\Softwarez\CodeBlocksPortable\Projects\asd\bin\Debug\Irrlicht.dll)
In ?? () (E:\Softwarez\CodeBlocksPortable\Projects\asd\bin\Debug\Irrlicht.dll)
Program received signal SIGSEGV, Segmentation fault.
At E:\Softwarez\CodeBlocksPortable\Projects\asd\main.cpp:16
Oh, and this IS a debug build, well Irrlicht isn't a debug build but I've never had problems using a release build of it before. Although it should be worth noting that this code compiles fine on an identical setup on another machine using 1.7.3 instead of 1.8.0, therefore I know this is an issue with 1.8
Will make debug version of the library for continued debugging.
"this is not the bottleneck you are looking for"
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Possible bug: Irrlicht 1.8 SIGSEGV when calling getDrive

Post by hybrid »

Well, assuming the bug lies within the dll, you shoud use a debug dll in order to find it. However, now I assume that it's an incompatible headers thing. So either your dll or your include path points to an older/incompatible version. This leads to corruption in the functions table or overwritten attributes in the classes. There's for sure no bug in the getVideoDriver function.
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Possible bug: Irrlicht 1.8 SIGSEGV when calling getDrive

Post by Cube_ »

Odd.
I can't recompile it as a debug dll.
E:\Softwarez\Irrlicht\source\Irrlicht\CFileSystem.cpp||In member function 'virtual const path& irr::io::CFileSystem::getWorkingDirectory()':|
E:\Softwarez\Irrlicht\source\Irrlicht\CFileSystem.cpp|515|error: '_MAX_PATH' was not declared in this scope|
E:\Softwarez\Irrlicht\source\Irrlicht\CFileSystem.cpp|521|error: 'tmp' was not declared in this scope|
E:\Softwarez\Irrlicht\source\Irrlicht\CFileSystem.cpp||In member function 'virtual irr::io::path irr::io::CFileSystem::getAbsolutePath(const path&) const':|
E:\Softwarez\Irrlicht\source\Irrlicht\CFileSystem.cpp|614|error: '_MAX_PATH' was not declared in this scope|
E:\Softwarez\Irrlicht\source\Irrlicht\CFileSystem.cpp|620|error: 'fpath' was not declared in this scope|
E:\Softwarez\Irrlicht\source\Irrlicht\CFileSystem.cpp|620|error: '_fullpath' was not declared in this scope|
||=== Build finished: 5 errors, 0 warnings ===|

Be the compiler log... I should just use 1.7.3 for now, it at works. *And no, I won't fix the errors myself, I expect libraries to compile without errors.*

Oh, and compiler flags, anyone?
-g
-std=c++0x


That's all I set, and the release one had
-std=c++0x
"this is not the bottleneck you are looking for"
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Possible bug: Irrlicht 1.8 SIGSEGV when calling getDrive

Post by hybrid »

Simply don't set the compiler flags you don't need. Check the makefile for those we suggest, or simply leave out the std= flag. The latter one is not fully working with mingw headers. Not a problem with Irrlicht, but merely mingw's winapi support.
Oh, and yes, seeing that 1.7.x works is also a good hint that you bugged up your switch to 1.8
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Possible bug: Irrlicht 1.8 SIGSEGV when calling getDrive

Post by Cube_ »

Hurr.
Let me clarify *why* I have the -std=c++0x
The compilation returns an error if I don't have it *I am serious, will boot the windows machine to note it down if necessary*

Also, I am beginning to think you don't even read my posts.
I clearly said:
[quote]Although it should be worth noting that this code compiles fine on an identical setup on another machine using 1.7.3 instead of 1.8.0, therefore I know this is an issue with 1.8[/qutote]
Hence I could not have bugged the switch since it is a fresh irrlicht build on that machine *to clarify *again* The machine I am using 1.8 on has never ever been in contact with irrlicht*

Anyway, gonna stick with 1.7.3 for now, I don't feel like fixing someone elses code just so I can debug it.
"this is not the bottleneck you are looking for"
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Possible bug: Irrlicht 1.8 SIGSEGV when calling getDrive

Post by hybrid »

Ok, so declaring this as no bug then, as it is not reproducable
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: [no bug] Irrlicht 1.8 SIGSEGV when calling getDriver

Post by Cube_ »

It is reproducable, try it on *any* system *Be it windows or linux* running g++ 4.6.2 or 1.7.3 *the tested versions, should reproduce on 4.6-7.x*

Reminds me, am I the only one who gets the vibe that you don't give a poop about g++ users?
I will try it *one* more time on yet another system I haven't so far *another windows 7 enterprise edition, MinGW 6.4.2*
Then I will, if this also fails, try it on a windows XP build running MinGW 6.x (Yes, that is all I remember about that specific computer, well that and that I never ran irrlicht on it)
"this is not the bottleneck you are looking for"
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: [no bug] Irrlicht 1.8 SIGSEGV when calling getDriver

Post by CuteAlien »

I just tried on linux (g++ 4.4.5, sorry debian has no newer version) and it works here. But also makes no sense crashing in that line - as Hybrid already wrote this is just a single line returning a pointer - when this crashes it nearly certainly is a problem with either version mismatches or some strange linker-flags. The other possible reason for it to crash would be that 'device' is NULL. But then it should crash in the line before that already.

And getDevice() is certainly called by every single example. Which I have tested on Windows 7 and MinGW.

I don't know about -std=c++0x - this shouldn't be needed. What kind of errors do you get otherwise?

I have the feeling we are missing something you are doing. Why don't you start the safe way ... use the project files coming with Irrlicht and build the examples there. Test if those examples run first. If they have problems and you didn't change anything then we know at least which configuration you are using.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: [no bug] Irrlicht 1.8 SIGSEGV when calling getDriver

Post by Cube_ »

Oh, I used the CodeBlocks project included, I probably should've mentioned that.
With all the flags set by default for the project (No, literally. I keep a backup of the original, unmodified project on my usb, in the original archive downloaded from SF):
WIN32 - Release - Accurate Math - Shared *Or whatever it is called*

Code: Select all

[||=== Irrlicht, Win32 - Release - accurate math - dll ===|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CBurningShader_Raster_Reference.cpp||In member function 'void irr::video::CBurningShader_Raster_Reference::scanline()':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CBurningShader_Raster_Reference.cpp|781|warning: variable 'condition' set but not used [-Wunused-but-set-variable]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CColladaFileLoader.cpp||In member function 'void irr::scene::CColladaFileLoader::readPolygonSection(irr::io::IXMLReaderUTF8*, irr::core::array<irr::scene::SSource>&, irr::scene::SMesh*, const stringc&)':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CColladaFileLoader.cpp|1920|warning: variable 'unresolvedInput' set but not used [-Wunused-but-set-variable]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CColorConverter.cpp|614|warning: enumeration value 'ECF_R16F' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CColorConverter.cpp|614|warning: enumeration value 'ECF_G16R16F' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CColorConverter.cpp|614|warning: enumeration value 'ECF_A16B16G16R16F' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CColorConverter.cpp|614|warning: enumeration value 'ECF_R32F' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CColorConverter.cpp|614|warning: enumeration value 'ECF_G32R32F' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CColorConverter.cpp|614|warning: enumeration value 'ECF_A32B32G32R32F' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CColorConverter.cpp|614|warning: enumeration value 'ECF_UNKNOWN' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CBlit.h|1165|warning: 'irr::s32 irr::StretchBlit(irr::eBlitter, irr::video::IImage*, const irr::core::rect<int>*, const irr::core::rect<int>*, irr::video::IImage*, irr::u32)' defined but not used [-Wunused-function]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CBlit.h|1222|warning: 'void irr::drawRectangle(irr::video::IImage*, const irr::core::rect<int>&, const irr::video::SColor&)' defined but not used [-Wunused-function]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CBlit.h|1230|warning: 'void irr::drawLine(irr::video::IImage*, const irr::core::vector2d<int>&, const irr::core::vector2d<int>&, const irr::video::SColor&)' defined but not used [-Wunused-function]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CImageLoaderPNG.cpp||In member function 'virtual irr::video::IImage* irr::video::CImageLoaderPng::loadImage(irr::io::IReadFile*) const':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CImageLoaderPNG.cpp|95|warning: variable 'image' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CImageLoaderWAL.cpp||In member function 'virtual irr::video::IImage* irr::video::CImageLoaderWAL2::loadImage(irr::io::IReadFile*) const':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CImageLoaderWAL.cpp|209|warning: enumeration value 'ECF_A1R5G5B5' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CImageLoaderWAL.cpp|209|warning: enumeration value 'ECF_R5G6B5' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CImageLoaderWAL.cpp|209|warning: enumeration value 'ECF_R16F' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CImageLoaderWAL.cpp|209|warning: enumeration value 'ECF_G16R16F' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CImageLoaderWAL.cpp|209|warning: enumeration value 'ECF_A16B16G16R16F' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CImageLoaderWAL.cpp|209|warning: enumeration value 'ECF_R32F' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CImageLoaderWAL.cpp|209|warning: enumeration value 'ECF_G32R32F' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CImageLoaderWAL.cpp|209|warning: enumeration value 'ECF_A32B32G32R32F' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CImageLoaderWAL.cpp|209|warning: enumeration value 'ECF_UNKNOWN' not handled in switch [-Wswitch]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\COBJMeshFileLoader.cpp||In member function 'virtual irr::scene::IAnimatedMesh* irr::scene::COBJMeshFileLoader::createMesh(irr::io::IReadFile*)':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\COBJMeshFileLoader.cpp|78|warning: variable 'smoothingGroup' set but not used [-Wunused-but-set-variable]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CBlit.h|1165|warning: 'irr::s32 irr::StretchBlit(irr::eBlitter, irr::video::IImage*, const irr::core::rect<int>*, const irr::core::rect<int>*, irr::video::IImage*, irr::u32)' defined but not used [-Wunused-function]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CSoftwareDriver2.cpp||In member function 'virtual void irr::video::CBurningVideoDriver::drawVertexPrimitiveList(const void*, irr::u32, const void*, irr::u32, irr::video::E_VERTEX_TYPE, irr::scene::E_PRIMITIVE_TYPE, irr::video::E_INDEX_TYPE)':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CSoftwareDriver2.cpp|1536|warning: 'sourceIndex' may be used uninitialized in this function [-Wuninitialized]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CSoftwareDriver2.cpp|1511|note: 'sourceIndex' was declared here|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CXMeshFileLoader.cpp||In member function 'bool irr::scene::CXMeshFileLoader::parseDataObjectMesh(irr::scene::CXMeshFileLoader::SXMesh&)':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CXMeshFileLoader.cpp|892|warning: variable 'tangentpos' set but not used [-Wunused-but-set-variable]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CXMeshFileLoader.cpp|893|warning: variable 'binormalpos' set but not used [-Wunused-but-set-variable]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CXMeshFileLoader.cpp|897|warning: variable 'tangenttype' set but not used [-Wunused-but-set-variable]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CXMeshFileLoader.cpp|898|warning: variable 'binormaltype' set but not used [-Wunused-but-set-variable]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CZipReader.cpp||In member function 'virtual irr::io::IReadFile* irr::io::CZipReader::createAndOpenFile(irr::u32)':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CZipReader.cpp|721|warning: missing initializer for member 'bz_stream::avail_in' [-Wmissing-field-initializers]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CZipReader.cpp|721|warning: missing initializer for member 'bz_stream::total_in_lo32' [-Wmissing-field-initializers]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CZipReader.cpp|721|warning: missing initializer for member 'bz_stream::total_in_hi32' [-Wmissing-field-initializers]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CZipReader.cpp|721|warning: missing initializer for member 'bz_stream::next_out' [-Wmissing-field-initializers]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CZipReader.cpp|721|warning: missing initializer for member 'bz_stream::avail_out' [-Wmissing-field-initializers]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CZipReader.cpp|721|warning: missing initializer for member 'bz_stream::total_out_lo32' [-Wmissing-field-initializers]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CZipReader.cpp|721|warning: missing initializer for member 'bz_stream::total_out_hi32' [-Wmissing-field-initializers]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CZipReader.cpp|721|warning: missing initializer for member 'bz_stream::state' [-Wmissing-field-initializers]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CZipReader.cpp|721|warning: missing initializer for member 'bz_stream::bzalloc' [-Wmissing-field-initializers]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CZipReader.cpp|721|warning: missing initializer for member 'bz_stream::bzfree' [-Wmissing-field-initializers]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\CZipReader.cpp|721|warning: missing initializer for member 'bz_stream::opaque' [-Wmissing-field-initializers]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp||In function 'int aes_decrypt_key192(const void*, aes_decrypt_ctx*)':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|371|warning: operation on 'ss[4]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|371|warning: operation on 'ss[4]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|371|warning: operation on 'ss[4]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|372|warning: operation on 'ss[5]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|372|warning: operation on 'ss[5]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|372|warning: operation on 'ss[5]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp||In function 'int aes_decrypt_key256(const void*, aes_decrypt_ctx*)':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|417|warning: operation on 'ss[4]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|417|warning: operation on 'ss[4]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|417|warning: operation on 'ss[4]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|418|warning: operation on 'ss[5]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|418|warning: operation on 'ss[5]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|418|warning: operation on 'ss[5]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|419|warning: operation on 'ss[6]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|419|warning: operation on 'ss[6]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|419|warning: operation on 'ss[6]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|420|warning: operation on 'ss[7]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|420|warning: operation on 'ss[7]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\aeskey.cpp|420|warning: operation on 'ss[7]' may be undefined [-Wsequence-point]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\fileenc.cpp||In function 'int fcrypt_end(unsigned char*, fcrypt_ctx*)':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\aesGladman\fileenc.cpp|134|warning: unused variable 'res' [-Wunused-variable]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\bzip2\bzcompress.c||In function 'sendMTFValues':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\bzip2\bzcompress.c|243|warning: variable 'nBytes' set but not used [-Wunused-but-set-variable]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jcmainct.c||In function 'start_pass_main':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jcmainct.c|71|warning: 'main' is usually a function [-Wmain]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jcmainct.c||In function 'process_data_simple_main':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jcmainct.c|117|warning: 'main' is usually a function [-Wmain]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jcmainct.c||In function 'jinit_c_main_controller':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jcmainct.c|247|warning: 'main' is usually a function [-Wmain]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c||In function 'alloc_funny_pointers':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c|162|warning: 'main' is usually a function [-Wmain]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c||In function 'make_funny_pointers':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c|203|warning: 'main' is usually a function [-Wmain]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c||In function 'set_wraparound_pointers':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c|243|warning: 'main' is usually a function [-Wmain]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c||In function 'set_bottom_pointers':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c|272|warning: 'main' is usually a function [-Wmain]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c||In function 'start_pass_main':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c|309|warning: 'main' is usually a function [-Wmain]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c||In function 'process_data_simple_main':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c|349|warning: 'main' is usually a function [-Wmain]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c||In function 'process_data_context_main':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c|389|warning: 'main' is usually a function [-Wmain]|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c||In function 'jinit_d_main_controller':|
E:\Softwarez\CodeBlocksPortable\Projects\irrlicht-1.8\irrlicht-1.8\source\Irrlicht\jpeglib\jdmainct.c|478|warning: 'main' is usually a function [-Wmain]|
||=== Build finished: 1 errors, 71 warnings ===|
 
*That is the release build*
"this is not the bottleneck you are looking for"
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: [no bug] Irrlicht 1.8 SIGSEGV when calling getDriver

Post by CuteAlien »

Strange - it says 1 errors - but I don't see the error mentioned (also I get 111 warnings).
Can't really do anything unless I know what the error is...
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: [no bug] Irrlicht 1.8 SIGSEGV when calling getDriver

Post by Cube_ »

It seems copying the log to clipboard didn't copy all the log... Lemme just recompile it *As I don't have logging enabled on that computer* when I have access to that computer again *Tomorrow* so I can find the error for you.

Although I agree it is strange, as using the default config supplied with irrlicht shouldn't cause errors. *-std=c++0x fixes it, but might be the reason for the sigsegv*
"this is not the bottleneck you are looking for"
Post Reply