#62 Segmentation fault in syslog01 on Suse 9.2 under runltp

System Calls
closed-works-for-me
Testcases (113)
5
2007-05-11
2005-01-21
Flash Sheridan
No

Running a test file consisting solely of "syslog01 syslog01" with
runltp causes a segmentation fault. Running all tests with runltp
also causes a segfault, though I can't be sure that it occurs in the
same place. My attempts to isolate the segfault, by running
syslog01 or pan directly, failed.

Here's the session:

thrallis:/home/flash/ltp/ltp-full-20050107 # ./runltp -p -f
flash_tests/syslog01.tst
If some fields are empty or look unusual you may have an old
version.
Compare to the current minimal requirements in
Documentation/Changes.

SuSE Linux 9.2 (i586)
VERSION = 9.2
Linux thrallis 2.6.8-24.10-default #1 Wed Dec 22 11:54:27 UTC
2004 i686 i686 i386 GNU/Linux

Gnu C gcc (GCC) 3.3.4 (pre 3.3.5 20040809) Copyright
(C) 2003 Free Software Foundation, Inc. This is free software; see
the source for copying conditions. There is NO warranty; not even
for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Gnu make 3.80
util-linux 2.12c
mount 2.12c
modutils 3.1-pre5
e2fsprogs 1.35
PPP 2.4.2
isdn4k-utils 3.5
Linux C Library x 1 root root 1359489 Oct 5
05:21 /lib/tls/libc.so.6
Dynamic linker (ldd) 2.3.3
Linux C++ Library 5.0.7
Procps 3.2.3
Net-tools 1.60
Kbd 1.12
Sh-utils 5.2.1
Modules Loaded vfat fat nvram usbserial parport_pc lp
parport speedstep_lib freq_tableprocessor snd_seq_oss
snd_seq_midi_event snd_pcm_oss snd_mixer_oss snd_opl3_synth
snd_seq_instr snd_seq_midi_emul snd_seq snd_ainstr_fm
snd_cs4236 snd_opl3_lib snd_hwdep snd_cs4236_lib
snd_mpu401_uart snd_rawmidi snd_seq_device snd_cs4231_lib
snd_pcm snd_timer snd soundcore snd_page_alloc ipt_TOS
ip6t_LOG ip6t_limit edd ipt_LOG ipt_limit ipt_pkttype ip6t_state
ip6_conntrack ipt_state ip6t_REJECT ipt_REJECT iptable_mangle
iptable_filter ip6table_mangle ip_nat_ftp iptable_nat
ip_conntrack_ftp ip_conntrack ip_tables ip6table_filter ip6_tables
ipv6 evdev joydev sg stusbhid sr_mod ide_cd cdrom uhci_hcd
intel_agp agpgart binfmt_misc subfs nls_utf8 ntfs dm_mod 3c59x
usbcore reiserfs aic7xxx sd_mod scsi_mod

free reports:
total used free shared buffers cached
Mem: 775744 334248 441496 0 9484 61220
-/+ buffers/cache: 263544 512200
Swap: 1052216 11420 1040796

/proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 3
cpu MHz : 547.386
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge
mca cmov pat pse36 mmx fxsr sse
bogomips : 1081.34

Command: /home/flash/ltp/ltp-full-20050107/pan/pan -e -S -a
22915 -n 22915 -p -f /tmp/ltp-22915/alltests
<<<test_start>>>
tag=syslog01 stime=1106279309
cmdline="syslog01"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
incrementing stop
syslog01 0 INFO : Send messages to syslogd at some level
syslog01 0 INFO : and facility and grep for those messages.
syslog01 0 INFO : syslog: Testing whether messages are
logged into log file

syslog01 1 PASS : success in generating messages
syslog01 0 INFO : restart syslog
<<<execution_status>>>
duration=9 termination_type=exited termination_id=0
corefile=no
cutime=26 cstime=20
<<<test_end>>>
./runltp: line 107: 23005 Segmentation fault
${LTPROOT}/pan/pan $QUIET_MODE -e -S $INSTANCES
$DURATION -a $$ -n $$ $PRETTY_PRT -f ${TMP}/alltests
$LOGFILE $OUTPUTFILE
INFO: pan reported some tests FAIL

thrallis:/home/flash/ltp/ltp-full-20050107 # cat
runtest/flash_tests/syslog01.tst
syslog01 syslog01

The "Command: /home/flash/ltp/ltp-full-20050107/pan/pan -e -S
-a 22915 -n 22915 -p -f /tmp/ltp-22915/alltests" line is the result
of an echo statement I added to runltp. The segfault happened
even before I added the echo. Running the echoed command did
not reproduce the segfault.

Discussion

  • Flash Sheridan
    Flash Sheridan
    2005-01-21

    Logged In: YES
    user_id=207957

    Minor correction: Running the complete tests as user root did _not_
    report any failures. Running the complete tests with root privileges
    under sudo did report fifteen failures, including this one. The above
    session, as user root, with command
    ./runltp -p -f flash_tests/syslog01.tst
    does cause a segmentation fault.

     
    • assigned_to: nobody --> mridge
     
  • Flash Sheridan
    Flash Sheridan
    2005-07-15

    Logged In: YES
    user_id=207957

    PalmSource bug #104821.

     
  • Subrata Modak
    Subrata Modak
    2007-05-11

     
    Attachments
  • Subrata Modak
    Subrata Modak
    2007-05-11

    • status: open --> closed-works-for-me
     
  • Subrata Modak
    Subrata Modak
    2007-05-11

    Logged In: YES
    user_id=1737361
    Originator: NO

    I do not see any segmentation fault now, against the latest release of LTP (20070430). I have tested the same on SLES 10 SP1 over kernel 2.6.16.46-0.7-smp. Also find the attached results. It would be extremely great if you find out such issue and report back.
    Regards--
    Subrata
    File Added: syslog01.tgz