Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283508 - app-editors/joe-3.7: SIGSEGV when opening multiple new files
Summary: app-editors/joe-3.7: SIGSEGV when opening multiple new files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tom Knight (RETIRED)
URL: http://joe-editor.cvs.sourceforge.net...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-02 12:17 UTC by Martin von Gagern
Modified: 2010-01-16 22:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
diff of joe-current/main/main.c 1.5 to 1.6 (joe-3.7_main.c-3.6.patch,562 bytes, patch)
2009-10-30 14:45 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2009-09-02 12:17:51 UTC
$ jmacs new_file_1 new_file_2
Processing '/etc/joe/jmacsrc'...Processing '/etc/joe/ftyperc'...done
done
Segmentation fault

According to gdb, the error occurs in main.c:434 which reads
  p_goto_bol(bw->cursor);
One can easily see that bw in this case will always be NULL.
Upstream has commited a fix, but not released it yet:
http://joe-editor.cvs.sourceforge.net/viewvc/joe-editor/joe-current/main/main.c?r1=1.5&r2=1.6

Applying that patch to the joe sources fixed the issue for me.
I guess it would make sense to include that patch in a revbump until a new version gets officially released.
Comment 1 Martin von Gagern 2009-10-30 14:36:15 UTC
I repeatedly asked for a new upstream release, without reply so far:
http://thread.gmane.org/gmane.editors.joe/503
https://sourceforge.net/projects/joe-editor/forums/forum/131147/topic/3445084

I also encountered and reported the same bug for Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/joe/+bug/444550
Comment 2 Martin von Gagern 2009-10-30 14:45:49 UTC
Created attachment 208738 [details, diff]
diff of joe-current/main/main.c 1.5 to 1.6

This patch is just the changeset required to fix this bug here, as pointed out in comment #0. Simply applying it should be enough.

$ cd joe-current/main; cvs diff -r 1.5 -r 1.6 main.c
Comment 3 Pacho Ramos gentoo-dev 2010-01-16 22:39:55 UTC
3.7-r1 released with the patch. Thanks!