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

texstudio-3.0.0 segfaults at startup #1244

Closed
grozin opened this issue Sep 2, 2020 · 13 comments
Closed

texstudio-3.0.0 segfaults at startup #1244

grozin opened this issue Sep 2, 2020 · 13 comments

Comments

@grozin
Copy link

grozin commented Sep 2, 2020

Environment

  • TeXstudio: 3.0.0
  • Qt: 5.15.0
  • OS: Gentoo Linux
  • TeX distribution: texlive-2020

Actual behavior

grozin@bilbo ~ $ texstudio
Segmentation fault
grozin@bilbo ~ $ gdb texstudio
GNU gdb (Gentoo 9.2 vanilla) 9.2
Copyright (C) 2020 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 texstudio...
(No debugging symbols found in texstudio)
(gdb) r
Starting program: /usr/bin/texstudio
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffef84e640 (LWP 19119)]
[New Thread 0x7fffedc69640 (LWP 19120)]
[New Thread 0x7fffed468640 (LWP 19121)]
[New Thread 0x7fffecc67640 (LWP 19122)]
[New Thread 0x7fffdffff640 (LWP 19123)]
[New Thread 0x7fffdf7fe640 (LWP 19124)]
[New Thread 0x7fffdeffd640 (LWP 19125)]
[New Thread 0x7fffde7fc640 (LWP 19126)]
[New Thread 0x7fffddffb640 (LWP 19127)]
[New Thread 0x7fffdd7fa640 (LWP 19128)]
[New Thread 0x7fffbf16e640 (LWP 19129)]
[New Thread 0x7fffb7fff640 (LWP 19130)]
[New Thread 0x7fffbe96d640 (LWP 19131)]
[New Thread 0x7fffbe16c640 (LWP 19132)]
[New Thread 0x7fffbd96b640 (LWP 19133)]
[Detaching after fork from child process 19134]
[Detaching after vfork from child process 19135]

Thread 1 "texstudio" received signal SIGSEGV, Segmentation fault.
0x0000555555852127 in ManhattanStyle::event(QEvent*) ()
(gdb) bt
#0 0x0000555555852127 in ManhattanStyle::event(QEvent*) ()
#1 0x00007ffff729e0bf in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#2 0x00007ffff64e4758 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#3 0x00007ffff651154d in QObject::setProperty(char const*, QVariant const&) () from /usr/lib64/libQt5Core.so.5
#4 0x00005555558521a3 in ManhattanStyle::ManhattanStyle(QString const&) ()
#5 0x000055555575bc6d in ConfigManager::setInterfaceStyle() ()
#6 0x0000555555782afe in ConfigManager::readSettings(bool) ()
#7 0x0000555555926780 in Texstudio::readSettings(bool) ()
#8 0x000055555592c389 in Texstudio::Texstudio(QWidget*, QFlagsQt::WindowType, QSplashScreen*) ()
#9 0x000055555584dd00 in TexstudioApp::init(QStringList&) ()
#10 0x00005555556e77ef in main ()
(gdb)

@sunderme
Copy link
Member

sunderme commented Sep 2, 2020

you should try to remove texstudio.ini

@grozin
Copy link
Author

grozin commented Sep 2, 2020

I have no texstudio.ini:
grozin@bilbo ~ $ locate texstudio.ini
grozin@bilbo ~ $ strace -f -e file texstudio 2>&1 | fgrep texstudio.ini
[pid 2716] access("/home/grozin/.config/texstudio/texstudio.ini", F_OK) = -1 ENOENT (No such file or directory)
[pid 2716] statx(AT_FDCWD, "/home/grozin/.config/texstudio/texstudio.ini", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd6f51e360) = -1 ENOENT (No such file or directory)
[pid 2716] statx(AT_FDCWD, "/home/grozin/.config/texstudio/texstudio.ini", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd6f51e300) = -1 ENOENT (No such file or directory)
[pid 2716] access("/home/grozin/.config/texstudio.ini", F_OK) = -1 ENOENT (No such file or directory)
[pid 2716] statx(AT_FDCWD, "/home/grozin/.config/texstudio.ini", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd6f51e360) = -1 ENOENT (No such file or directory)
[pid 2716] statx(AT_FDCWD, "/home/grozin/.config/texstudio.ini", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd6f51e300) = -1 ENOENT (No such file or directory)
[pid 2716] access("/etc/xdg/texstudio/texstudio.ini", F_OK) = -1 ENOENT (No such file or directory)
[pid 2716] statx(AT_FDCWD, "/etc/xdg/texstudio/texstudio.ini", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd6f51e360) = -1 ENOENT (No such file or directory)
[pid 2716] statx(AT_FDCWD, "/etc/xdg/texstudio/texstudio.ini", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd6f51e300) = -1 ENOENT (No such file or directory)
[pid 2716] access("/etc/xdg/texstudio.ini", F_OK) = -1 ENOENT (No such file or directory)
[pid 2716] statx(AT_FDCWD, "/etc/xdg/texstudio.ini", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd6f51e360) = -1 ENOENT (No such file or directory)
[pid 2716] statx(AT_FDCWD, "/etc/xdg/texstudio.ini", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd6f51e300) = -1 ENOENT (No such file or directory)
grozin@bilbo ~ $

