Hi,

I'm finishing the new version of sysutils/thefish, and doing some
development on a -current box. For the ncurses/dialog frontend, I'm
using a couple of functions from the sysinstall code, and this program
works perfectly well on a 4.5-STABLE system. If I take the binary and
run it on -CURRENT, it works as well, but, if I compile that code on
-CURRENT, the program dies with a Bus Error the moment I enter the Knobs
menu. I've seen this problem both with the 11th of March snapshot and
with a world I built yesterday, cvsupped at 1500 UTC. The current box
specs are these:

flynn@saioa# uname -a
FreeBSD saioa.energyhq.tk 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sat Mar 30
00:37:49 GMT 2002     root@:/usr/obj/usr/src/sys/SAIOA  i386
flynn@saioa# cc -v
Using builtin specs.
gcc version 2.95.4 20020320 [FreeBSD]

The gdb trace when the program fails:

(gdb) bt
#0  0x280da10a in dialog_menu () from /usr/lib/libdialog.so.4
#1  0x804e0a7 in dmenuOpen (menu=0x81d5000, choice=0xbfbff8bc,
scroll=0xbfbff8c0, curr=0xbfbff8c4, max=0xbfbff8c8, buttons=0)
at ncurses_ui.c:249
#2  0x804df6a in dmenuOpenSimple (menu=0x81d5000, buttons=0)
at ncurses_ui.c:191
#3  0x804deff in dmenuSubmenu (tmp=0x80bb6f4) at
ncurses_ui.c:175
#4  0x280db1ae in dialog_menu () from /usr/lib/libdialog.so.4
#5  0x804e0a7 in dmenuOpen (menu=0x80bb680,choice=0xbfbffa5c,
scroll=0xbfbffa60, curr=0xbfbffa64, max=0xbfbffa68,buttons=1)
at ncurses_ui.c:249
#6  0x804debf in create_ncurses_ui(rc_knobs=0x817b000, num_knobs=96,
rc_strings=0x8197000, num_str=138) at ncurses_ui.c:163
#7  0x804b2ed in main (argc=0, argv=0xbfbffb18) at main.c:216
#8  0x804a5c5 in _start ()
(gdb) 

The program tarball can be found at
http://energyhq.homeip.net/files/thefish-0.2.tar.gz

My question is, is it a bug in my program that only shows in -CURRENT or
is the compiler in current broken?

Cheers,
-- 
        Miguel Mendez - [EMAIL PROTECTED]
        GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
        EnergyHQ :: http://www.energyhq.tk
        FreeBSD - The power to serve!

Attachment: msg36776/pgp00000.pgp
Description: PGP signature

Reply via email to