You are not logged in.

#1 2015-07-07 20:48:35

luksamuk
Member
Registered: 2015-04-23
Posts: 1

SIGBUS errors on binutils 2.25

A few weeks ago, I had installed some system updates, which included updates for binutils.
Everything was ok, until I found out I was having a bus error when trying to compile static libraries (please ignore the warnings):

g++ -std=c++11 -c -static InputSystem.cpp -g -Wall -DDEBUG_ENABLED -DGLEW_STATIC -I. -o obj/input.o

g++ -std=c++11 -c -static DiagnosticsSystem.cpp -g -Wall -DDEBUG_ENABLED -DGLEW_STATIC -I. -o obj/diagnostics.o
g++ -std=c++11 -c -static RenderingSystem.cpp -g -Wall -DDEBUG_ENABLED -DGLEW_STATIC -I. -o obj/rendering.o
RenderingSystem.cpp: In static member function ‘static void OficinaFramework::RenderingSystem::DrawRectangle(glm::vec2, glm::vec2, float, ColorDef, float)’:
RenderingSystem.cpp:354:13: warning: unused variable ‘data’ [-Wunused-variable]
     GLfloat data[] = {
             ^
RenderingSystem.cpp: In member function ‘void OficinaFramework::RenderingSystem::Texture::Draw(glm::vec2, glm::vec2, glm::vec2, glm::vec2, float, float, glm::vec2, Color4, OficinaFramework::RenderingSystem::RenderProperty, OficinaFramework::RenderingSystem::RenderEffect)’:
RenderingSystem.cpp:611:12: warning: variable ‘fx’ set but not used [-Wunused-but-set-variable]
     GLenum fx = MODULATE_EFFECT;
            ^
g++ -std=c++11 -c -static TimingSystem.cpp -g -Wall -DDEBUG_ENABLED -DGLEW_STATIC -I. -o obj/timing.o
g++ -std=c++11 -c -static NetworkSystem.cpp -g -Wall -DDEBUG_ENABLED -DGLEW_STATIC -I. -o obj/network.o
g++ -std=c++11 -c -static ScreenSystem.cpp -g -Wall -DDEBUG_ENABLED -DGLEW_STATIC -I. -o obj/screen.o
g++ -std=c++11 -c -static AudioSystem.cpp -g -Wall -DDEBUG_ENABLED -DGLEW_STATIC -I. -o obj/audio.o
g++ -std=c++11 -c -static EntitySystem.cpp -g -Wall -DDEBUG_ENABLED -DGLEW_STATIC -I. -o obj/entity.o
g++ -std=c++11 -c -static types.cpp -g -Wall -DDEBUG_ENABLED -DGLEW_STATIC -I. -o obj/types.o
g++ -std=c++11 -c -static OficinaException.cpp -g -Wall -DDEBUG_ENABLED -DGLEW_STATIC -I. -o obj/exception.o
g++ -std=c++11 -c -static OficinaFramework.cpp -g -Wall -DDEBUG_ENABLED -DGLEW_STATIC -I. -o obj/core.o
g++ -std=c++11 -c -static IOSystem.cpp -g -Wall -DDEBUG_ENABLED -DGLEW_STATIC -I. -o obj/io.o
ar cr lib/liboficinad.a obj/input.o obj/diagnostics.o obj/rendering.o obj/timing.o obj/network.o obj/screen.o obj/audio.o obj/entity.o obj/types.o obj/exception.o obj/core.o obj/io.o
Makefile:112: recipe for target 'lib/liboficinad.a' failed
make: *** [lib/liboficinad.a] Erro no barramento (arquivo core criado)

At first I thought it was a problem with my program, until I found out I was also having problems compiling AUR packages which required ar to build static libraries, too.
I googled a lot and found nothing about this, nor anyone reporting anything. I also tried downgrading binutils itself, but turns out I only had the 2.25 version of it stored.

Backtracing the ar command itself under gdb gives me the following:

Program received signal SIGBUS, Bus error.
0x00007ffff7de66d4 in _dl_relocate_object () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0  0x00007ffff7de66d4 in _dl_relocate_object () from /lib64/ld-linux-x86-64.so.2
#1  0x00007ffff7dee5a9 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#2  0x00007ffff7de9f94 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#3  0x00007ffff7dede01 in _dl_open () from /lib64/ld-linux-x86-64.so.2
#4  0x00007ffff72f4fc9 in ?? () from /usr/lib/libdl.so.2
#5  0x00007ffff7de9f94 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#6  0x00007ffff72f55e1 in ?? () from /usr/lib/libdl.so.2
#7  0x00007ffff72f5061 in dlopen () from /usr/lib/libdl.so.2
#8  0x00007ffff7b78749 in ?? () from /usr/lib/libbfd-2.25.0.so
#9  0x00007ffff7b78a76 in ?? () from /usr/lib/libbfd-2.25.0.so
#10 0x00007ffff7af8f90 in bfd_check_format_matches () from /usr/lib/libbfd-2.25.0.so
#11 0x00007ffff7af0b9a in _bfd_write_archive_contents () from /usr/lib/libbfd-2.25.0.so
#12 0x00007ffff7afa827 in bfd_close () from /usr/lib/libbfd-2.25.0.so
#13 0x000000000040530d in ?? ()
#14 0x000000000040598b in ?? ()
#15 0x0000000000402c40 in ?? ()
#16 0x00007ffff772e790 in __libc_start_main () from /usr/lib/libc.so.6
#17 0x0000000000403029 in ?? ()

Can anyone help me? I am basically stuck with many outdated packages if I can't find out what's happening...
Could it be a kernel problem? Currently, I am running  4.0.7-2-ARCH.

Offline

Board footer

Powered by FluxBB