Tripwire segmentation fault

Tripwire segmentation fault

Post by Alan H » Thu, 02 Jul 1998 04:00:00



Thanks to a recent posting and a reference to the vfaq

ftp://rtfm.mit.edu/pub/faqs/computer-security/most-common-qs

I've managed to compile Tripwire and pass all the tests.
Now when I run tripwire -initialize, however, I get a segmentation fault:

root: /mnt/floppy/bin% ./tripwire -initialize
### Phase 1:   Reading configuration file
### Phase 2:   Generating file list
### Phase 3:   Creating file information database
Segmentation fault

I'm running Linux RH5.0. I'm not sure if this is related, but Tripwire also
does not seem to be following by DATABASE_PATH. I edited my include/config.h
to have these two lines:

#define CONFIG_PATH     "/mnt/floppy/tcheck"
#define DATABASE_PATH   "/mnt/floppy/tcheck/databases"

yet Tripwire seems to be creating the directory and file

/mnt/floppy/bin/databases/tw.db_alanho.student.princeton.edu

(I compiled tripwire to place the binary in /mnt/floppy/bin). On the other
hand, Tripwire does seem to be finding my tw.config, which is in
/mnt/floppy/tcheck.

 Below is my tw.config; Any help or suggestions would be greatly appreciated.

Thanks very much.
Alan

----------------------------------------------------------------------
# $Id: tw.conf.linux,v 1.1 1994/04/04 00:34:03 gkim Exp $
#
# tripwire.config for linux machines
#   (minimal version)

#      
#
# Define a variable for searching /dev

#
# All Files
#
/ R
#
# Except /proc
#
=/proc E
#
# And /dev
#

#
# just /tmp
#
=/tmp
#
#/mnt/floppy/ R
# End
#

 
 
 

Tripwire segmentation fault

Post by Alan H » Thu, 02 Jul 1998 04:00:00



won't be setting up mail until after Tripwire...)

Thanks,
Alan

 
 
 

Tripwire segmentation fault

Post by Marc Hab » Sat, 04 Jul 1998 04:00:00



>Thanks to a recent posting and a reference to the vfaq

>ftp://rtfm.mit.edu/pub/faqs/computer-security/most-common-qs

>I've managed to compile Tripwire and pass all the tests.
>Now when I run tripwire -initialize, however, I get a segmentation fault:

>root: /mnt/floppy/bin% ./tripwire -initialize
>### Phase 1:   Reading configuration file
>### Phase 2:   Generating file list
>### Phase 3:   Creating file information database
>Segmentation fault