@muzimuzhi
Copy link
Contributor

A bit off-topic: to avoid unnecessary refer and back-ref info to issue/pull requests numbered from 1 to 10, perhaps you can surround stdout in #1244 (comment) containing #1 to #10 in markdown's code block.

@sunderme
Copy link
Member

sunderme commented Sep 2, 2020

where is txs coming from ? It is none of my builds.

@grozin
Copy link
Author

grozin commented Sep 2, 2020

Just compiled 3.0.1. Nothing changed.

@grozin
Copy link
Author

grozin commented Sep 2, 2020

What's txs?

@sunderme
Copy link
Member

sunderme commented Sep 2, 2020

texstudio

@sunderme
Copy link
Member

sunderme commented Sep 2, 2020

as it works here, also with qt 5.15, there is really nothing I can do.
maybe you should try the appimage ? https://github.com/texstudio-org/texstudio/releases/download/3.0.1/texstudio-3.0.1-x86_64.AppImage

@grozin
Copy link
Author

grozin commented Sep 2, 2020

Gentoo is a source-based distro. Each package is compiled on the user's computer.

@sunderme
Copy link
Member

sunderme commented Sep 2, 2020

and the source is unchanged ?

@grozin
Copy link
Author

grozin commented Sep 3, 2020

Unchanged.
Recompiled 3.0.1 with -O0 -ggdb, now I have slightly more information:

(gdb) r
Starting program: /usr/bin/texstudio 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffef84e640 (LWP 28936)]
[New Thread 0x7fffedc69640 (LWP 28937)]
[New Thread 0x7fffed468640 (LWP 28938)]
[New Thread 0x7fffecc67640 (LWP 28939)]
[New Thread 0x7fffdffff640 (LWP 28940)]
[New Thread 0x7fffdf7fe640 (LWP 28941)]
[New Thread 0x7fffdeffd640 (LWP 28942)]
[New Thread 0x7fffde7fc640 (LWP 28943)]
[New Thread 0x7fffddffb640 (LWP 28944)]
[New Thread 0x7fffdd7fa640 (LWP 28945)]
[New Thread 0x7fffbf16e640 (LWP 28946)]
[New Thread 0x7fffbe96d640 (LWP 28947)]
[New Thread 0x7fffbe16c640 (LWP 28948)]
[New Thread 0x7fffbd96b640 (LWP 28949)]
[New Thread 0x7fffbd16a640 (LWP 28950)]
[Detaching after fork from child process 28951]
[Detaching after vfork from child process 28952]

Thread 1 "texstudio" received signal SIGSEGV, Segmentation fault.
ManhattanStyle::event (this=0x555556b6ad30, e=0x7fffffffd300) at src/manhattanstyle.cpp:1078
1078    src/manhattanstyle.cpp: No such file or directory.
(gdb) bt
#0  ManhattanStyle::event (this=0x555556b6ad30, e=0x7fffffffd300) at src/manhattanstyle.cpp:1078
#1  0x00007ffff729e0bf in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#2  0x00007ffff64e4758 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#3  0x00007ffff651154d in QObject::setProperty(char const*, QVariant const&) () from /usr/lib64/libQt5Core.so.5
#4  0x000055555596b164 in ManhattanStyle::ManhattanStyle (this=0x555556b6ad30, baseStyleName=...) at src/manhattanstyle.cpp:131
#5  0x0000555555858b1d in ConfigManager::setInterfaceStyle (this=0x555556718698) at src/configmanager.cpp:2688
#6  0x0000555555845ffc in ConfigManager::readSettings (this=0x555556718698, reread=false) at src/configmanager.cpp:1189
#7  0x0000555555a44f58 in Texstudio::readSettings (this=0x555556718450, reread=false) at src/texstudio.cpp:3978
#8  0x0000555555a0e41b in Texstudio::Texstudio (this=0x555556718450, parent=0x0, flags=..., splash=0x555556584d30) at src/texstudio.cpp:165
#9  0x0000555555967b9e in TexstudioApp::init (this=0x7fffffffdb00, cmdLine=...) at src/main.cpp:79
#10 0x0000555555968af4 in main (argc=1, argv=0x7fffffffdc48) at src/main.cpp:216
(gdb)

Of course, I can recompile also Qt-5.15 with -O0 -ggdb, but this is rather much work (I have a large number of Qt-dependent programs, e.g., I use lumina desktop environment, and generally prefer Qt over gtk, so that I'll have to recompile it back with -O2 after this experiment).

@grozin
Copy link
Author

grozin commented Sep 3, 2020

Forgot to say: when I simply rum texstudio, the splash screen appears and immediately disappears. When I run it under gdb, the splash screen appears and stays until I quit gdb.

@sunderme
Copy link
Member

works on all other platforms ... nothing I can do

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

3 participants