View previous topic :: View next topic |
Author |
Message |
gorg86 Apprentice
Joined: 20 May 2011 Posts: 299
|
Posted: Sun Jun 03, 2018 7:38 am Post subject: [SOLVED] Please fix/update the Notepadqq 1.4.8 ebuild maybe? |
|
|
Hello,
When I install Notepadqq 1.4.8 through portage it crashes after being started with the error "Segmentation fault".
But when I follow the instructions here https://github.com/notepadqq/notepadqq#build-it-yourself (you have to emerge qtwebsockets additionally for it to work) and start it, then it runs just fine.
I don't know what is causing the program to crash when installed through portage.
Anybody experiencing the same issue?
Thx
Last edited by gorg86 on Tue Aug 07, 2018 10:42 pm; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30915 Location: here
|
Posted: Sun Jun 03, 2018 8:18 am Post subject: |
|
|
I tried to install in my system and seems work without segfault.
You can post your emerge --info? Maybe some cflags that cause that? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
gorg86 Apprentice
Joined: 20 May 2011 Posts: 299
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30915 Location: here
|
Posted: Sun Jun 03, 2018 9:25 am Post subject: |
|
|
cflags seems ok, at this point you should debugging program with gdb _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
gorg86 Apprentice
Joined: 20 May 2011 Posts: 299
|
Posted: Sun Jun 03, 2018 8:35 pm Post subject: |
|
|
This is what I get:
gdb --args notepadqq
Code: | GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
"/usr/bin/notepadqq": not in executable format: File format not recognized
(gdb) run
Starting program:
No executable file specified.
Use the "file" or "exec-file" command.
(gdb)
|
I tried gdb with other programs and it works fine, just with notepadqq it says Code: | "/usr/bin/notepadqq": not in executable format: File format not recognized |
I can't find a build.log but this is being printed on the screen while emering notepadqq: https://pastebin.com/KRSa1268 |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30915 Location: here
|
Posted: Mon Jun 04, 2018 5:27 am Post subject: |
|
|
It's correct because notepadqq is a bash script, you should run with command notepadqq-bin (the real compiled executable) _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
gorg86 Apprentice
Joined: 20 May 2011 Posts: 299
|
Posted: Mon Jun 04, 2018 4:05 pm Post subject: |
|
|
lol ok, now I get this:
gdb --args /usr/lib64/notepadqq/notepadqq-bin
Code: | GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib64/notepadqq/notepadqq-bin...done.
(gdb) run
Starting program: /usr/lib64/notepadqq/notepadqq-bin
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe6dc2700 (LWP 8577)]
[New Thread 0x7fffdd4c3700 (LWP 8578)]
[New Thread 0x7fffdccc2700 (LWP 8579)]
[New Thread 0x7fffd7fff700 (LWP 8580)]
[New Thread 0x7fff8fffd700 (LWP 8581)]
[New Thread 0x7fff8f7fc700 (LWP 8582)]
[New Thread 0x7fff8effb700 (LWP 8583)]
[New Thread 0x7fff8e7fa700 (LWP 8584)]
[New Thread 0x7fff8dff9700 (LWP 8585)]
[New Thread 0x7fff8d7f8700 (LWP 8586)]
[New Thread 0x7fff8cff7700 (LWP 8587)]
[New Thread 0x7fff77fff700 (LWP 8588)]
[New Thread 0x7fff777fe700 (LWP 8589)]
Thread 1 "notepadqq-bin" received signal SIGSEGV, Segmentation fault.
0x00007ffff6642f8e in ?? () from /usr/lib64/libQt5WebKit.so.5 |
Code: | (gdb) bt
#0 0x00007ffff6642f8e in ?? () from /usr/lib64/libQt5WebKit.so.5
#1 0x00007ffff66441db in JSC::JSRopeString::resolveRope(JSC::ExecState*) const () from /usr/lib64/libQt5WebKit.so.5
#2 0x00007ffff634e923 in JSValueToStringCopy () from /usr/lib64/libQt5WebKit.so.5
#3 0x00007ffff5207b2d in ?? () from /usr/lib64/libQt5WebKit.so.5
#4 0x00007ffff5209d53 in ?? () from /usr/lib64/libQt5WebKit.so.5
#5 0x00007ffff520a628 in ?? () from /usr/lib64/libQt5WebKit.so.5
#6 0x00007ffff632f021 in ?? () from /usr/lib64/libQt5WebKit.so.5
#7 0x00007ffff65164ae in ?? () from /usr/lib64/libQt5WebKit.so.5
#8 0x00007ffff651e4d9 in ?? () from /usr/lib64/libQt5WebKit.so.5
#9 0x0000000000000005 in ?? ()
#10 0xaaaaaaaaaaaaaaab in ?? ()
#11 0x00007fffffffbca0 in ?? ()
#12 0x00007ffff664d615 in ?? () from /usr/lib64/libQt5WebKit.so.5
[...] |
Maybe the error is somehow related to this: https://github.com/notepadqq/notepadqq/issues/496 or this https://github.com/notepadqq/notepadqq/issues/593 |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30915 Location: here
|
Posted: Mon Jun 04, 2018 4:48 pm Post subject: |
|
|
It's strange that there is need a qt patch to make notepadqq work.
What version notepadqq you installed? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
gorg86 Apprentice
Joined: 20 May 2011 Posts: 299
|
Posted: Mon Jun 04, 2018 4:53 pm Post subject: |
|
|
1.4.8 |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30915 Location: here
|
|
Back to top |
|
|
gorg86 Apprentice
Joined: 20 May 2011 Posts: 299
|
Posted: Mon Jun 04, 2018 5:18 pm Post subject: |
|
|
Apparently they fixed the bug but portage downloads a source where it wasn't implemented yet. I just emerged notepadqq-9999 and it works. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30915 Location: here
|
Posted: Mon Jun 04, 2018 5:23 pm Post subject: |
|
|
gorg86 wrote: | Apparently they fixed the bug but portage downloads a source where it wasn't implemented yet. I just emerged notepadqq-9999 and it works. |
Yes isn't implemented for this you can use /etc/portage/patches for apply a patch.
Anyway is better use a new notepadqq version because is it that has a problem _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Tue Jun 05, 2018 5:02 pm Post subject: |
|
|
gorg86 wrote: | Apparently they fixed the bug but portage downloads a source where it wasn't implemented yet. I just emerged notepadqq-9999 and it works. |
1.4.8 is the latest release made available by upstream. |
|
Back to top |
|
|
|