Same thing here :-(  Also, no fix yet :-(  If you get one, I am most
interested.

Quote:>I'm running Linux RH5.0. I'm not sure if this is related, but Tripwire also
>does not seem to be following by DATABASE_PATH. I edited my include/config.h
>to have these two lines:

>#define CONFIG_PATH     "/mnt/floppy/tcheck"
>#define DATABASE_PATH   "/mnt/floppy/tcheck/databases"

>yet Tripwire seems to be creating the directory and file

>/mnt/floppy/bin/databases/tw.db_alanho.student.princeton.edu

That seems to look fine and according to spec. If you get tripwire to
finish initialization, it will tell you that you will have to copy the
created database to your database path manually. The database path
configured in the config.h only tells tripwire where to find the
reference database.

Greetings
Marc

--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29

 
 
 

Tripwire segmentation fault

Post by Kevin Fenz » Sat, 04 Jul 1998 04:00:00



Quote:>> Thanks to a recent posting and a reference to the vfaq

>> ftp://rtfm.mit.edu/pub/faqs/computer-security/most-common-qs

>> I've managed to compile Tripwire and pass all the tests.  Now when
>> I run tripwire -initialize, however, I get a segmentation fault:

>> root: /mnt/floppy/bin% ./tripwire -initialize
>> ### Phase 1: Reading configuration file Phase 2: Generating file
>> ### list Phase 3: Creating file information database
>> Segmentation fault

Marc> Same thing here :-( Also, no fix yet :-( If you get one, I am
Marc> most interested.

This patch might help:

------------------------- tripwire.config.patch ----------------------------
--- config.parse.c.orig Wed Jul 20 20:03:26 1994

     /* clean up */
     if (!specified_configmode)
        (void) fclose(fpin);
-
-    rewind(fpout);
+    else {
+       /* Bug fix:  fpin and fpout are the same. fpout was being */
+       /* rewound after fpin was being closed.  The behavior of  */
+       /* this is undefined, and causes core dumps occasionally. */
+       /* Added the else and changed fpout to fpin for clarity.  */

+       rewind(fpin);
+    }
     return;
 }

--
Kevin Fenzi

http://scrye.com/~kevin/

 
 
 

Tripwire segmentation fault

Post by Marc Hab » Sun, 05 Jul 1998 04:00:00



>This patch might help:

It might, but it doesn't. Unfortunately. :-( Tried it weeks ago.

Greetings
Marc

--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29

 
 
 

Tripwire segmentation fault

Post by Marc Hab » Tue, 07 Jul 1998 04:00:00



>Since it's running under Linux, I'd suggest seeing what it does right
>before it coredumps.  Run it with `strace' - run `strace tripwire >
>output 2>&1' or `strace tripwire >& output', whichever is appropriate,
>and look at output.

As usual, my tripwire refuses to segfault once I threatened with
strace. I will get back as soon as possible :-)

Greetings
Marc

--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29

 
 
 

Tripwire segmentation fault

Post by M. Maxwel » Wed, 08 Jul 1998 04:00:00




> >Thanks to a recent posting and a reference to the vfaq

> >ftp://rtfm.mit.edu/pub/faqs/computer-security/most-common-qs

> >I've managed to compile Tripwire and pass all the tests.
> >Now when I run tripwire -initialize, however, I get a segmentation fault:

> >root: /mnt/floppy/bin% ./tripwire -initialize
> >### Phase 1:   Reading configuration file
> >### Phase 2:   Generating file list
> >### Phase 3:   Creating file information database
> >Segmentation fault

> Same thing here :-(  Also, no fix yet :-(  If you get one, I am most
> interested.

I'm curious if anyone else has had this problem and if the problem
seems to be confined to Linux systems for the most part.  I tried to
get tripwire up and running several times on both a Slackware and a
Debian Linux box, but both times, it core-dumped at exactly the same
place.  However, it compiled and ran flawlessly on FreeBSD.

Havn't tried it on any other OS's yet.

--

       Unix SysAdmin / BOFH | The way things ought to be.
http://www.xnet.com/~drwho/ | "User error: replace user and reboot"

 
 
 

Tripwire segmentation fault

Post by Brian Timothy HERLI » Wed, 15 Jul 1998 04:00:00





>> >root: /mnt/floppy/bin% ./tripwire -initialize
>> >### Phase 1:   Reading configuration file
>> >### Phase 2:   Generating file list
>> >### Phase 3:   Creating file information database
>> >Segmentation fault

>> Same thing here :-(  Also, no fix yet :-(  If you get one, I am most
>> interested.
>I'm curious if anyone else has had this problem and if the problem
>seems to be confined to Linux systems for the most part.  I tried to
>get tripwire up and running several times on both a Slackware and a
>Debian Linux box, but both times, it core-dumped at exactly the same
>place.  However, it compiled and ran flawlessly on FreeBSD.
>Havn't tried it on any other OS's yet.

I've put patches to stop tripwire seg faulting (on linux at least) at
http://www.cs.mu.oz.au/~btherl

Other operating systems might not have as much trouble because they either
don't use or don't support 8 bit characters in filenames, or because
different architecture makes the bugs non fatal.

One day I'll get around to sending the patches to whoever is maintaining
tripwire..

 
 
 

Tripwire segmentation fault

Post by nico » Thu, 16 Jul 1998 04:00:00


Hi,

I got the same problem after upgrading to RedHat 5.1.

It appears that TripWire crashes when trying to access files with
unusual characters in their names. On the RedHat system, the file
that crashed tw was a cyrillic support file or something like that.

I had no time to patch tripwire to accept those files, but it should
be fairly easy to do.

the temporary workaround is to run tripwire in verbose mode and see
which file crashes tw, and remove the given file.

Bye,

Nicolas


> Thanks to a recent posting and a reference to the vfaq

> ftp://rtfm.mit.edu/pub/faqs/computer-security/most-common-qs

> I've managed to compile Tripwire and pass all the tests.
> Now when I run tripwire -initialize, however, I get a segmentation fault:

> root: /mnt/floppy/bin% ./tripwire -initialize
> ### Phase 1:   Reading configuration file
> ### Phase 2:   Generating file list
> ### Phase 3:   Creating file information database
> Segmentation fault

 
 
 

1. Tripwire segmentation fault on check

Hi,

I have installed on my 3 linux box 'tripwire-2.3-47.i386.rpm'.
The first and the second are Redhat 7.1, and the third is Redhat 7.0
In the RH7.0 whe I try to check db 'tripwire -m c' linux go in
segmentation fault. May be a verion of .rpm is not fully compatibile
with 7.0 software? You known some place for dl the correct version?

Best regards.

2. Getting a Zyxel 642R router....good?

3. Tripwire Segmentation Fault - Core Dump

4. Last Modified... How?

5. Compiling *** VIM 5.3 *** Segmentation Fault..what is Seg-Fault..MEM Bounds?

6. What should I set /etc/hosts to?

7. Page Faults/Segmentation Faults??

8. Unkillable netscape 4.06 on AIX

9. Tripwire / Cannot --Update (### Filename: /var/lib/tripwire/report/etcetcetc.twr)

10. "Segmentation fault( core dumped ) "<--- sentence is driving me mad!!!!!

11. segmentation fault ?

12. Get "Segmentation fault (core dumped)" but no core file found

13. Segmentation Faults and Bus Errors