[Bug 230786] New: scrollkeeper segfaults due to missing dir /var/lib/scrollkeeper
https://bugzilla.novell.com/show_bug.cgi?id=230786 Summary: scrollkeeper segfaults due to missing dir /var/lib/scrollkeeper Product: openSUSE 10.2 Version: Final Platform: i686 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: richard.bos@xs4all.nl QAContact: qa@suse.de BugsThisDependsOn: 230785 The package gramps (from opensuse's buildserver) pulls in the package scrollkeeper. During the post install script scrollkeeper-update is run, but it results in a segmentation fault. This is reproducable outside the rpm post install script. If this is done with strace scrollkeeper-update, the result is: read(3, "/usr/share/scrollkeeper\n", 4096) = 24 close(3) = 0 waitpid(11987, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 11987 --- SIGCHLD (Child exited) @ 0 (0) --- munmap(0xb7f88000, 4096) = 0 open("/var/lib/scrollkeeper", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory) stat64("var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("/scrollkeeper", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/var/lib/scrollkeeper", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory) --- SIGSEGV (Segmentation fault) @ 0 (18) --- +++ killed by SIGSEGV +++ Process 11985 detached After creating the directory /var/lib/scrollkeeper, scrollkeeper-update just run fine... To my opinion scrollkeeper-update should not segfault when a required directory is missing, but create it instead. Current workaround is that the gramps rpm is creating the /var/lib/scrollkeeper directory, before scrollkeeper-update is run. I would think that the scrollkeeper pkg should provide the /var/lib/scrollkeeper directory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230786 richard.bos@xs4all.nl changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |230787 nThis| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230786 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |bnc-team-gnome@forge.provo.novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230786 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO|230787 | nThis| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230786 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |230787 nThis| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230786 jpr@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |sbrabec@novell.com |gnome@forge.provo.novell.com| -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230786 prusnak@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230786 prusnak@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn|230785 | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230786 prusnak@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO|230787 | nThis| | Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #1 from prusnak@novell.com 2007-01-10 07:28 MST ------- scrollkeeper-update actually _is_ creating directory when it is missing. It should assure that directories {/var, /var/lib, /var/lib/scrollkeeper} exist and if not create them. But because of bug it tries to check directories {var, /lib, /scrollkeeper}. (stat64 lines in your strace). Situation after fix: open("/var/lib/scrollkeeper", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory) stat("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/var/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/var/lib/scrollkeeper", 0x7fffedf951f0) = -1 ENOENT (No such file or directory) mkdir("/var/lib/scrollkeeper", 0755) = 0 open("/var/lib/scrollkeeper", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3 Thanks for the report, I have also notified upstream. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230786 jpr@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clint@traveljury.com ------- Comment #2 from jpr@novell.com 2007-02-12 08:14 MST ------- *** Bug 228843 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com