|
From: Malcolm T. <ma...@co...> - 2003-04-22 00:51:12
|
On Mon, Apr 21, 2003 at 06:41:25AM +0200, Dag Wieers wrote: > I'm the author of soapbox, which is a program that tricks processes ;) = And=20 > it seems that scrollkeeper-update doesn't like this and eithers segfaul= ts=20 > or gets involved in a recursive bug and then segfaults. >=20 > First of all, soapbox fakes succesful completion of libc functions, so = I=20 > can understand that this isn't in itself a bug in scrollkeeper-update > that would occur in real world situations, but it is bugging me a lot a= nd=20 > should obviously be fixed. >=20 > More information about soapbox at: >=20 > http://dag.wieers.com/home-made/soapbox/ >=20 >=20 > BTW These problems occur on scrollkeeper-0.3.10-7 on RH8 and on =20 > scrollkeeper-0.3.11-3 on RH9. The symptoms you are reporting seem to indicate real problems. So thanks for the report. > Problem 1: segfault > =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD > If you install soapbox, and you do: >=20 > soapbox scrollkeeper-update -p /var/scrollkeeper >=20 > you trigger the bug where it segfaults. >=20 > [dag@lisse ~]# soapbox scrollkeeper-update -p=20 > /var/scrollkeeper -o /usr/share/omf/eog/ > soapbox: Attempt to open64("/dev/tty", O_NONBLOCK, 0000). > soapbox: Attempt to open64("/dev/tty", O_NONBLOCK, 0000). > soapbox: Attempt to mkdir("/var/scrollkeeper", 0755). > Segmentation fault >=20 > Probably because mkdir("/var/scrollkeeper") seemed to have worked and t= he=20 > following function-call isn't safe. (Beware that a directory can be gon= e=20 > after it is created) Segfaulting =3D=3D generally bad, I agree. >=20 > Problem 2: recursive error > =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD > If I build programs that use scrollkeeper-update in the make install=20 > phase, it does something like: >=20 > scrollkeeper-update -p /var/tmp/root-netspeed_applet-0.8/var/scrollkee= per -o /var/tmp/root-netspeed_applet-0.8/usr/share/omf/netspeed_applet > Could not create directory /var/tmp/root-netspeed_applet-0.8/var/scrol= lkeeper/dev:/dev:/dev:/dev:/dev:/dev:/dev:/dev:/dev:dev:/dev:/dev:/dev:/d= ev:/dev:/dev:/dev:/dev:/dev:/dev:/dev:/dev:/:/dev:/dev: : File name too l= ong > make[4]: *** [install-data-hook-omf] Segmentation fault >=20 > And segfaults eventually. The cause of this might be due the same=20 > or a very similar problem. I cannot think why this is happening. All those repeated /dev entries look pretty bad. Looks like I'm going to have to download soapbox and play around with it to try and repeat this. Malcolm --=20 Despite the cost of living, have you noticed how popular it remains? |