segmentation fault on FreeBSD 8.3-RELEASE-p5 amd64

Bug #1085955 reported by Marko Cupać
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Expired
Low
Unassigned

Bug Description

mixxx-1.10.1 compiles fine on FreeBSD 8.3-RELEASE-p3 amd64, but when trying to start it from console all I get it is:

Segmentation fault (core dumped)

and 20MB mixxx.core file in my home dir

Tags: bsd opengl
Revision history for this message
Max Linke (max-linke) wrote :

could you generate a backtrace and upload it?

FreeBSD should have gdb preinstalled afaik.
http://www.mixxx.org/wiki/doku.php/creating_backtraces

Revision history for this message
Marko Cupać (marko-cupac) wrote :

Here it is:

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Thanks -- looks like an OpenGL crash. Your graphics drivers are likely at fault.

Can you run glxgears?
Can you run the qt4 OpenGL demos?

tags: added: bsd opengl
RJ Skerry-Ryan (rryan)
Changed in mixxx:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Daniel Schürmann (daschuer) wrote :

Hi Marko,

I wonder why we see no debug symbols from Mixxx in the backtrace.
I am not sure, but they should be enabled by default (Scons without "build" argument).
Can you try to debug mixxx from the build tree?

@Mixxx-dev
Can one explain how to get a backtrack with Symbols on FreeBSD?

We have already fixed segfaults with GL in Mixxx 1.11 beta.
So you could try our latest 1.11 branch
> bzr checkout lp:mixxx/1.11
But .. do not use it live, it is an untested version.

Kind regards,

Daniel

Revision history for this message
Marko Cupać (marko-cupac) wrote :

I can run qlxgears, as seen on the attached screenshot. Didn't have qt4 installed (I run xfce without display manager), but afer compiling and installing it, qtdemo -> opengl -> textures works just fine, rotating dices. Other demos work as well too.

I will try to compile the latest branch and let you know the results.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Mixxx because there has been no activity for 60 days.]

Changed in mixxx:
status: Incomplete → Expired
Revision history for this message
Marko Cupać (marko-cupac) wrote :

Ok, i tried to compile 1.11 but scons throws error. Attached is config.log

Revision history for this message
RJ Skerry-Ryan (rryan) wrote : Re: [Bug 1085955] Re: segmentation fault on FreeBSD 8.3-RELEASE-p5 amd64

Hi Marko -- could you also post the output of scons in addition to
config.log?

It seems you are missing a few of the dependencies. The main issues is that
SCons cannot find Qt. If you do not have qt4's development libraries
installed, make sure to install them. If they are installed then you may
need to provide a qtdir argument to SCons to help it find them. e.g. scons
qtdir=/usr/local/qt4/ or something similar depending on the path on your
system.

On Sat, Feb 23, 2013 at 6:08 PM, Marko Cupać <email address hidden> wrote:

> Ok, i tried to compile 1.11 but scons throws error. Attached is
> config.log
>
> ** Attachment added: "config.log"
>
> https://bugs.launchpad.net/mixxx/+bug/1085955/+attachment/3543905/+files/config.log
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/1085955
>
> Title:
> segmentation fault on FreeBSD 8.3-RELEASE-p5 amd64
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mixxx/+bug/1085955/+subscriptions
>

Revision history for this message
Marko Cupać (marko-cupac) wrote :

Hi,

I attached scons output. I see it complains about missing libraries, even though I have them installed:

pacija@kaa:/usr/local/lib/portaudio2 % ls
libportaudio.a
libportaudio.la
libportaudio.so
libportaudio.so.2

pacija@kaa:/usr/local/lib % ls | grep libsnd
libsndfile.a
libsndfile.la
libsndfile.so
libsndfile.so.1

etc.

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Yes, there's a bug in our build system that if Mixxx cannot find Qt then it
thinks almost every dependency is missing. Your main issue is that scons
cannot find your Qt installation so you need to point to it with scons
qtdir=/path/to/qt4

On Mon, Feb 25, 2013 at 2:58 AM, Marko Cupać <email address hidden> wrote:

> Hi,
>
> I attached scons output. I see it complains about missing libraries,
> even though I have them installed:
>
> pacija@kaa:/usr/local/lib/portaudio2 % ls
> libportaudio.a
> libportaudio.la
> libportaudio.so
> libportaudio.so.2
>
> pacija@kaa:/usr/local/lib % ls | grep libsnd
> libsndfile.a
> libsndfile.la
> libsndfile.so
> libsndfile.so.1
>
> etc.
>
> ** Attachment added: "scon output"
>
> https://bugs.launchpad.net/mixxx/+bug/1085955/+attachment/3545803/+files/scons-output
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/1085955
>
> Title:
> segmentation fault on FreeBSD 8.3-RELEASE-p5 amd64
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mixxx/+bug/1085955/+subscriptions
>

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

You can see it fail the check for libsndfile here because of missing QtCore:

gcc -o .sconf_temp/conftest_5 .sconf_temp/conftest_5.o -L/usr/lib
-L/usr/local/lib -L/usr/X11R6/lib -lpthread -logg -lvorbis -lQtCore -lQtGui
-lQtOpenGL -lQtXml -lQtNetwork -lQtScript -lsndfile
/usr/bin/ld: cannot find -lQtCore
scons: Configure: no
scons: Configure: Checking for C library libsndfile-1...

On Mon, Feb 25, 2013 at 10:54 AM, RJ Ryan <email address hidden> wrote:

> Yes, there's a bug in our build system that if Mixxx cannot find Qt then
> it thinks almost every dependency is missing. Your main issue is that scons
> cannot find your Qt installation so you need to point to it with scons
> qtdir=/path/to/qt4
>
>
>
> On Mon, Feb 25, 2013 at 2:58 AM, Marko Cupać <email address hidden> wrote:
>
>> Hi,
>>
>> I attached scons output. I see it complains about missing libraries,
>> even though I have them installed:
>>
>> pacija@kaa:/usr/local/lib/portaudio2 % ls
>> libportaudio.a
>> libportaudio.la
>> libportaudio.so
>> libportaudio.so.2
>>
>> pacija@kaa:/usr/local/lib % ls | grep libsnd
>> libsndfile.a
>> libsndfile.la
>> libsndfile.so
>> libsndfile.so.1
>>
>> etc.
>>
>> ** Attachment added: "scon output"
>>
>> https://bugs.launchpad.net/mixxx/+bug/1085955/+attachment/3545803/+files/scons-output
>>
>> --
>> You received this bug notification because you are a member of Mixxx
>> Development Team, which is subscribed to Mixxx.
>> https://bugs.launchpad.net/bugs/1085955
>>
>> Title:
>> segmentation fault on FreeBSD 8.3-RELEASE-p5 amd64
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/mixxx/+bug/1085955/+subscriptions
>>
>
>

Revision history for this message
Marko Cupać (marko-cupac) wrote :

Hm, what can I say, it is right there in /usr/local/lib/qt4/ (see attached file). However, it is called libQtCore, not lQtCore. Path is guessed fine as seen in previous scons output attachment.

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

-lQtCore is the linker flag which means "look for libQtCore in the library
path" so there's no problem there. It looks like /usr/local/lib/qt4/ is not
on the linker path in that command -- can you try:

export LDFLAGS="-L/usr/local/lib/qt4"
scons

I see the guessed Qt path is correct, though I'm not sure why it isn't
being added to the linker path.

On Tue, Feb 26, 2013 at 3:16 PM, Marko Cupać <email address hidden> wrote:

> Hm, what can I say, it is right there in /usr/local/lib/qt4/ (see
> attached file). However, it is called libQtCore, not lQtCore. Path is
> guessed fine as seen in previous scons output attachment.
>
> ** Attachment added: "qt4dir"
>
> https://bugs.launchpad.net/mixxx/+bug/1085955/+attachment/3548121/+files/lsqtdir
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/1085955
>
> Title:
> segmentation fault on FreeBSD 8.3-RELEASE-p5 amd64
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mixxx/+bug/1085955/+subscriptions
>

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Oh nevermind, now I see why /usr/local/lib/qt4 is not added to the link
path. The SCons Qt4 plugin that we use does not support BSD.

On Tue, Feb 26, 2013 at 4:07 PM, RJ Ryan <email address hidden> wrote:

> -lQtCore is the linker flag which means "look for libQtCore in the library
> path" so there's no problem there. It looks like /usr/local/lib/qt4/ is not
> on the linker path in that command -- can you try:
>
> export LDFLAGS="-L/usr/local/lib/qt4"
> scons
>
> I see the guessed Qt path is correct, though I'm not sure why it isn't
> being added to the linker path.
>
>
>
>
> On Tue, Feb 26, 2013 at 3:16 PM, Marko Cupać <email address hidden> wrote:
>
>> Hm, what can I say, it is right there in /usr/local/lib/qt4/ (see
>> attached file). However, it is called libQtCore, not lQtCore. Path is
>> guessed fine as seen in previous scons output attachment.
>>
>> ** Attachment added: "qt4dir"
>>
>> https://bugs.launchpad.net/mixxx/+bug/1085955/+attachment/3548121/+files/lsqtdir
>>
>> --
>> You received this bug notification because you are a member of Mixxx
>> Development Team, which is subscribed to Mixxx.
>> https://bugs.launchpad.net/bugs/1085955
>>
>> Title:
>> segmentation fault on FreeBSD 8.3-RELEASE-p5 amd64
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/mixxx/+bug/1085955/+subscriptions
>>
>
>

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Could you try this patch and just run 'scons' (without the export LDFLAGS from my previous comment).

Revision history for this message
Marko Cupać (marko-cupac) wrote :

No visible improvement, scons still exits because of unmet dependencies.

I am sending you files from mixxx port directory /usr/ports/audio/mixxx/files. These are patches applied when building mixxx on FreeBSD. Unfortunately as far as I am informed mixxx has no official maintainer at the moment, so I do not know who created patches and put them into port dir.

Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/6739

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.