-
Notifications
You must be signed in to change notification settings - Fork 47
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
Usage of g_error
in source code causes core dumps
#221
Comments
Can you get a backtrace for this? |
Is this ok? |
Ok, I can reproduce this. sudo touch /tmp/root.torrent
sudo chmod 600 /tmp/root.torrent Try to open Well...
ok then, gotta drop that. |
grep -nE 'g_error\(' src/*.c
src/requests.c:273: g_error("unable to base64 encode file \"%s\".", target);
src/trg-file-parser.c:192: g_error("%s", error->message);
src/trg-prefs.c:422: g_error("Problem creating parent directory (permissions?) for: %s\n", priv->file);
src/trg-prefs.c:448: g_error("Problem writing configuration file (permissions?) to: %s", priv->file);
src/util.c:190: g_error("%s", error->message); I think a proper solution is doing something like #170, but for all of these. The trouble is I am not familiar with libgd (or honestly a lot of deeper GTK stuff) and I would have to experiment a lot. Really this code base needs a lot of refactoring. |
g_error
in source code causes core dumps
transmission-daemon-4.0.2-1.fc37.x86_64
transmission-remote-gtk-1.5.1-2.fc37.x86_64
Prerequisites:
Looks like it is standard linux layout.
Steps to reproduce the crash:
Voilà. transmission-remote-gtk crashed. In the terminal:
It is not a big problem, but transmission-remote-gtk should not crash if it can't open a torrent file anyway.
The text was updated successfully, but these errors were encountered: