bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segment fault rm corrupt files


From: Reg. Charney
Subject: Re: Segment fault rm corrupt files
Date: Tue, 17 Jul 2007 13:26:35 -0000 (America/Toronto)
User-agent: SquirrelMail/1.5.1

On Tue, July 17, 2007 3:46 am, Bob Proulx wrote:
> Reg. Charney wrote:
>
>> On a number of occasions, Konqueror has crashed and produced  a file
>> named something like: /tmp/kde-$USER/konqueror-crash-XXXXXX.log
>>
>> However, the file has an unknown type, size, and permissions.
>>
>
> This makes no sense in the context of Unix filesystems.  Please run
> the following command and post the output to the mailing list.  You may
> need to adjust the file globs to match.
>
> ls -ld /tmp/kde-* /tmp/kde-*/konqueror-crash-*.log
>
The result of this command is:

address@hidden ~]# ls -ld /tmp/kde-* /tmp/kde-*/konqueror-crash-*.log
drwx------ 2 reg reg 4096 Jul 16 22:02 /tmp/kde-reg
-rw------- 1 reg reg    0 Jul 16 22:02
/tmp/kde-reg/konqueror-crash-EBXvbc.log
-rw------- 1 reg reg    0 Jul 16 22:02
/tmp/kde-reg/konqueror-crash-SQil1b.log

However, this was run after I somehow deleted the invalid files since I
could not reboot without eliminating these invalid files.

This is a contradiction to the original bug report.

The exact command that raised the segmentation fault was:

rm -rf /tmp/kde-*

Thus, the error may have been in the glob expansion, not in the rm command.

Because I needed to delete the invalid files, I can not show you exactly
what I had. However, the following was the output I that I recall I
received with the ls command:

address@hidden ~]# ls -ld /tmp/kde-* /tmp/kde-*/konqueror-crash-*.log
drwx------ 2 reg reg 4096 Jul 16 22:02 /tmp/kde-reg
?--------- ? reg reg    ? Jul 14 22:02
/tmp/kde-reg/konqueror-crash-XYwuxw.log
?--------- ? reg reg    ? Jul 14 22:02
/tmp/kde-reg/konqueror-crash-STuxyz.log


> That will show us the file type, size and permissions.  Or it will
> have an error which will also be informative.
>

Again, the ls command at the time could not tell me this.

>> As part of the /etc/rc.sysinit file, I have a rm command of the form:
>>
>>
>> rm -rf /tmp/kde-$USER/*
>
> Typically systems will purge the contents of /tmp on a reboot.  I
> think Fedora does this but can't check at the moment.  In which case the
> above command is not needed.
>
> Regardless of that the $USER is an environment variable.  Inside of
> the /etc/rc.sysinit script that will almost certainly be "root".  I don't
> think this will match the user that was actually running konqueror at the
> moment that the core file was created.  Therefore it will be very unlikely
> to actually match any files.
>

Actually, the crash logs are related to the user using kde at the time of
failure. Thus, the subdirectory is named kde-reg where I was logged in as
user 'reg'.

>> Because the type of these crash files are unknown, the rm command fails
>>  with a segment fault on my Intel IA86 machine (a MacBook running
>> Parallels Fedora Core 6 Linux under Mac OS X (10.4)).
>>
>
> It would be good if you could show us the exact output.

I wish I could show this now, but the system was not in a state then that
I could do this.

Thanks.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]