Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jan 2001 11:55:17 -0800 (PST)
From:      David Wolfskill <dhw@whistle.com>
To:        ports@freebsd.org
Subject:   Segmentation fault in play -- FreeBSD 4.2-S as of 04 Jan 2001
Message-ID:  <200101041955.f04JtHA73241@pau-amma.whistle.com>

next in thread | raw e-mail | index | archive | help
I had encountered the problem in 4.2-S on earlier dates, but recently
(this morning) re-synced my sources & did the build{world,kernel},
install{kernel,world}, mergemaster, reboot drill.

I am using Katsurajima Naoto's ich.c driver; the machine is an IBM
Intellistation 6868-10U (600 MHz PIII); dmesg says:

pcm0: <Intel 82801AA AC'97 audio> port 0xf400-0xf43f,0xf000-0xf0ff irq 9 at devi ce 31.5 on pci0

and cat /dev/sndstat says:

FreeBSD Audio Driver (newpcm) Jan  4 2001 10:11:03
Installed devices:
pcm0: <Intel 82801AA AC'97 audio> at io 0xf000-0xf0ff, 0xf400-0xf43f irq 9 (1p/1r channels duplex)

The "festival" port works just fine, so I have significant reason to
believe that the sound hardware functions, and the driver can drive it.

After I encountered the failure, I re-built "play" with the -g flag,
re-created the problem, and gdb says:

m1022069438[28]% /usr/ports/audio/play/work/play-1.0/play cuckoo.au
Segmentation fault(core dumped)
m1022069438[29]% gdb /usr/ports/audio/play/work/play-1.0/play play.core
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
Core was generated by `play'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  0x280daf34 in getenv () from /usr/lib/libc.so.4
(gdb) bt
#0  0x280daf34 in getenv () from /usr/lib/libc.so.4
#1  0x280d9dcd in isatty () from /usr/lib/libc.so.4
#2  0x280dabfa in malloc () from /usr/lib/libc.so.4
#3  0x8048e62 in check_sunaudio (audio_file=0xbfbff429 "cuckoo.au")
    at encode_sun.c:40
#4  0x8049620 in play_audio (audio_file=0xbfbff429 "cuckoo.au", 
    params=0xbfbff25c) at play_audio.c:39
#5  0x8049576 in main (argc=2, argv=0xbfbff2c8) at play.c:93
#6  0x8048775 in _start ()
(gdb) frame 3
#3  0x8048e62 in check_sunaudio (audio_file=0xbfbff429 "cuckoo.au")
    at encode_sun.c:40
40              if ((header.infop = malloc(infosize)) == NULL) {
(gdb) p infosize
$1 = 16
(gdb) p header
$2 = {magic = 779316836, head_length = 48, data_length = 3491233792, 
  data_format = 16777216, sample_rate = 1075773440, channels = 16777216, 
  infop = 0x6b637563 <Address 0x6b637563 out of bounds>}
(gdb)

m1022069438[30]% ls -l cuckoo.au 
-rw-r--r--  1 dhw  eng  6400 Jun 24  1997 cuckoo.au


It was around this point that I thought trying to get someone else's
assistance with the issue might be appropriate....  :-}


The machine is one I use for testing, so abusing it is not a problem.

If this should be re-directed, please let me know.

Thanks,
david
-- 
David Wolfskill      dhw@whistle.com   UNIX System Administrator
Desk: 650/577-7158   TIE: 8/499-7158   Cell: 650/759-0823

I need help: http://www.whistle.com/employment/employ-engg.html#K030391


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101041955.f04JtHA73241>