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

polyphone v1.8 built from source -- coredumps with realloc(): invalid pointer: 0x0831b1dc #6

Closed
Corin-EU opened this issue Aug 16, 2017 · 4 comments

Comments

@Corin-EU
Copy link

On Linux Mint 18.2 (based on Ubuntu 16.04) with

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

libqt4-dev 4:4.8.7+dfsg-5ubuntu2

QT_SELECT=4
export QT_SELECT

with polyphone v1.8 built from source immediately crashes on execution.

/usr/local/bin/polyphone
*** Error in `/usr/local/bin/polyphone': realloc(): invalid pointer: 0x0831b1dc ***

backtrace-polyphone.txt

What I do not understant is why polyphone is showing links to Qt5 libraries when built with Qt4, unless these libraries are supposed to be backwards compatible with Qt4.

ldd /usr/local/bin/polyphone  | grep Qt | sort
      libQt5Core.so.5 => /usr/lib/i386-linux-gnu/libQt5Core.so.5 (0xb5047000)
      libQt5Gui.so.5 => /usr/lib/i386-linux-gnu/libQt5Gui.so.5 (0xb550b000)
      libQt5PrintSupport.so.5 => /usr/lib/i386-linux-gnu/libQt5PrintSupport.so.5 (0xb61d3000)
      libQt5Widgets.so.5 => /usr/lib/i386-linux-gnu/libQt5Widgets.so.5 (0xb5a93000)
      libQtCore.so.4 => /usr/lib/i386-linux-gnu/libQtCore.so.4 (0xb6621000)
      libQtGui.so.4 => /usr/lib/i386-linux-gnu/libQtGui.so.4 (0xb6927000)
      libQtSvg.so.4 => /usr/lib/i386-linux-gnu/libQtSvg.so.4 (0xb743e000)

Is it time for polyphone to move to qt5?

@forrcaho
Copy link

I had the same problem on Debian unstable but qmake -qt5 && make produced an executable that works fine. I think that the README should be edited to remove the references to building with QT4 and all will be fine. (I'll leave that to someone who is more familiar with QT.)

@nyanpasu64
Copy link
Contributor

nyanpasu64 commented Sep 8, 2018

I hit this issue myself, still waiting for the README to be fixed...

I had to install libqt5svg5-dev as well.

@forrcaho
Copy link

forrcaho commented Sep 9, 2018

I'll likely submit a pull request during Hacktober if no one else fixes this. I'd really rather someone with more of a clue would do it; the sum total of my knowledge of the subject being in my comment above.

@nyanpasu64
Copy link
Contributor

Actually I already submitted a pr, editing the documentation to install qt5 and run qmake -qt=5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants