[grsec] psql shmctl() failure {Scanned}

General Stone generalstone at o2online.de
Sun Apr 10 07:04:53 EDT 2005


I have straced the postgresql pid on a shutdown, now. This failure
(shmctl()) is only, if I have activate the "destroy_unused_shm" sysctl
option.

Process 16833 attached - interrupt to quit
select(6, [3 4 5], NULL, NULL, {234, 840000}) = ? ERESTARTNOHAND (To be restarted)
--- SIGINT (Interrupt) @ 0 (0) ---
rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN], NULL, 8) = 0
time(NULL)                              = 1113037943
write(2, "2005-04-09 11:12:23 [16833] LOG:"..., 68) = 68
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x52b3fa88) = 26640
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
sigreturn()                             = ? (mask now [])
rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
select(6, [3 4 5], NULL, NULL, {60, 0}) = ? ERESTARTNOHAND (To be restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN], NULL, 8) = 0
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 26640
close(3)                                = 0
close(4)                                = 0
close(5)                                = 0
semctl(1146880, 0, IPC_64|IPC_RMID, 0x5d4612a8) = 0
semctl(1179649, 0, IPC_64|IPC_RMID, 0x5d4612a8) = 0
semctl(1212418, 0, IPC_64|IPC_RMID, 0x5d4612a8) = 0
semctl(1245187, 0, IPC_64|IPC_RMID, 0x5d4612a8) = 0
semctl(1277956, 0, IPC_64|IPC_RMID, 0x5d4612a8) = 0
semctl(1310725, 0, IPC_64|IPC_RMID, 0x5d4612a8) = 0
semctl(1343494, 0, IPC_64|IPC_RMID, 0x5d4612a8) = 0
shmdt(0x51f13000)                       = 0
shmctl(65536, IPC_64|IPC_RMID, 0)       = -1 EINVAL (Invalid argument)
open("/usr/share/locale/de_DE at euro/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de at euro/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de/LC_MESSAGES/libc.mo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=90059, ...}) = 0
mmap2(NULL, 90059, PROT_READ, MAP_PRIVATE, 3, 0) = 0x528f1000
close(3)                                = 0
time(NULL)                              = 1113037946
write(2, "2005-04-09 11:12:26 [16833] LOG:"..., 88) = 88
unlink("/var/run/postgresql/.s.PGSQL.5432") = 0
unlink("/var/run/postgresql/.s.PGSQL.5432.lock") = 0
unlink("/var/lib/postgres/data/postmaster.pid") = 0
exit_group(0)                           = ?
Process 16833 detached
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://grsecurity.net/pipermail/grsecurity/attachments/20050410/6f84f3ae/attachment.pgp


More information about the grsecurity mailing list