Your message dated Mon, 11 May 2009 19:13:04 +0100
with message-id <[email protected]>
and subject line scrollkeeper has been removed from Debian, closing #127506
has caused the Debian Bug report #127506,
regarding scrollkeeper-install segfaults, scrollkeeper-update fails to notice
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
127506: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=127506
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: scrollkeeper
Version: 0.2-6
Severity: normal
While preparing a new doc-linux release, I installed the OMF file at
http://people.debian.org/~cjwatson/broken.omf into
/usr/share/omf/doc-linux-html/HOWTOs.omf and ran scrollkeeper-update. It
appeared to succeed, but it didn't actually appear to have registered
anything with scrollkeeper, so I investigated further. This revealed
that scrollkeeper-install was segfaulting, but scrollkeeper-update
didn't mention this and exited with status 0 anyway.
This OMF file is invalid in various ways, but (a) -install shouldn't
segfault, and (b) -update should check the return status of system() and
so notice if it does.
It appears that the segfault occurs whenever scrollkeeper-install
encounters a document without the required <language code="C"/>, and
similarly for <identifier url="foo"/> and <format mime="foo/bar"/>.
Every time it calls get_doc_property(), it should be careful to check
that it doesn't return NULL.
Here's a transcript:
arborlon:~# scrollkeeper-update -v
scrollkeeper-install -v -p /var/lib/scrollkeeper
/usr/share/omf/doc-linux-html/HOWTOs.omf
arborlon:~# echo $?
0
arborlon:~# scrollkeeper-install -v -p /var/lib/scrollkeeper
/usr/share/omf/doc-linux-html/HOWTOs.omf
Segmentation fault
arborlon:~# echo $?
139
arborlon:~# strace scrollkeeper-install -v -p /var/lib/scrollkeeper
/usr/share/omf/doc-linux-html/HOWTOs.omf
[...]
open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a
directory)
open("/var/lib/scrollkeeper", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents64(0x3, 0x805ce58, 0x1000, 0) = 2480
close(3) = 0
stat64("/var/lib/scrollkeeper/TOC", {st_mode=S_IFDIR|0755, st_size=4096, ...})
= 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
GDB session:
(gdb) run -v -p /var/lib/scrollkeeper /usr/share/omf/doc-linux-html/HOWTOs.omf
Starting program:
/home/cjwatson/src/debian/doc-linux/scrollkeeper-0.2/cl/src/.libs/scrollkeeper-install
-v -p /var/lib/scrollkeeper /usr/share/omf/doc-linux-html/HOWTOs.omf
Program received signal SIGSEGV, Segmentation fault.
0x08048f1a in get_best_locale_dir (
locale_dir=0xbfffeaec "\034???v\002\...@x?\005\b",
locale_name=0xbfffe9ec "",
scrollkeeper_dir=0xbffff77c "/var/lib/scrollkeeper", locale=0x0)
at install.c:56
56 dest_dir = malloc (strlen (scrollkeeper_dir) + strlen (locale) + 2);
(gdb) bt
#0 0x08048f1a in get_best_locale_dir (
locale_dir=0xbfffeaec "\034???v\002\...@x?\005\b",
locale_name=0xbfffe9ec "",
scrollkeeper_dir=0xbffff77c "/var/lib/scrollkeeper", locale=0x0)
at install.c:56
#1 0x080491d9 in insert_docs_in_content_list (
omf_name=0xbffffa82 "/usr/share/omf/doc-linux-html/HOWTOs.omf",
omf_doc=0x805a560, scrollkeeper_dir=0xbffff77c "/var/lib/scrollkeeper")
at install.c:170
#2 0x08049ec3 in main (argc=5, argv=0xbffff8e4) at install.c:618
#3 0x400be65f in __libc_start_main () from /lib/libc.so.6
(gdb) p scrollkeeper_dir
$1 = 0xbffff77c "/var/lib/scrollkeeper"
(gdb) p locale
$2 = 0x0
Thanks,
--
Colin Watson [[email protected]]
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux arborlon 2.4.10 #1 Sun Sep 23 22:35:53 BST 2001 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages scrollkeeper depends on:
ii libc6 2.2.4-7 GNU C Library: Shared libraries an
ii libscrollkeeper0 0.2-6 Library to load .omf files (runtim
ii libxml1 1:1.8.16-1 GNOME XML library
ii zlib1g 1:1.1.3-18 compression library - runtime
--- End Message ---
--- Begin Message ---
Version: 0.3.14-16+rm
The scrollkeeper package has been removed from Debian so we are closing
the bugs that were still opened against it.
For more information about this package's removal, read
http://bugs.debian.org/526608 . That bug might give the reasons why
this package was removed, and suggestions of possible replacements.
Don't hesitate to reply to this mail if you have any question.
Thank you for your contribution to Debian.
Kind regards,
--
Marco Rodrigues
--- End Message ---