From nobody@www.freebsd.org  Sat May 18 05:32:43 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 1CF7337B40A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 18 May 2002 05:32:42 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4ICWfhG009253
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 18 May 2002 05:32:41 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g4ICWflC009252;
	Sat, 18 May 2002 05:32:41 -0700 (PDT)
Message-Id: <200205181232.g4ICWflC009252@www.freebsd.org>
Date: Sat, 18 May 2002 05:32:41 -0700 (PDT)
From: Jonas Nagel <fireball@zerouptime.ch>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mount_cd9660 doesn't mount/read multisession CDs properly
X-Send-Pr-Version: www-1.0

>Number:         38241
>Category:       misc
>Synopsis:       mount_cd9660 doesn't mount/read multisession CDs properly
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 18 05:40:02 PDT 2002
>Closed-Date:    Fri Oct 31 19:11:00 PST 2003
>Last-Modified:  Fri Oct 31 19:11:00 PST 2003
>Originator:     Jonas Nagel
>Release:        4.5-STABLE
>Organization:
-
>Environment:
FreeBSD got.zerouptime.ch 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Apr 24 10:51:23 CEST 2002     root@www.zerouptime.ch:/usr/obj/usr/src/sys/FW  i386  
>Description:
I burn any multisession CD with my tripwire DB on it and want to mount
it on my machine to /var/adm/tcheck.

When I ran tripwire then I got this:
root@got[/var/adm/tcheck/databases]# tripwire 
Tripwire(tm) ASR (Academic Source Release) 1.3.1 
File Integrity Assessment Software
(c) 1992, Purdue Research Foundation, (c) 1997, 1999 Tripwire
Security Systems, Inc. All Rights Reserved. Use Restricted to
Authorized Licensees.
### Phase 1:   Reading configuration file
### Phase 2:   Generating file list
### Phase 3:   Creating file information database
tripwire: database='/var/adm/tcheck/databases/tw.db_got.zerouptime.ch': parse error: space not found in line 1775!

I examined the mounted DB with 'less' and as I scrolled down to 7% I got 
this garbage and later on stuff from another partition such as parts of 
the french html freebsd handbook:

/usr/bin/pic 11 001.X0 100555 7986 1 0 0 189688 0ynWOO 0yQMcg 0yQMcg 0 1qh:tLA0ju5U0rB:QKWz2c 0 0 
0 0 0 0 0 0 
/usr/bin/refer 11 001.X0 100555 7988 1 0 0 126652 0ynWOO 0yQMch 0yQMch 0 0KZYkW4Yc5IycqNa0jQrPu 0 
0 0 0 0 0 0 0 
/usr/bin/tbl 11 001.X0 100555 7985 1 0 0 103940 0ynWOO 0yQMch 0yQMch 0 2LanCxx7lWe.XC7gf:D0Lq 0 0 
0 0 0 0 0 0 
/usr/bin/tfmtodit 11^_<8B^@^@^@^@^@^@^C<B5>Vm<8F><DA>8^P<FE>|<FC><8A><D1><AA>R<BB>R6<BC><94><95>z
<9C>*<D5>^D<B3><B8>
        ^W'<BB>E<D7><93>j<92><B0><F8><9A>^W<EA>8<D0><FD><F7>7v<E0><96>mO<BA>O^^\{<E6><99>y<9E><B1>
<C7><B8><9F><AF>z<EE><E7>+<F0><EA><FD><93><92><8F>;^Mo<D2>k^X^M^FCX<E4>EQ<B6>z^GK<99><EE>D^<C8>
<C6>^ER^T`<CD>^ZPy<93><AB>C<9E><B9><C6><DF>bDy&ESC<AD><E4><A6><D5><B2><AE>@T^Y<B4>M^N<B2><82><A6>n
U<9A><DB><99><8D><AC><84>z<82>m<AD><CA><C6><81><A3>D<FC>Z<D9><DF><BA><D5>^V<A6><AC>3<B9><95><A9>0 
^<95><C3>>W<A5><D4>:<CF>`<AF><EA><83><CC>p<A0>wB<E3>W<8E>@EQ^_e<F5i]e<D2>85^V<C6>8<96><B9><9E><D8>
(...)
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@te;der. Utilisez la commande
 <tt class=
        "COMMAND">mv</tt> pour l'installer sur le syst&egrave;me
        d'origine:</p>

        <div class="INFORMALEXAMPLE">
          <a name="AEN4808"></a>
<pre class="SCREEN">
    <tt class="PROMPT">#</tt> <tt class=
"USERINPUT"><b>mv grunt-new-srvtab srvtab</b></tt>
</pre>
(...)

This is already the second CD I burned and tried out. The first one had an old tripwire DB
on it and I added another session with the new one, but this resulted in the same problem, 
except that the first time, I got parts from /usr/share/dict/web2 "in" it.

Fine, I thought and went and burnt a fresh one, since it worked before (before I decided to 
cvsup the last time). But I got the same problem, only different garbage afterwards.

Oh yea, with both CDs of course, when I read the database file from harddisk or put the CD 
in e.g. a Windows machine, the database reads fine from alpha to omega.
>How-To-Repeat:
Burn a Multisession CD where you can add sessions later.

I assume the problem only exists with 'larger' chunks of data, the problem always 
showed up like around the 7% of the DB.
>Fix:
Heck if I knew.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Fri Oct 10 23:45:40 PDT 2003 
State-Changed-Why:  
Is this still an issue with later versions of FreeBSD? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38241 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Fri Oct 31 19:10:41 PST 2003 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38241 
>Unformatted:
