Re: pw is broken?
saw the commit an hour ago. rebuilt libutil.so.9 and unfortunately it still crashes for me :( --- On Sat, 3/9/13, hiren panchasara hiren.panchas...@gmail.com wrote: From: hiren panchasara hiren.panchas...@gmail.com Subject: Re: pw is broken? To: kt...@acm.org Cc: freebsd-current freebsd-current@freebsd.org Date: Saturday, March 9, 2013, 10:34 PM On Mar 8, 2013 9:44 PM, KT Sin kt...@acm.org wrote: pw is crashing with seg fault due to this change? http://svnweb.freebsd.org/base/head/lib/libutil/gr_util.c?r1=245390r2=247919 I think the correct fix is committed with: http://svnweb.freebsd.org/changeset/base/248102 Hiren # gdb ./pw GNU gdb 6.1.1 [FreeBSD] Copyright 2004 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 amd64-marcel-freebsd... (gdb) run groupadd test123 -g 12345 Starting program: /usr/src/usr.sbin/pw/pw groupadd test123 -g 12345 Program received signal SIGSEGV, Segmentation fault. 0x80d84a4f in stpcpy () from /lib/libc.so.7 (gdb) bt full #0 0x80d84a4f in stpcpy () from /lib/libc.so.7 No symbol table info available. #1 0x80a5c00a in grcopy (gr=0x612ce0, newgr=0x81409100, name=0x0, ndx=0) at /usr/src/lib/libutil/gr_util.c:496 dst = 0x8 Error reading address 0x8: Bad address i = 1090277153 #2 0x80a5bdc6 in gr_add (gr=0x612ce0, newmember=0x0) at /usr/src/lib/libutil/gr_util.c:451 newgr = (struct group *) 0x81409100 len = 0 num_mem = 0 #3 0x80a5bd4f in gr_dup (gr=0x612ce0) at /usr/src/lib/libutil/gr_util.c:434 No locals. #4 0x0040bad7 in gr_update (grp=0x612ce0, group=0x0) at grupd.c:78 pfd = 0 tfd = 4244492 gr = (struct group *) 0x0 old_gr = (struct group *) 0x0 #5 0x0040ba8f in addgrent (grp=0x612ce0) at grupd.c:111 No locals. #6 0x0040a83d in pw_group (cnf=0x612bf0, mode=0, args=0x613e78) at pw_group.c:258 ---Type return to continue, or q return to quit--- grp = (struct group *) 0x612ce0 members = (char **) 0x81485d00 rc = 0 a_name = (struct carg *) 0x8144c0a0 a_gid = (struct carg *) 0x8144c0c0 arg = (struct carg *) 0x0 grmembers = 200 fakegroup = {gr_name = 0x7fffdcb9 test123, gr_passwd = 0x40fbc9 *, gr_gid = 12345, gr_mem = 0x81485d00} #7 0x004037fb in main (argc=3, argv=0x7fffd9f0) at pw.c:230 which = 1 config = 0x0 cnf = (struct userconf *) 0x612bf0 ch = -1 mode = 0 opts = {{0x40e150 V:C:qn:u:c:d:e:p:g:G:mM:k:s:oL:i:w:h:H:Db:NPy:Y, 0x40e180 V:C:qn:u:rY, 0x40e18c V:C:qn:u:c:d:e:p:g:G:mM:l:k:s:w:L:h:H:FNPY, 0x40e1b7 V:C:qn:u:FPa7, 0x40e1c5 V:C:q, 0x40e1c5 V:C:q, 0x40e1c5 V:C:q}, {0x40e1cb V:C:qn:g:h:H:M:opNPY, 0x40e1e0 V:C:qn:g:Y, 0x40e1eb V:C:qn:d:g:l:h:H:FM:m:NPY, 0x40e205 V:C:qn:g:FPa, 0x40e1c5 V:C:q, 0x0, 0x0}} funcs = {0x405270 pw_user, 0x409b60 pw_group} (gdb) ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: pw is broken?
ah, this is a different problem. one quick workaround is to comment out the unused variable ic :P, or you could include INVARIANTS in your kernel config, or you could ping adrian :) --- On Sat, 3/9/13, Hartmann, O. ohart...@zedat.fu-berlin.de wrote: But neither r248102 nor r248103 compile! /usr/src/sys/net80211/ieee80211_output.c:600:23: error: unused variable 'ic' [-Werror,-Wunused-variable] struct ieee80211com *ic = ni-ni_ic;) ( ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: pw is broken?
ah. my apologies. rebuilt the new libutil again and it seems that r248012 does indeed resolve the problem. :) --- On Sat, 3/9/13, KT Sin kt...@acm.org wrote: From: KT Sin kt...@acm.org Subject: Re: pw is broken? To: hiren panchasara hiren.panchas...@gmail.com, d...@freebsd.org Cc: freebsd-current freebsd-current@freebsd.org Date: Saturday, March 9, 2013, 11:15 PM saw the commit an hour ago. rebuilt libutil.so.9 and unfortunately it still crashes for me :( --- On Sat, 3/9/13, hiren panchasara hiren.panchas...@gmail.com wrote: From: hiren panchasara hiren.panchas...@gmail.com Subject: Re: pw is broken? To: kt...@acm.org Cc: freebsd-current freebsd-current@freebsd.org Date: Saturday, March 9, 2013, 10:34 PM On Mar 8, 2013 9:44 PM, KT Sin kt...@acm.org wrote: pw is crashing with seg fault due to this change? http://svnweb.freebsd.org/base/head/lib/libutil/gr_util.c?r1=245390r2=247919 I think the correct fix is committed with: http://svnweb.freebsd.org/changeset/base/248102 Hiren # gdb ./pw GNU gdb 6.1.1 [FreeBSD] Copyright 2004 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 amd64-marcel-freebsd... (gdb) run groupadd test123 -g 12345 Starting program: /usr/src/usr.sbin/pw/pw groupadd test123 -g 12345 Program received signal SIGSEGV, Segmentation fault. 0x80d84a4f in stpcpy () from /lib/libc.so.7 (gdb) bt full #0 0x80d84a4f in stpcpy () from /lib/libc.so.7 No symbol table info available. #1 0x80a5c00a in grcopy (gr=0x612ce0, newgr=0x81409100, name=0x0, ndx=0) at /usr/src/lib/libutil/gr_util.c:496 dst = 0x8 Error reading address 0x8: Bad address i = 1090277153 #2 0x80a5bdc6 in gr_add (gr=0x612ce0, newmember=0x0) at /usr/src/lib/libutil/gr_util.c:451 newgr = (struct group *) 0x81409100 len = 0 num_mem = 0 #3 0x80a5bd4f in gr_dup (gr=0x612ce0) at /usr/src/lib/libutil/gr_util.c:434 No locals. #4 0x0040bad7 in gr_update (grp=0x612ce0, group=0x0) at grupd.c:78 pfd = 0 tfd = 4244492 gr = (struct group *) 0x0 old_gr = (struct group *) 0x0 #5 0x0040ba8f in addgrent (grp=0x612ce0) at grupd.c:111 No locals. #6 0x0040a83d in pw_group (cnf=0x612bf0, mode=0, args=0x613e78) at pw_group.c:258 ---Type return to continue, or q return to quit--- grp = (struct group *) 0x612ce0 members = (char **) 0x81485d00 rc = 0 a_name = (struct carg *) 0x8144c0a0 a_gid = (struct carg *) 0x8144c0c0 arg = (struct carg *) 0x0 grmembers = 200 fakegroup = {gr_name = 0x7fffdcb9 test123, gr_passwd = 0x40fbc9 *, gr_gid = 12345, gr_mem = 0x81485d00} #7 0x004037fb in main (argc=3, argv=0x7fffd9f0) at pw.c:230 which = 1 config = 0x0 cnf = (struct userconf *) 0x612bf0 ch = -1 mode = 0 opts = {{0x40e150 V:C:qn:u:c:d:e:p:g:G:mM:k:s:oL:i:w:h:H:Db:NPy:Y, 0x40e180 V:C:qn:u:rY, 0x40e18c V:C:qn:u:c:d:e:p:g:G:mM:l:k:s:w:L:h:H:FNPY, 0x40e1b7 V:C:qn:u:FPa7, 0x40e1c5 V:C:q, 0x40e1c5 V:C:q, 0x40e1c5 V:C:q}, {0x40e1cb V:C:qn:g:h:H:M:opNPY, 0x40e1e0 V:C:qn:g:Y, 0x40e1eb V:C:qn:d:g:l:h:H:FM:m:NPY, 0x40e205 V:C:qn:g:FPa, 0x40e1c5 V:C:q, 0x0, 0x0}} funcs = {0x405270 pw_user, 0x409b60 pw_group} (gdb) ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
pw is broken?
pw is crashing with seg fault due to this change? http://svnweb.freebsd.org/base/head/lib/libutil/gr_util.c?r1=245390r2=247919 # gdb ./pw GNU gdb 6.1.1 [FreeBSD] Copyright 2004 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 amd64-marcel-freebsd... (gdb) run groupadd test123 -g 12345 Starting program: /usr/src/usr.sbin/pw/pw groupadd test123 -g 12345 Program received signal SIGSEGV, Segmentation fault. 0x80d84a4f in stpcpy () from /lib/libc.so.7 (gdb) bt full #0 0x80d84a4f in stpcpy () from /lib/libc.so.7 No symbol table info available. #1 0x80a5c00a in grcopy (gr=0x612ce0, newgr=0x81409100, name=0x0, ndx=0) at /usr/src/lib/libutil/gr_util.c:496 dst = 0x8 Error reading address 0x8: Bad address i = 1090277153 #2 0x80a5bdc6 in gr_add (gr=0x612ce0, newmember=0x0) at /usr/src/lib/libutil/gr_util.c:451 newgr = (struct group *) 0x81409100 len = 0 num_mem = 0 #3 0x80a5bd4f in gr_dup (gr=0x612ce0) at /usr/src/lib/libutil/gr_util.c:434 No locals. #4 0x0040bad7 in gr_update (grp=0x612ce0, group=0x0) at grupd.c:78 pfd = 0 tfd = 4244492 gr = (struct group *) 0x0 old_gr = (struct group *) 0x0 #5 0x0040ba8f in addgrent (grp=0x612ce0) at grupd.c:111 No locals. #6 0x0040a83d in pw_group (cnf=0x612bf0, mode=0, args=0x613e78) at pw_group.c:258 ---Type return to continue, or q return to quit--- grp = (struct group *) 0x612ce0 members = (char **) 0x81485d00 rc = 0 a_name = (struct carg *) 0x8144c0a0 a_gid = (struct carg *) 0x8144c0c0 arg = (struct carg *) 0x0 grmembers = 200 fakegroup = {gr_name = 0x7fffdcb9 test123, gr_passwd = 0x40fbc9 *, gr_gid = 12345, gr_mem = 0x81485d00} #7 0x004037fb in main (argc=3, argv=0x7fffd9f0) at pw.c:230 which = 1 config = 0x0 cnf = (struct userconf *) 0x612bf0 ch = -1 mode = 0 opts = {{0x40e150 V:C:qn:u:c:d:e:p:g:G:mM:k:s:oL:i:w:h:H:Db:NPy:Y, 0x40e180 V:C:qn:u:rY, 0x40e18c V:C:qn:u:c:d:e:p:g:G:mM:l:k:s:w:L:h:H:FNPY, 0x40e1b7 V:C:qn:u:FPa7, 0x40e1c5 V:C:q, 0x40e1c5 V:C:q, 0x40e1c5 V:C:q}, {0x40e1cb V:C:qn:g:h:H:M:opNPY, 0x40e1e0 V:C:qn:g:Y, 0x40e1eb V:C:qn:d:g:l:h:H:FM:m:NPY, 0x40e205 V:C:qn:g:FPa, 0x40e1c5 V:C:q, 0x0, 0x0}} funcs = {0x405270 pw_user, 0x409b60 pw_group} (gdb) ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
buildkernel failure at posix semaphores
buildkernel is failing at uipc_sem.c and uipc_shm.c when mac is not enabled. === sem (all) cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /tmp/obj/usr/src/sys/PASSION/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -I/tmp/obj/usr/src/sys/PASSION -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c /usr/src/sys/modules/sem/../../kern/uipc_sem.c cc1: warnings being treated as errors /usr/src/sys/modules/sem/../../kern/uipc_sem.c: In function 'ksem_chown': /usr/src/sys/modules/sem/../../kern/uipc_sem.c:271: warning: 'error' may be used uninitialized in this function *** Error code 1 1 error *** Error code 2 1 error *** Error code 2 2 errors *** Error code 2 1 error *** Error code 2 1 error cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror /usr/src/sys/kern/uipc_shm.c cc1: warnings being treated as errors /usr/src/sys/kern/uipc_shm.c: In function 'shm_chown': /usr/src/sys/kern/uipc_shm.c:700: warning: 'error' may be used uninitialized in this function *** Error code 1 Stop in /tmp/obj/usr/src/sys/PASSION. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. suggested fix: --- sys/kern/uipc_sem.c.orig2011-08-17 13:16:52.0 +0800 +++ sys/kern/uipc_sem.c 2011-08-17 13:23:28.0 +0800 @@ -270,6 +270,7 @@ struct ksem *ks; int error; + error = 0; ks = fp-f_data; mtx_lock(sem_lock); #ifdef MAC --- sys/kern/uipc_shm.c.orig2011-08-17 13:16:52.0 +0800 +++ sys/kern/uipc_shm.c 2011-08-17 13:25:37.0 +0800 @@ -699,6 +699,7 @@ struct shmfd *shmfd; int error; + error = 0; shmfd = fp-f_data; mtx_lock(shm_timestamp_lock); #ifdef MAC ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: kernel panic in tcp_input.c:2324
Another panic in tcp_input while exiting gtk-gnutella. Script started on Wed Mar 12 00:38:24 2003 melati# gdb -k kernel.debug /var/crash/vmcore.1 GNU gdb 5.2.1 (FreeBSD) Copyright 2002 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-undermydesk-freebsd... panic: headlocked should be 1 panic messages: --- panic: headlocked should be 1 syncing disks, buffers remaining... 4678 4678 4678 4678 4678 4678 4678 4678 wi0: tx failed, retry limit exceeded 4678 4678 4678 4678 4678 4678 4678 4678 4678 4678 4678 4678 giving up on 2284 buffers Uptime: 5m30s Dumping 639 MB ata0: resetting devices .. done 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 384 400 416 432 448 464 480 496 512 528 544 560 576 592 608 624 --- #0 doadump () at ../../../kern/kern_shutdown.c:239 239 dumping++; (kgdb) bt full #0 doadump () at ../../../kern/kern_shutdown.c:239 No locals. #1 0xc0183d60 in boot (howto=256) at ../../../kern/kern_shutdown.c:371 No locals. #2 0xc0183fc3 in panic () at ../../../kern/kern_shutdown.c:542 td = (struct thread *) 0xc1843960 bootopt = 256 newpanic = 1 buf = headlocked should be 1, '\0' repeats 233 times #3 0xc0202d11 in tcp_input (m=0xc1857c00, off0=20) at ../../../netinet/tcp_input.c:2252 th = (struct tcphdr *) 0xc22ea834 ip = (struct ip *) 0xc22ea820 ipov = (struct ipovly *) 0x4410 inp = (struct inpcb *) 0xc536a000 optp = (u_char *) 0xc22ea848 \001\001\b\n optlen = 12 len = -986328376 tlen = 1338 off = -986328376 drop_hdrlen = 52 tp = (struct tcpcb *) 0xc535d2c8 thflags = 1 so = (struct socket *) 0xc52a0c00 todrop = -986328376 acked = -986328376 ourfinisacked = -986328376 needoutput = 0 tiwin = 17424 to = {to_flags = 1, to_tsval = 813786, to_tsecr = 310864, to_cc = 0, to_ccecho = 0, to_mss = 0, to_requested_s_scale = 0 '\0', to_pad = 0 '\0'} taop = (struct rmxp_tao *) 0xc535d2c8 tao_noncached = {tao_cc = 3222954451, tao_ccsent = 3224621352, tao_mssopt = 52664} headlocked = 0 next_hop = (struct sockaddr_in *) 0x0 rstreason = -986328376 ip6 = (struct ip6_hdr *) 0x0 isipv6 = 0 #4 0xc01fb938 in ip_input (m=0xc1857c00) at ../../../netinet/ip_input.c:944 ip = (struct ip *) 0xc22ea820 fp = (struct ipq *) 0xc4fc7800 ia = (struct in_ifaddr *) 0xc4fc7800 ifa = (struct ifaddr *) 0x0 i = 0 hlen = 20 checkif = 1 sum = 0 pkt_dst = {s_addr = 1677830336} divert_info = 0 args = {m = 0xdabf2cb8, oif = 0x0, next_hop = 0x0, rule = 0x0, eh = 0x0, ro = 0x56d, dst = 0xc0362af4, flags = 233, f_id = { dst_ip = 3224276871, src_ip = 3669961916, dst_port = 42304, src_port = 49175, proto = 244 'ô', flags = 42 '*'}, divert_rule = 0, retval = 3224243451} #5 0xc01e8234 in swi_net (dummy=0x0) at ../../../net/netisr.c:236 ni = (struct netisr *) 0xc0315390 m = (struct mbuf *) 0xc1857c00 bits = 0 i = 0 #6 0xc0172f42 in ithread_loop (arg=0xc1831d80) at ../../../kern/kern_intr.c:536 ithd = (struct ithd *) 0xc1831d80 ih = (struct intrhand *) 0xc1838440 td = (struct thread *) 0xc1843960 p = (struct proc *) 0xc1842be8 #7 0xc0172044 in fork_exit (callout=0xc1838440, arg=0x0, frame=0x0) at ../../../kern/kern_fork.c:871 td = (struct thread *) 0x0 p = (struct proc *) 0xc1831d80 (kgdb) melati# Script done on Wed Mar 12 00:38:39 2003 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: cbb attach failed
Hi If your CURRENT is pretty recent, please add into your /boot/loader.conf hw.pci.allow_unsupported_io_range=1 and then reboot. kt On Sun, Dec 15, 2002 at 07:34:39AM +0900, FUJITA Kazutoshi wrote: hi, i've just 'make buildworld' 'make buildkernel' on my thinkpad x23, but cardbus doesn't work. here is the 'boot -v' message around the cbb, cbb0: RF5C476 PCI-CardBus Bridge mem 0x5000-0x5fff irq 11 at device 3.0 on pci2 pcib2: device cbb0 requested unsupported memory range 0x0-0x0 (decoding 0xc020-0xcfff, 0xe800-0xf00f) cbb0: Could not map register memory device_probe_and_attach: cbb0 attach returned 12 cbb0: RF5C476 PCI-CardBus Bridge mem 0x5010-0x50100fff irq 11 at device 3.1 on pci2 pcib2: device cbb0 requested unsupported memory range 0x0-0x0 (decoding 0xc020-0xcfff, 0xe800-0xf00f) cbb0: Could not map register memory device_probe_and_attach: cbb0 attach returned 12 any suggestion? regards, To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Memory corruption in CURRENT
Hi This is what I did the to system's cc/gcc. I built gcc3.1.1 released version from the ports (with much pain of coz). passion:/usr/bin[514]# ls -l cc* gcc* lrwxr-xr-x 1 root wheel 20 Aug 12 21:54 cc - /usr/local/bin/gcc31 -r-xr-xr-x 2 root wheel 135616 Aug 12 21:52 cc.sav lrwxr-xr-x 1 root wheel 20 Aug 12 21:54 gcc - /usr/local/bin/gcc31 -r-xr-xr-x 2 root wheel 135616 Aug 12 21:52 gcc.sav The hardware = Asus P4S533 + P4 1.6A (now 2.4Ghz) + Kingston DDR333 value ram. Haven't encountered any random signal or stability issue since I swapped cc/gcc with ports' version. Will try to run 10 buildworlds in a row later tonight. kt On Thu, Aug 22, 2002 at 12:00:14PM +0200, Mark Santcroos wrote: On Thu, Aug 22, 2002 at 02:33:57AM -0700, Terry Lambert wrote: options DISABLE_PSE options DISABLE_PG_G Coming up next in this theater :-) btw, how does the report that using the other compiler fixed everything for KT fit in? -- Mark SantcroosRIPE Network Coordination Centre http://www.ripe.net/home/mark/New Projects Group/TTM To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Solved: CURRENT and P-IV problems
Hi I believe this is caused by the pre-released version of gcc in the system. I started seeing this problem one week after I upgraded my hardware to Pentium 4 in May. Two weeks ago, I built the final release version of gcc 3.1.1 in the ports and used that to compile the kernel and userlands. All the strange signals have disappeared since then. Good-luck, kt On Wed, Aug 21, 2002 at 05:27:24PM +0200, Martin Blapp wrote: Hi, The 2nd one fails at exactly the same point, that can't be coindedence. Also with a signal 10. (libutil) The 3rd ended somewhere else(games/rogue), but now with signal 4. Doing the 4rd now. Which ends with signal 11 in usr.sbin/devinfo/ ... Mark May this be the memory corruption other users see (Alfred, David) ? I'll start again a new row of 10 builds here and see where it ends. Martin To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Solved: CURRENT and P-IV problems
Hi Please try to continue from where it broke by repeating make. Otherwise, please get a precompiled port package. kt On Wed, Aug 21, 2002 at 10:26:37PM +0200, Mark Santcroos wrote: On Wed, Aug 21, 2002 at 08:05:17PM +0200, Mark Santcroos wrote: On Wed, Aug 21, 2002 at 11:38:20PM +0800, KT Sin wrote: Hi I believe this is caused by the pre-released version of gcc in the system. I started seeing this problem one week after I upgraded my hardware to Pentium 4 in May. Two weeks ago, I built the final release version of gcc 3.1.1 in the ports and used that to compile the kernel and userlands. All the strange signals have disappeared since then. Thanks for the hint, I'm building /usr/ports/lang/gcc31/ now. /usr/local/bin/gcc31 -fpic -DPIC -O -pipe -D_IEEE_LIBM -D_ARCH_INDIRECT=i387_ -c /usr/src/lib/msun/src/s_nextafter.c -o s_nextafter.So Illegal instruction (core dumped) *** Error code 132 Stop in /usr/src. *** Error code 1 That didn't work. I will now try the other gcc's from ports. Mark -- Mark SantcroosRIPE Network Coordination Centre http://www.ripe.net/home/mark/New Projects Group/TTM To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: mysql-server broken
Sigh... I was building mysql on Solaris using Forte compiler and got the same error. IMHO, the tcpd.h header is not very c++ friendly. One dirty workaround is to temporarily define the arguments for hosts_access, eval_client and sock_host. Or there could be a flag that could disable strict prototype checking. kt On Wed, Jun 26, 2002 at 11:55:54PM -0800, Beech Rintoul wrote: I'm getting the following: cc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr/local\ -DDATADIR=\/var/db/mysql\ -DSHAREDIR=\/usr/local/share/mysql\ -DHAVE_CONFIG_H -I../bdb/build_unix -I../innobase/include -I./../include -I./../regex -I. -I../include -I.. -I.-DDBUG_OFF -O -pipe -felide-constructors -fno-rtti -fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=100 -c mysqld.cc /usr/include/tcpd.h: In function `void* handle_connections_sockets(void*)': /usr/include/tcpd.h:137: too many arguments to function `void sock_host()' mysqld.cc:2428: at this point in file /usr/include/tcpd.h:75: too many arguments to function `int hosts_access()' mysqld.cc:2429: at this point in file /usr/include/tcpd.h:130: too many arguments to function `char* eval_client()' mysqld.cc:2437: at this point in file *** Error code 1 Stop in /usr/ports/databases/mysql323-server/work/mysql-3.23.51/sql. *** Error code 1 I added cc=gcc31 cxx=g++31 to my make. Ports tree is up to date. Just finished world kernel. Anyone have a suggestion? Beech -- --- Beech Rintoul - SysAdmin - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | Sinbad Network Communications \ / - NO HTML/RTF in e-mail | 3101 Penland Parkway #K-38 X - NO Word docs in e-mail | Anchorage, AK 99508-1957 / \ - To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Thinkpad A30p and -current. status and issues
Try the winmodem driver from the ports collection e.g. comms/ltmdm and see if it works. kt On Fri, Jan 04, 2002 at 01:19:33PM +0100, Michael Reifenberger wrote: Hi, because I behaved well last year christmas brought a new A30p in replacement for my former Toshiba Tecra 8000 :-) First impression: Nice pice of plastic and silicon. Migrating from the Tecra to the A30p was a few hours for FreeBSD (exclusivly for dump/restore from old to new disk.) Editing rc.conf, fstab and XF86Config took a few minutes. Migrating NT2K took one day for reinstalling all applications and rebooting dozend of times BTW: The A30p doesnt have a Floppy by default anymore and no installation CD's for reinstallation. All is preinstalled in a obscure Win98 1Gig Partition at the end of the harddisk which gets called if one presses F11 during startup. But it seems a MBR feature which goes away if one installs an alternative bootblock. Working Features: - The display X11 @ 1600x1200 via VESA driver (the RADEON chip is not directly supported in XFree 4.1.0) - build-in fxp0 - modular DVD/CDR/CDRW comby (is a Toshiba drive) - USB / USB-mouse - PS/2 - UDMA33/66/100 via ATA(66/100) / ATAPI (33) - OLDCARD via the legacy shims Not working Features: - agp driver (unknown too new chipset) - SMB/IIC-bus ( ) - Sound (Intel ICH3) - NEWCARD - OLDCARD pcic_pci attachment - Lucent Softmodem (no driver) - Firewire ( ) - ACPI (I get some Error messages during startup and I'm not sure up to which extend ACPI works) The OLDCARD/NEWCARD/Sound issues seems all to be related to bus mapping problems of register and io memory. See attached files dmesg2.txt and pciconf.txt. Does anyone know how to interpret and resolve the mapping issues? Which bridge-chip is responsible for the agp access? Bye! Michael Reifenberger ^.*Plaut.*$, IT, R/3 Basis, GPS Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #4: Thu Jan 3 17:58:54 CET 2002 root@nihil:/usr/src/sys/i386/compile/nihil Preloaded elf kernel /boot/kernel/kernel at 0xc03ba000. Preloaded userconfig_script /boot/kernel.conf at 0xc03ba0b4. Preloaded elf module /boot/kernel/md.ko at 0xc03ba104. Preloaded elf module /boot/kernel/if_dc.ko at 0xc03ba1ac. Preloaded elf module /boot/kernel/miibus.ko at 0xc03ba258. Preloaded elf module /boot/kernel/if_fxp.ko at 0xc03ba304. Preloaded elf module /boot/kernel/usb.ko at 0xc03ba3b0. Preloaded elf module /boot/kernel/ums.ko at 0xc03ba458. Preloaded elf module /boot/kernel/if_ep.ko at 0xc03ba500. Preloaded elf module /boot/kernel/snd_ich.ko at 0xc03ba5ac. Preloaded elf module /boot/kernel/snd_pcm.ko at 0xc03ba658. Preloaded elf module /boot/kernel/if_ed.ko at 0xc03ba704. Preloaded elf module /boot/kernel/acpi.ko at 0xc03ba7b0. Calibrating clock(s) ... TSC clock: 1198991156 Hz, i8254 clock: 1193191 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter i8254 frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method Timecounter TSC frequency 1198984819 Hz CPU: Pentium III/Pentium III Xeon/Celeron (1198.98-MHz 686-class CPU) Origin = GenuineIntel Id = 0x6b1 Stepping = 1 Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real memory = 133562368 (130432K bytes) Physical memory chunk(s): 0x1000 - 0x0009efff, 647168 bytes (158 pages) 0x003e1000 - 0x07f4, 129429504 bytes (31599 pages) avail memory = 126046208 (123092K bytes) bios32: Found BIOS32 Service Directory header at 0xc00f73a0 bios32: Entry = 0xfd7e0 (c00fd7e0) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xfd770+0x18e pnpbios: Found PnP BIOS data at 0xc00f7400 pnpbios: Entry = f:a138 Rev = 1.0 pnpbios: Event flag at 4b4 Other BIOS signatures found: mem: memory I/O Pentium Pro MTRR support enabled VESA: information block 56 45 53 41 00 02 00 01 00 01 01 00 00 00 22 00 00 01 00 02 00 01 14 01 00 01 2a 01 00 01 2f 01 00 01 82 01 0d 01 0e 01 0f 01 20 01 92 01 93 01 94 01 95 01 96 01 a2 01 a3 01 a4 01 a5 01 a6 01 VESA: 60 mode(s) found VESA: v2.0, 32768k memory, flags:0x1, mode table:0xc0298b22 (122) VESA: ATI MOBILITY RADEON VESA: ATI Technologies Inc. P6 01.00 random: entropy source null: null device, zero device pci_open(1): mode 1 addr port (0x0cf8) is 0x80010014 pci_open(1a): mode1res=0x8000 (0x8000) pci_cfgcheck: device 0 [class=06] [hdr=00] is there (id=35758086) Using $PIR table, 14 entries at 0xc00fdeb0 npx0: math processor on motherboard npx0: INT 16 interface acpi0: IBMTP-1Eon motherboard ACPI-0294: *** Error: Method execution failed, AE_NOT_EXIST ACPI-0294: *** Error: Method execution failed, AE_NOT_EXIST ACPI-0294: *** Error: Method execution
memory backed filesystem corruption
Hi My userland and kernel were rebuilt after running cvsup on Christmas day. Right after that, files created on /tmp which is swap-backed get corrupted easily. I was trying to build mozilla and everytime I untarred the source into /tmp, I would get about 10 random files corrupted. Each of these files has one or two chunks of data replaced with null bytes (^@). However, I didn't get the same error whenever I untarred into a physical disk backed filesystem. Has anyone experienced this problem? Can someone please try and confirm? Thanks kt To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
21 in /bin/sh
Just ran make world this morning and 21 fd redirection stopped working for /bin/sh. $ ls /bad/file /dev/null 21 ls: /bad/file: No such file or directory 21 is used extensively in the /etc/rc* bootup scripts. Now, the bootup screen is cluttered with unwanted messages. Any idea? kt To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: current doesnt see ps2 port with acpi enabled on intel vc820
Hi all Glad to hear that it worked for you. Just wondering..is your affected motherboard using AMI for BIOS? Mine is AMI too. I'll try to submit a PR. Hopefully the fix will be accepted. kt On Sun, Dec 16, 2001 at 10:25:52AM -0500, Brian K. White wrote: - Original Message - From: KT Sin [EMAIL PROTECTED] To: Jon Christopherson [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, December 15, 2001 10:24 PM Subject: Re: current doesnt see ps2 port with acpi enabled on intel vc820 I have just compiled and installed -current from this morning 7AMPST, and have noticed that when acpi is enabled in loader.conf the OS does not see the ps2 mouse port. When I turn off ACPI the mouse port shows up fine. Other than not seeing the ps2 port when in ACPI enabled mode, the OS works without a hitch on my motherboard. Any ideas? IF this is a known problem please let me know, as I have been off this list for a month or so. I'm seeing the same problem on my MSI bookpc. For some reasons, the psm device will fail to get an IRQ when ACPI is enabled. Can you try the attached patch and see if it helps? Hey I had the same problem but I assumed it was because I was slightly overclocking an amd k6-2 500 to 550 on a cheap old e-machine via-based motherboard. I applied your patch and now my mouse works. thanks! blather although, partially in response to the mouse problem, I never use my kvm switch anymore anyways, just vnc on the rare occasion I feel like playing with x on this box. /blather Brian K. White -- [EMAIL PROTECTED] -- http://www.aljex.com/bkw/ +[+++[-]-]+..+.+++.-.[+---]++. filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: current doesnt see ps2 port with acpi enabled on intel vc820
Yes...you are absolutely correct. 8) For my case, all that is needed is adding the correct pnp id and let the pnp driver take care of the rest. Thanks kt On Tue, Dec 18, 2001 at 11:35:33AM -0800, Mike Smith wrote: Hi all Glad to hear that it worked for you. Just wondering..is your affected motherboard using AMI for BIOS? Mine is AMI too. I'll try to submit a PR. Hopefully the fix will be accepted. A PR that hardwires IRQ 12 probably won't be accepted. Can you look around the ACPI tables and try to see where the driver should be intuiting the IRQ from? In particular, have a look at the atkbdc device and see if it isn't being given two interrupts... kt On Sun, Dec 16, 2001 at 10:25:52AM -0500, Brian K. White wrote: - Original Message - From: KT Sin [EMAIL PROTECTED] To: Jon Christopherson [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, December 15, 2001 10:24 PM Subject: Re: current doesnt see ps2 port with acpi enabled on intel vc820 I have just compiled and installed -current from this morning 7AMPST, and have noticed that when acpi is enabled in loader.conf the O S does not see the ps2 mouse port. When I turn off ACPI the mouse port shows up fine. Other than not seeing the ps2 port when in ACPI enabled mode, the OS works without a hitch on my motherboard. Any ideas? IF thi s is a known problem please let me know, as I have been off this list for a month or so. I'm seeing the same problem on my MSI bookpc. For some reasons, the psm device will fail to get an IRQ when ACPI is enabled. Can you try the attached patch and see if it helps? Hey I had the same problem but I assumed it was because I was slightly overclocking an amd k6-2 500 to 550 on a cheap old e-machine via-based motherboard. I applied your patch and no w my mouse works. thanks! blather although, partially in response to the mouse problem, I never use my kvm switch anymore anyways, just vnc on the rare occasion I feel like playing with x on this box. /blather Brian K. White -- [EMAIL PROTECTED] -- http://www.aljex.com/bkw/ +[+++[-]-]+..+.+++.-.[+---]++. filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: current doesnt see ps2 port with acpi enabled on intel vc820
Hi I'm seeing the same problem on my MSI bookpc. For some reasons, the psm device will fail to get an IRQ when ACPI is enabled. Can you try the attached patch and see if it helps? kt On Sat, Dec 15, 2001 at 09:16:07AM -0800, Jon Christopherson wrote: Hello, I have just compiled and installed -current from this morning 7AMPST, and have noticed that when acpi is enabled in loader.conf the OS does not see the ps2 mouse port. When I turn off ACPI the mouse port shows up fine. Other than not seeing the ps2 port when in ACPI enabled mode, the OS works without a hitch on my motherboard. Any ideas? IF this is a known problem please let me know, as I have been off this list for a month or so. On another note .. when doing a make distribution in /usr/src/etc, the process will fail when trying to install MAKEDEV and MAKEDEV.local into /dev both in single user and multiuser. I got around this by telling it to not install them. I have attached dmesg output from both ACPI and non ACPI enabled boots. Thanks in advance, Jon Christopherson Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #1: Sat Dec 15 08:04:04 PST 2001 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENESIS Preloaded elf kernel /boot/kernel/kernel at 0xc0438000. Preloaded elf module /boot/kernel/acpi.ko at 0xc04380a8. Timecounter i8254 frequency 1193182 Hz Timecounter TSC frequency 598476354 Hz CPU: Pentium III/Pentium III Xeon/Celeron (598.48-MHz 686-class CPU) Origin = GenuineIntel Id = 0x673 Stepping = 3 Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real memory = 133955584 (130816K bytes) avail memory = 125849600 (122900K bytes) pnpbios: Bad PnP BIOS data checksum Pentium Pro MTRR support enabled VESA: v3.0, 16320k memory, flags:0x1, mode table:0xc03788a2 (122) VESA: NVidia Using $PIR table, 11 entries at 0xc00f2f60 npx0: math processor on motherboard npx0: INT 16 interface acpi0: AMIOEM OEMRSDT on motherboard acpi0: power button is handled as a fixed feature programming model. Timecounter ACPI frequency 3579545 Hz acpi_timer0: 24-bit timer at 3.579545MHz port 0x408-0x40b on acpi0 acpi_cpu0: CPU on acpi0 acpi_button0: Sleep Button on acpi0 acpi_pcib0: Host-PCI bridge port 0xcf8-0xcff on acpi0 pci0: PCI bus on acpi_pcib0 pcib1: PCI-PCI bridge at device 1.0 on pci0 pci1: PCI bus on pcib1 pci1: display, VGA at device 0.0 (no driver attached) pcib2: PCI-PCI bridge at device 30.0 on pci0 pci2: PCI bus on pcib2 pcm0: AudioPCI ES1373-B port 0xdf00-0xdf3f irq 11 at device 7.0 on pci2 fxp0: Intel Pro 10/100B/100+ Ethernet port 0xdf80-0xdf9f mem 0xfe90-0xfe9f,0xf43ff000-0xf43f irq 10 at device 9.0 on pci2 fxp0: Ethernet address 00:a0:c9:69:49:b4 inphy0: i82555 10/100 media interface on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: Adaptec 2940 Ultra SCSI adapter port 0xd800-0xd8ff mem 0xfeaff000-0xfeaf irq 9 at device 10.0 on pci2 aic7880: Ultra Wide Channel A, SCSI Id=7, 16/255 SCBs pci2: multimedia, video at device 12.0 (no driver attached) isab0: PCI-ISA bridge at device 31.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel ICH ATA66 controller port 0xffa0-0xffaf at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: Intel 82801AA (ICH) USB controller port 0xef80-0xef9f irq 11 at device 31.2 on pci0 usb0: Intel 82801AA (ICH) USB controller on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: serial bus, SMBus at device 31.3 (no driver attached) atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0 atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 fdc0: NEC 72065B or clone port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3,0x3f0-0x3f1 irq 6 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: 1440-KB 3.5 drive on fdc0 drive 0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0 port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode lpt0: Printer on ppbus0 lpt0: Interrupt-driven port ppi0: Parallel I/O on ppbus0 ata-: ata0 already exists, skipping it ata-: ata1 already exists, skipping it atkbdc-: atkbdc0 already exists, skipping it fdc-: fdc0 already exists, skipping it ppc-: ppc0 already exists, skipping it sio-: sio0 already exists, skipping it sio-: sio1 already exists, skipping it sc-: sc0 already exists, skipping it vga-: vga0 already exists, skipping it pmtimer0 on isa0 sc0: System console at flags 0x100 on isa0 sc0: VGA 16 virtual consoles, flags=0x300 vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0