Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 13508] gaze search report perm problem incorrectly

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 13508] gaze search report perm problem incorrectly
  • Date: 10 Feb 2007 20:40:49 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=13508





------- Additional Comments From jblosser-smgl AT firinn.org 2007-02-10 14:40
-------
I'm ignoring comment 6 since in the next you got our point that the permission
denied errors are showing for every grimoire, even the ones that don't have
restrictive permissions.

Also, to initially see this, the entire grimoire was masked 0077, not just the
index file. Sorry if these things weren't clear.

I've checked a bit more, and I can't make this error show if only the index is
mode 600, but *it* does show if only the grimoire directory is mode 0700.

% sudo chmod -R a+rX /var/lib/sorcery/codex/stable-0.4
% gaze versions openssl
Grimoire Section Spell Grimoire Version Installed Version
-------- ------- ----- ---------------- -----------------
local - - - -
test crypto openssl 0.9.8d 0.9.8d
stable crypto openssl 0.9.8d -
stable-0.4 crypto openssl 0.9.8c -
games - - - -
z-rejected - - - -
% sudo chmod 700 /var/lib/sorcery/codex/stable-0.4
% gaze versions openssl
*** glibc detected *** gawk: free(): invalid pointer: 0x080a1360 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7e8e702]
/lib/libc.so.6(__libc_free+0x7a)[0xb7e8f91a]
gawk[0x8070813]
gawk[0x8070957]
gawk[0x8070cee]
gawk(do_input+0x39)[0x8071a09]
gawk(main+0x10ea)[0x8075dca]
/lib/libc.so.6(__libc_start_main+0x135)[0xb7e51a69]
gawk[0x804ca31]
======= Memory map: ========
08048000-0809f000 r-xp 00000000 08:02 230713 /bin/gawk
0809f000-080a0000 rw-p 00057000 08:02 230713 /bin/gawk
080a0000-080c6000 rw-p 080a0000 00:00 0 [heap]
b7d00000-b7d21000 rw-p b7d00000 00:00 0
b7d21000-b7e00000 ---p b7d21000 00:00 0
b7e2e000-b7e3a000 r-xp 00000000 fe:00 622603 /usr/lib/libgcc_s.so.1
b7e3a000-b7e3b000 rw-p 0000c000 fe:00 622603 /usr/lib/libgcc_s.so.1
b7e3b000-b7e3c000 rw-p b7e3b000 00:00 0
b7e3c000-b7f21000 r-xp 00000000 08:02 514110 /lib/libc-2.4.so
b7f21000-b7f24000 r--p 000e4000 08:02 514110 /lib/libc-2.4.so
b7f24000-b7f25000 rw-p 000e7000 08:02 514110 /lib/libc-2.4.so
b7f25000-b7f28000 rw-p b7f25000 00:00 0
b7f28000-b7f49000 r-xp 00000000 08:02 514117 /lib/libm-2.4.so
b7f49000-b7f4a000 r--p 00020000 08:02 514117 /lib/libm-2.4.so
b7f4a000-b7f4b000 rw-p 00021000 08:02 514117 /lib/libm-2.4.so
b7f4b000-b7f4d000 r-xp 00000000 08:02 514119 /lib/libdl-2.4.so
b7f4d000-b7f4e000 r--p 00001000 08:02 514119 /lib/libdl-2.4.so
b7f4e000-b7f4f000 rw-p 00002000 08:02 514119 /lib/libdl-2.4.so
b7f5a000-b7f5b000 rw-p b7f5a000 00:00 0
b7f5b000-b7f70000 r-xp 00000000 08:02 516067 /lib/ld-2.4.so
b7f70000-b7f71000 r--p 00015000 08:02 516067 /lib/ld-2.4.so
b7f71000-b7f72000 rw-p 00016000 08:02 516067 /lib/ld-2.4.so
bfcb2000-bfcc7000 rw-p bfcb2000 00:00 0 [stack]
ffffe000-fffff000 ---p 00000000 00:00 0 [vdso]
/var/lib/sorcery/modules/libcodex: line 754:
/var/lib/sorcery/codex/test/codex.index: Permission denied
/var/lib/sorcery/modules/libcodex: line 771: 6182 Broken pipe
find
"$1" -follow -maxdepth 3 -mindepth 3 -perm +700 -name "$2"
/var/lib/sorcery/modules/libcodex: line 756:
/var/lib/sorcery/codex/test/provides.index: Permission denied
/var/lib/sorcery/modules/libcodex: line 754:
/var/lib/sorcery/codex/stable/codex.index: Permission denied
/var/lib/sorcery/modules/libcodex: line 771: 6186 Broken pipe
find
"$1" -follow -maxdepth 3 -mindepth 3 -perm +700 -name "$2"
/var/lib/sorcery/modules/libcodex: line 756:
/var/lib/sorcery/codex/stable/provides.index: Permission denied
find: /var/lib/sorcery/codex/stable-0.4: Permission denied
/var/lib/sorcery/modules/libcodex: line 754:
/var/lib/sorcery/codex/stable-0.4/codex.index: Permission denied
/var/lib/sorcery/modules/libcodex: line 756:
/var/lib/sorcery/codex/stable-0.4/provides.index: Permission denied
/var/lib/sorcery/modules/libcodex: line 754:
/var/lib/sorcery/codex/games/codex.index: Permission denied
/var/lib/sorcery/modules/libcodex: line 756:
/var/lib/sorcery/codex/games/provides.index: Permission denied
/var/lib/sorcery/modules/libcodex: line 754:
/var/lib/sorcery/codex/z-rejected/codex.index: Permission denied
/var/lib/sorcery/modules/libcodex: line 756:
/var/lib/sorcery/codex/z-rejected/provides.index: Permission denied
Eeek, is not a grimoire!
Grimoire Section Spell Grimoire Version Installed Version
-------- ------- ----- ---------------- -----------------
local - - - -
test crypto openssl 0.9.8d 0.9.8d
stable crypto openssl 0.9.8d -
stable-0.4 - - - -
games - - - -
z-rejected - - - -


Notes:

1) gawk doesn't throw up like that on every box I have, but it does do it on
some. whether or not gawk throws up, the rest of the errors are there.
2) "this time" I am getting results back from gaze at the end; I didn't think
I
was before, but I may have just been ctrl-c'ing at the errors. In any case I
can't reproduce getting only errors back so it does work in the end, it just
throws errors that don't make sense, eg
"/var/lib/sorcery/codex/stable/codex.index: Permission denied"

As for what it should do, it should probably check it has permission to the
grimoire dir before trying to search it, if not having permission makes things
blow up this badly. It also seems that these error messages being essentially
incorrect might indicate that some variables are getting confused somewhere,
but
maybe that's only incidental.

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




Archive powered by MHonArc 2.6.24.

Top of Page