Bug 62203 - rhmask segfaults when asked to create a mask
rhmask segfaults when asked to create a mask
Status: CLOSED WONTFIX
Product: Red Hat Linux
Classification: Retired
Component: rhmask (Show other bugs)
7.2
athlon Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-03-28 07:51 EST by Need Real Name
Modified: 2007-04-18 12:41 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-03-28 07:52:01 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2002-03-28 07:51:57 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020212

Description of problem:
When I execute:

   rhmask -d infile outfile mask

Where 

   infile is a text file containing the text "abc"
   outfile is a text file containing the text "def"
   mask is the output mask that I want generated

rhmask crashes with a segmentation fault.


Version-Release number of selected component (if applicable):
1.0 

How reproducible:
Always

Steps to Reproduce:
1. Run rhmask -d <input> <output> <mask>
2.
3.
	

Actual Results:  Segmentation Fault. This is regardless of what files I use as
the input and output

Expected Results:  No segmentation fault.


Additional info:

The following is the output of ldd /usr/bin/rhmask

	libc.so.6 => /lib/i686/libc.so.6 (0x40035000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

I'm using rhmask rpm rhmask-1.0-10.i386.rpm. Running rpm -V rhmask does not
produce any output.

The following is the output of running strace on the above command. Possible
line wrap may occur.

execve("/usr/bin/rhmask", ["/usr/bin/rhmask", "-d", "infile", "outfile",
"mask"], [/* 36 vars */]) = 0
uname({sys="Linux", node="poseidon.improvisus.org", ...}) = 0
brk(0)                                  = 0x804a7d0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40017000
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=118665, ...}) = 0
old_mmap(NULL, 118665, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
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@\307\1"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5779542, ...}) = 0
old_mmap(NULL, 1291464, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40035000
mprotect(0x40167000, 38088, PROT_NONE)  = 0
old_mmap(0x40167000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x131000) = 0x40167000
old_mmap(0x4016d000, 13512, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4016d000
close(3)                                = 0
munmap(0x40018000, 118665)              = 0
open("infile", O_RDONLY)                = 3
open("outfile", O_RDONLY)               = 4
open("mask", O_RDWR|O_CREAT|O_TRUNC, 0666) = 5
fstat64(3, {st_mode=S_IFREG|0664, st_size=4, ...}) = 0
fstat64(4, {st_mode=S_IFREG|0664, st_size=4, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0664, st_size=4, ...}) = 0
mmap2(NULL, 4, PROT_READ, MAP_SHARED, 3, 0) = 0x40018000
fstat64(4, {st_mode=S_IFREG|0664, st_size=4, ...}) = 0
mmap2(NULL, 4, PROT_READ, MAP_SHARED, 4, 0) = 0x40019000
lseek(5, 99, SEEK_SET)                  = 99
write(5, "\0", 1)                       = 1
mmap2(NULL, 100, PROT_WRITE, MAP_SHARED, 5, 0) = 0x4001a000
pipe([6, 7])                            = 0
pipe([8, 9])             = 0
fork()                                  = 2508
close(6)                                = 0
close(9)                                = 0
write(7, "abc\n", 4)                    = 4
close(7)                                = 0
--- SIGCHLD (Child exited) ---
wait4(2508, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 2508
read(8, "0bee89b07a248e27c83fc3d5951213c1", 32) = 32
close(8)                                = 0
pipe([6, 7])                            = 0
pipe([8, 9])                            = 0
fork()                                  = 2509
close(6)                                = 0
close(9)                                = 0
write(7, "def\n", 4)                    = 4
close(7)                                = 0
--- SIGCHLD (Child exited) ---
wait4(2509, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 2509
read(8, "614dd0e977becb4c6f7fa99e64549b12", 32) = 32
close(8)                                = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
Comment 1 Jeff Johnson 2002-03-28 09:10:53 EST
What are you trying to do? rhmask hasn't been
necessary for years ...

Note You need to log in before you can comment on or make changes to this bug.