Re: [Cooker] Cooker weird behavior
Todd Lyons <[EMAIL PROTECTED]> writes: > Hopefully all my messages combined provides someone a pointer > in the right direction to figure out where it is segfaulting. Yes, there is currently a strange problem with gcc optimization in usermode. Currently, one can either remove package "usermode", so that console authentification will fallback (and it works) and launching programs like userdrake (from console!) is possible again. Rebuilding usermode with -O1 also apparently workarounds the problem. Gwénolé our gcc master planned to look at this problem and fix it, shortly. -- Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/
Re: [Cooker] Cooker weird behavior
Todd Lyons wrote on Fri, Jul 05, 2002 at 09:24:54PM -0700 : > > The interesting thing is that userhelper *is* suid root. Well, removing the suid bit produces this: [todd@fiji ~]$ mcc userhelper must be setuid root Adding the suid bit back produces this: [todd@fiji ~]$ mcc Segmentation fault Hopefully all my messages combined provides someone a pointer in the right direction to figure out where it is segfaulting. Blue skies... Todd -- Todd Lyons -- MandrakeSoft, Inc. http://www.mandrakesoft.com/ UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn Cooker Version mandrake-release-8.3-0.2mdk Kernel 2.4.18-20mdk msg67041/pgp0.pgp Description: PGP signature
Re: [Cooker] Cooker weird behavior
Todd Lyons wrote on Fri, Jul 05, 2002 at 09:17:23PM -0700 : > > Wow, it dies right after receiving an answer from the font server > apparently. Wrong. from 'strace -f': [pid 10885] execve("/usr/sbin/userhelper", ["/usr/sbin/userhelper", "-d", "5,4,2", "-w", "mcc"], [/* 50 vars */]) = 0 [pid 10885] write(2, "userhelper must be setuid root\n", 31userhelper must be setuid root ) = 31 [pid 10885] _exit(6) The interesting thing is that userhelper *is* suid root. Sorry for the very inacurrate original post on my part. Blue skies... Todd -- Todd Lyons -- MandrakeSoft, Inc. http://www.mandrakesoft.com/ UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn Cooker Version mandrake-release-8.3-0.2mdk Kernel 2.4.18-20mdk msg67039/pgp0.pgp Description: PGP signature
Re: [Cooker] Cooker weird behavior
Simone Riccio wrote on Thu, Jul 04, 2002 at 04:41:18PM +0200 : > Here it is... if anyone wants to have a look i attached strace output > connect(3, {sin_family=AF_UNIX, path="/tmp/.X11-unix/X0"}, 19) = 0 Lots of stuff reading in configs A few instances of talking to xfs, then: > write(3, "\2\0\4\0\27\0\300\2\0\10\0\0\275\205\2\1\f\1\4\0\27\0\300"..., 312) = 312 > read(3, "\23\0o\0\27\0\300\2\27\0\300\2\0\0\0\0\0\0\0\0\0\0\0\0"..., 32) = 32 > read(3, "\23\0q\0\24\0\300\2\24\0\300\2\0\370\v\10\250a\\\10\24"..., 32) = 32 > read(3, "\23\0v\0\30\0\300\2\30\0\300\2\0\370\v\10\250a\\\10\30"..., 32) = 32 > read(3, "\23\0{\0\31\0\300\2\31\0\300\2\0\370\v\10\250a\\\10\31"..., 32) = 32 > read(3, "\1\3~\0\0\0\0\0\0\0\0\0\0\0\0\0\20\0\0\0\0\0\0\0\330\33"..., 32) = 32 > --- SIGSEGV (Segmentation fault) --- > +++ killed by SIGSEGV +++ Wow, it dies right after receiving an answer from the font server apparently. A backtrace didn't seem to give much more info than that either: Core was generated by `userdrake'. Program terminated with signal 11, Segmentation fault. #0 0x40120d89 in ?? () (gdb) bt full #0 0x40120d89 in ?? () No symbol table info available. Cannot access memory at address 0x0 Not much there to work with :( Blue skies... Todd -- Todd Lyons -- MandrakeSoft, Inc. http://www.mandrakesoft.com/ UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn Cooker Version mandrake-release-8.3-0.2mdk Kernel 2.4.18-20mdk msg67038/pgp0.pgp Description: PGP signature
Re: [Cooker] Cooker weird behavior
On Thu, 2002-07-04 at 10:14, David Walser wrote: > Don't you hate those? Maybe strace output would be > more helpful. > > --- Simone Riccio <[EMAIL PROTECTED]> wrote: > > already done... it gives a nice Segmentation Fault > > > > > --- Adam Williamson <[EMAIL PROTECTED]> wrote: > > > > > Well somebody should try running it from a user > > shell > > > and see if any messages are printed that could be > > > useful in tracking down the problem. > > > > > > > > > > > > > - > > This email was sent using A&BMail. > > "Certified Virus Free By RAV Antivirus" > > Raicio test build 6 4/7/2002 > > > > > > > > > > __ > Do You Yahoo!? > Sign up for SBC Yahoo! Dial - First Month Free > http://sbc.yahoo.com > Here is the strace I get when I attempt to run mcc as a normal user. -- Joe execve("/usr/X11R6/bin/mcc", ["mcc"], [/* 45 vars */]) = 0 uname({sys="Linux", node="localhost.localdomain", ...}) = 0 brk(0) = 0x804999c open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=77501, ...}) = 0 mmap2(NULL, 77501, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40011000 close(3)= 0 open("/usr/lib/libglib-1.2.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0`\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=159452, ...}) = 0 mmap2(NULL, 162524, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40024000 mprotect(0x4004b000, 2780, PROT_NONE) = 0 mmap2(0x4004b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x26) = 0x4004b000 close(3)= 0 open("/lib/i686/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\201"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=1167240, ...}) = 0 mmap2(NULL, 1179584, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4004c000 mprotect(0x40163000, 36800, PROT_NONE) = 0 mmap2(0x40163000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x117) = 0x40163000 mmap2(0x40168000, 16320, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40168000 close(3)= 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4016c000 munmap(0x40011000, 77501) = 0 execve("/usr/bin/consolehelper-gtk", ["mcc"], [/* 45 vars */]) = 0 uname({sys="Linux", node="localhost.localdomain", ...}) = 0 brk(0) = 0x804dbbc open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=77501, ...}) = 0 mmap2(NULL, 77501, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40011000 close(3)= 0 open("/usr/lib/libgtk-1.2.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\17"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=1546384, ...}) = 0 mmap2(NULL, 1551236, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40024000 mprotect(0x40197000, 31620, PROT_NONE) = 0 mmap2(0x40197000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x172) = 0x40197000 close(3)= 0 open("/usr/lib/libgdk-1.2.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\237\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=241360, ...}) = 0 mmap2(NULL, 240724, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4019f000 mprotect(0x401d9000, 3156, PROT_NONE) = 0 mmap2(0x401d9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x3a) = 0x401d9000 close(3)= 0 open("/usr/lib/libgmodule-1.2.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\v\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0644, st_size=8748, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401da000 mmap2(NULL, 11808, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401db000 mprotect(0x401dd000, 3616, PROT_NONE) = 0 mmap2(0x401dd000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1) = 0x401dd000 close(3)= 0 open("/usr/lib/libglib-1.2.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0`\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=159452, ...}) = 0 mmap2(NULL, 162524, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401de000 mprotect(0x40205000, 2780, PROT_NONE) = 0 mmap2(0x40205000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x26) = 0x40205000 close(3)= 0 open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\30\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=8204, ...}) = 0 mmap2
Re: [Cooker] Cooker weird behavior
Here it is... if anyone wants to have a look i attached strace output > Don't you hate those? Maybe strace output would be > more helpful. - This email was sent using A&BMail. "Certified Virus Free By RAV Antivirus" Raicio test build 6 4/7/2002 execve("/usr//bin/rpmdrake", ["rpmdrake"], [/* 44 vars */]) = 0 uname({sys="Linux", node="opercolo", ...}) = 0 brk(0) = 0x804999c open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=63123, ...}) = 0 mmap2(NULL, 63123, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40011000 close(3)= 0 open("/usr/lib/libglib-1.2.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0`\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=159452, ...}) = 0 mmap2(NULL, 162524, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40021000 mprotect(0x40048000, 2780, PROT_NONE) = 0 mmap2(0x40048000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x26) = 0x40048000 close(3)= 0 open("/lib/i686/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\201"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=1164300, ...}) = 0 mmap2(NULL, 1181088, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40049000 mprotect(0x4016, 38304, PROT_NONE) = 0 mmap2(0x4016, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x116) = 0x4016 mmap2(0x40166000, 13728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40166000 close(3)= 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4016a000 munmap(0x40011000, 63123) = 0 execve("/usr/bin/consolehelper-gtk", ["rpmdrake"], [/* 44 vars */]) = 0 uname({sys="Linux", node="opercolo", ...}) = 0 brk(0) = 0x804dbbc open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=63123, ...}) = 0 mmap2(NULL, 63123, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40011000 close(3)= 0 open("/usr/lib/libgtk-1.2.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\17"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=1546384, ...}) = 0 mmap2(NULL, 1551236, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40021000 mprotect(0x40194000, 31620, PROT_NONE) = 0 mmap2(0x40194000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x172) = 0x40194000 close(3)= 0 open("/usr/lib/libgdk-1.2.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\237\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=241360, ...}) = 0 mmap2(NULL, 240724, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4019c000 mprotect(0x401d6000, 3156, PROT_NONE) = 0 mmap2(0x401d6000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x3a) = 0x401d6000 close(3)= 0 open("/usr/lib/libgmodule-1.2.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\v\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0644, st_size=8748, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401d7000 mmap2(NULL, 11808, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401d8000 mprotect(0x401da000, 3616, PROT_NONE) = 0 mmap2(0x401da000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1) = 0x401da000 close(3)= 0 open("/usr/lib/libglib-1.2.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0`\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=159452, ...}) = 0 mmap2(NULL, 162524, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401db000 mprotect(0x40202000, 2780, PROT_NONE) = 0 mmap2(0x40202000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x26) = 0x40202000 close(3)= 0 open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\30\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=8220, ...}) = 0 mmap2(NULL, 11152, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40203000 mprotect(0x40205000, 2960, PROT_NONE) = 0 mmap2(0x40205000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1) = 0x40205000 close(3)= 0 open("/usr/X11R6/lib/libXi.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\23"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=28944, ...}) = 0 mmap2(NULL, 32160, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40206000 mprotect(0x4020d000, 3488, PROT_NONE) = 0 mmap2(0x4020d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP
Re: [Cooker] Cooker weird behavior
Don't you hate those? Maybe strace output would be more helpful. --- Simone Riccio <[EMAIL PROTECTED]> wrote: > already done... it gives a nice Segmentation Fault > > > --- Adam Williamson <[EMAIL PROTECTED]> wrote: > > > Well somebody should try running it from a user > shell > > and see if any messages are printed that could be > > useful in tracking down the problem. > > > > > > > - > This email was sent using A&BMail. > "Certified Virus Free By RAV Antivirus" > Raicio test build 6 4/7/2002 > > > > __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
Re: [Cooker] Cooker weird behavior
already done... it gives a nice Segmentation Fault > --- Adam Williamson <[EMAIL PROTECTED]> wrote: > Well somebody should try running it from a user shell > and see if any messages are printed that could be > useful in tracking down the problem. > - This email was sent using A&BMail. "Certified Virus Free By RAV Antivirus" Raicio test build 6 4/7/2002
Re: [Cooker] Cooker weird behavior
--- Adam Williamson <[EMAIL PROTECTED]> wrote: > On Thu, 2002-07-04 at 11:42, Joseph Davidson wrote: > > > On Thu, 2002-07-04 at 07:11, Simone Riccio wrote: > > > Is anybody experiencing this? > > > All the tools that require a prompt for root > password just blink once and > > > disappear, in example if i click on an rpm the > root pass prompt appears > > > for a tenth of second and then vanishes... > that's the same with control > > > center... > > > > > > > > I'm getting the same thing. It started happening > when I reinstalled cooker a week ago. > > I get it too. Just run such utils from a root > console instead... Well somebody should try running it from a user shell and see if any messages are printed that could be useful in tracking down the problem. __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
Re: [Cooker] Cooker weird behavior
On Thu, 2002-07-04 at 11:42, Joseph Davidson wrote: > On Thu, 2002-07-04 at 07:11, Simone Riccio wrote: > > Is anybody experiencing this? > > All the tools that require a prompt for root password just blink once and > > disappear, in example if i click on an rpm the root pass prompt appears > > for a tenth of second and then vanishes... that's the same with control > > center... > > > > > I'm getting the same thing. It started happening when I reinstalled cooker a week >ago. I get it too. Just run such utils from a root console instead... -- adamw
Re: [Cooker] Cooker weird behavior
On Thursday 04 Jul 2002 12:11, Simone Riccio wrote: > Is anybody experiencing this? > All the tools that require a prompt for root password just blink once > and disappear, in example if i click on an rpm the root pass prompt > appears for a tenth of second and then vanishes... that's the same with > control center... > Yep - me too(tm). Been happening for some time now. If you su to root in a terminal and issue "mcc" that works. It must be the su wrapper at fault. -- Mandrake Linux release 8.2 (Bluebird) for i586. Linux user 275590. AMD Athlon(tm) XP 1600+ 512MB Kernel: 2.4.18-6mdk-pnr-win4lin KDE: 3.0.1 Qt: 3.0.4 up 18 hours 14 minutes. ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Re: [Cooker] Cooker weird behavior
On Thu, 2002-07-04 at 07:11, Simone Riccio wrote: > Is anybody experiencing this? > All the tools that require a prompt for root password just blink once and > disappear, in example if i click on an rpm the root pass prompt appears > for a tenth of second and then vanishes... that's the same with control > center... > > > > - > This email was sent using A&BMail. > "Certified Virus Free By RAV Antivirus" > Raicio test build 6 4/7/2002 > > > > I'm getting the same thing. It started happening when I reinstalled cooker a week ago. -- Joe