Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segmentation fault on FreeBSD 8.3-RELEASE-p5 amd64 #6739

Closed
mixxxbot opened this issue Aug 22, 2022 · 17 comments
Closed

segmentation fault on FreeBSD 8.3-RELEASE-p5 amd64 #6739

mixxxbot opened this issue Aug 22, 2022 · 17 comments

Comments

@mixxxbot
Copy link
Collaborator

Reported by: marko-cupac
Date: 2012-12-03T13:20:05Z
Status: Expired
Importance: Low
Launchpad Issue: lp1085955
Tags: bsd, opengl
Attachments: gdb, glxgears.png, config.log, [scon output](https://bugs.launchpad.net/bugs/1085955/+attachment/3545803/+files/scon output), qt4dir, bsd.patch, [filesdir content](https://bugs.launchpad.net/bugs/1085955/+attachment/3549423/+files/filesdir content)


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

@mixxxbot
Copy link
Collaborator Author

Commented by: kain88-de
Date: 2012-12-03T13:57:29Z


could you generate a backtrace and upload it?

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

@mixxxbot
Copy link
Collaborator Author

Commented by: marko-cupac
Date: 2012-12-03T22:47:05Z
Attachments: gdb


Here it is:

@mixxxbot
Copy link
Collaborator Author

Commented by: rryan
Date: 2012-12-03T23:01:16Z


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

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

@mixxxbot
Copy link
Collaborator Author

Commented by: daschuer
Date: 2012-12-04T10:08:05Z


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

@mixxxbot
Copy link
Collaborator Author

Commented by: marko-cupac
Date: 2012-12-04T10:59:32Z
Attachments: glxgears.png


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.

@mixxxbot
Copy link
Collaborator Author

Commented by: janitor
Date: 2013-02-03T04:17:16Z


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

@mixxxbot
Copy link
Collaborator Author

Commented by: marko-cupac
Date: 2013-02-23T23:08:37Z
Attachments: config.log


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

@mixxxbot
Copy link
Collaborator Author

Commented by: rryan
Date: 2013-02-24T21:38:43Z


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ć 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

@mixxxbot
Copy link
Collaborator Author

Commented by: marko-cupac
Date: 2013-02-25T07:58:00Z
Attachments: [scon output](https://bugs.launchpad.net/mixxx/+bug/1085955/+attachment/3545803/+files/scon output)


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.

@mixxxbot
Copy link
Collaborator Author

Commented by: rryan
Date: 2013-02-25T15:54:16Z


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ć 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

@mixxxbot
Copy link
Collaborator Author

Commented by: rryan
Date: 2013-02-25T15:56:29Z


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 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ć 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

@mixxxbot
Copy link
Collaborator Author

Commented by: marko-cupac
Date: 2013-02-26T20:16:41Z
Attachments: qt4dir


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.

@mixxxbot
Copy link
Collaborator Author

Commented by: rryan
Date: 2013-02-26T21:07:01Z


-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ć 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

@mixxxbot
Copy link
Collaborator Author

Commented by: rryan
Date: 2013-02-26T21:09:13Z


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 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ć 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

@mixxxbot
Copy link
Collaborator Author

Commented by: rryan
Date: 2013-02-26T21:14:51Z
Attachments: bsd.patch


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

@mixxxbot
Copy link
Collaborator Author

Commented by: marko-cupac
Date: 2013-02-27T11:13:49Z
Attachments: [filesdir content](https://bugs.launchpad.net/mixxx/+bug/1085955/+attachment/3549423/+files/filesdir content)


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.

@mixxxbot
Copy link
Collaborator Author

Issue closed with status Expired.

@mixxxbot mixxxbot transferred this issue from another repository Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant