DragonFlyBSD bugtracker: Issueshttps://bugs.dragonflybsd.org/https://bugs.dragonflybsd.org/favicon.ico?16293952082023-03-30T20:41:10ZDragonFlyBSD bugtracker
Redmine DragonFlyBSD - Bug #3348 (New): Panic when trying to mount_hammer2 a filehttps://bugs.dragonflybsd.org/issues/33482023-03-30T20:41:10Zzabolekar
<p>Dragonfly 6.4.0.</p>
<p>Observed behavior: when I create a HAMMER2 file system on a regular file and try to mount it, I get a panic.<br />Expected behavior: Maybe the program should exit with an error message? I suspect I'm not supposed to do this kind of thing: the man page of mount_hammer2 says the file should be <em>special</em>.</p>
<p>To reproduce, as root:</p>
<pre><code class="shell syntaxhl" data-language="shell"><span class="nb">truncate</span> <span class="nt">-s</span> 1G hammer2.img
newfs_hammer2 hammer2.img
<span class="nb">mkdir </span>mnt
mount_hammer2 ~/hammer2.img mnt
</code></pre>
<p>This is the output after the last command:</p>
<pre>
hammer2_mount: devstr="/root/hammer2.img@DATA"
hammer2_mount: device="/root/hammer2.img" label="DATA" rdonly=0
panic: assertion "strncmp(path, "/dev/", 5) == 0" failed in hammer2_init_devvp a
t /usr/src/sys/vfs/hammer2/hammer2_ondisk.c:197
cpuid = 0
Trace beginning at frame 0xfffff800a9bbac18
hammer2_init_devvp() at hammer2_init_devvp+0x48b 0xffffffff8098589b
hammer2_init_devvp() at hammer2_init_devvp+0x48b 0xffffffff8098589b
hammer2_vfs_mount() at hammer2_vfs_mount+0x379 0xffffffff8096a4d9
sys_mount() at sys_mount+0x33b 0xffffffff80702d7b
syscall2() at syscall2+0x11e 0xffffffff80bdc0ae
Debugger("panic")
CPU0 stopping CPUs: 0x00000000
stopped
Stopped at Debugger+0x7c: movb $0,0xbcbd09(%rip)
db>
</pre> DragonFlyBSD - Bug #3318 (In Progress): Segmenation fault when a process resumed with checkpt exitshttps://bugs.dragonflybsd.org/issues/33182022-06-12T11:51:16Zzabolekar
<p>DragonFly version: 6.2.1</p>
<p>Code example (error handling omitted for brevity):<br /><pre><code class="c syntaxhl" data-language="c"><span class="cp">#include</span> <span class="cpf"><stdlib.h></span><span class="cp">
#include</span> <span class="cpf"><fcntl.h></span><span class="cp">
#include</span> <span class="cpf"><unistd.h></span><span class="cp">
#include</span> <span class="cpf"><sys/checkpoint.h></span><span class="cp">
</span>
<span class="kt">void</span> <span class="nf">save</span><span class="p">(</span><span class="k">const</span> <span class="kt">char</span><span class="o">*</span> <span class="n">filename</span><span class="p">)</span>
<span class="p">{</span>
<span class="kt">int</span> <span class="n">file</span> <span class="o">=</span> <span class="n">open</span><span class="p">(</span><span class="n">filename</span><span class="p">,</span> <span class="n">O_RDWR</span><span class="o">|</span><span class="n">O_CREAT</span><span class="o">|</span><span class="n">O_TRUNC</span><span class="p">,</span> <span class="mo">0666</span><span class="p">);</span>
<span class="n">sys_checkpoint</span><span class="p">(</span><span class="n">CKPT_FREEZE</span><span class="p">,</span> <span class="n">file</span><span class="p">,</span> <span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="o">-</span><span class="mi">1</span><span class="p">);</span>
<span class="n">close</span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
<span class="p">}</span>
<span class="kt">int</span> <span class="nf">main</span><span class="p">()</span>
<span class="p">{</span>
<span class="n">puts</span><span class="p">(</span><span class="s">"a"</span><span class="p">);</span>
<span class="n">save</span><span class="p">(</span><span class="s">"a.ckpt"</span><span class="p">);</span>
<span class="n">puts</span><span class="p">(</span><span class="s">"b"</span><span class="p">);</span>
<span class="p">}</span>
</code></pre></p>
<p>Expected output:</p>
<pre>
% gcc test.c -o test -Wall -Wextra
% ./test
a
b
% checkpt -r a.ckpt
b
</pre>
<p>Actual output:</p>
<pre>
% gcc test.c -o test -Wall -Wextra
% ./test
a
b
% checkpt -r a.ckpt
b
pid 1143 (test), uid 1001: exited on signal 11 (core dumped)
Segmentation fault (core dumped)
</pre>
<p>Backtrace with <code>gdb test test.core</code>:</p>
<pre>
#0 0x000000080040400f in __tls_get_addr () from /libexec/ld-elf.so.2
#1 0x000000080075648a in _thread_finalize () from /lib/libc.so.8
#2 0x0000000800756449 in exit () from /lib/libc.so.8
#3 0x00000000004007b3 in _start ()
</pre>
<p>See also: <a class="external" href="https://lists.dragonflybsd.org/pipermail/users/2022-June/405002.html">https://lists.dragonflybsd.org/pipermail/users/2022-June/405002.html</a></p> DragonFlyBSD - Bug #3224 (New): Kernel panic when trying to ping6https://bugs.dragonflybsd.org/issues/32242020-03-08T15:55:05Zzhtwroot@zta.lk
<p>I got a kernel panic on my vkernel trying to ping6 another vkernel on the same host.<br />I might have done an incorrect network configuration, but I guess it shouldn't panic anyway.</p>
<p>Here is what I've done.</p>
<p>Two fresh vkernels with ipv6_enable=yes in rc.conf started with:</p>
<p>/boot/kernel/kernel -m 1g -r /vhost/vm0.img -I /var/run/vknet</p>
<p>and</p>
<p>/boot/kernel/kernel -m 1g -r /vhost/vm1.img -I /var/run/vknet</p>
<p>vknetd is executed as "/usr/sbin/vknetd -U -t tap0".</p>
<p>I run the following version of DragonFly (on all three machines: host and both vkernels):</p>
<ol>
<li>uname -a<br />DragonFly 5.8-RELEASE DragonFly v5.8.0rc1.28.g3e3e37-RELEASE <a class="issue tracker-1 status-5 priority-3 priority-lowest closed" title="Bug: K&R -> ANSI cleanup status (Closed)" href="https://bugs.dragonflybsd.org/issues/2">#2</a>: Sun Mar 1 17:46:44 CET 2020 <a class="email" href="mailto:root@fi.zta.lk">root@fi.zta.lk</a>:/usr/obj/usr/src/sys/VKERNEL64 x86_64</li>
</ol>
<p>On one of the vkernels I first check that I can ping the other one:</p>
<ol>
<li>ping6 fe80::201:71ff:fe0c:f607%vke0<br /><abbr title="56=40+8+8 bytes">PING6</abbr> fe80::201:68ff:fef8:f5f8%vke0 --> fe80::201:71ff:fe0c:f607%vke0<br />16 bytes from fe80::201:71ff:fe0c:f607%vke0, icmp_seq=1 hlim=64 time=0.371 ms<br />16 bytes from fe80::201:71ff:fe0c:f607%vke0, icmp_seq=2 hlim=64 time=0.262 ms<br />^C<br />--- fe80::201:71ff:fe0c:f607%vke0 ping6 statistics ---<br />3 packets transmitted, 2 packets received, 33.3% packet loss<br />round-trip min/avg/max/std-dev = 0.262/0.317/0.371/0.054 ms</li>
</ol>
<p>Then do the following to get the panic:</p>
<ol>
<li>route add -inet6 fe80::201:71ff:fe0c:f607 -iface vke0<br />add host fe80::201:71ff:fe0c:f607: gateway vke0</li>
</ol>
<ol>
<li>ping6 fe80::201:71ff:fe0c:f607<br /><abbr title="56=40+8+8 bytes">PING6</abbr> fe80::201:68ff:fef8:f5f8%vke0 --> fe80::201:71ff:fe0c:f607<br />panic: assertion "sdl->sdl_family == AF_LINK && sdl->sdl_alen != 0" failed in nd6_resolve at /usr/src/sys/netinet6/nd6.c:2031<br />cpuid = 0<br />Trace beginning at frame 0x8026783680<br />nd6_resolve() at 0x60ab55<br />nd6_resolve() at 0x60ab55<br />ether_output_frame() at 0x59427c<br />ip6_output() at 0x6026a1<br />rip6_output() at 0x610e9f<br />rip6_output() at 0x611446<br />Debugger("panic")</li>
</ol>
<p>CPU0 stopping CPUs: 0x0000000000000002<br /> stopped<br />Stopped at 0x70bde9: movb $0,0xa0c83c(%rip)<br />db> trace<br />Debugger() at 0x70bde9<br />panic() at 0x4c7710<br />nd6_resolve() at 0x60ab55<br />ether_output_frame() at 0x59427c<br />ip6_output() at 0x6026a1<br />rip6_output() at 0x610e9f<br />rip6_output() at 0x611446<br />netmsg_sync_handler() at 0x5a1739</p>
<p>--<br />Aleksej Lebedev</p> DragonFlyBSD - Bug #3124 (New): DragonFlyBSD 5.0.2 with Hammer2 with UEFI install doesn't boothttps://bugs.dragonflybsd.org/issues/31242018-03-04T09:01:41Zwiesl
<p>DragonFlyBSD 5.0.2 with Hammer2 with UEFI install doesn't boot<br />FATAL: Could not read from the boot medium! System halted.<br />Legacy BIOS install is OK.<br />Looks like that the boot installer isn't run.</p> DragonFlyBSD - Bug #2886 (New): dragonfly mail agent: sending a testmail causes high system loadhttps://bugs.dragonflybsd.org/issues/28862016-02-05T13:53:40Zworfitsuperhack@web.de
<p>When sending an email from dragonfly mail agent to a mailserver in the local network, the system load<br />increases up to > 80%. The remote mailserver (Postfix) speaks TLS via port 587 (submission)</p>
<p>However, the email cannot be sent:</p>
<p>remote delivery deferred: Peer did not provide certificate: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure</p>
<p>Since other mail servers - such as exim4, postfix, etc. - are able to send emails to the remote server,<br />I figure the problem is somewhere at the DMA.</p>
<p>This problem has been encountered on an IPFire (<a class="external" href="http://www.ipfire.org/">http://www.ipfire.org/</a>) firewall system running on an<br />ARM-board. Please see <a class="external" href="https://bugzilla.ipfire.org/show_bug.cgi?id=11036">https://bugzilla.ipfire.org/show_bug.cgi?id=11036</a> for the ticket in their bugtracker.</p>
<p>Best regards,<br />Timmothy Wilson</p> DragonFlyBSD - Bug #2840 (New): wrong voltage is reportedhttps://bugs.dragonflybsd.org/issues/28402015-09-12T01:09:37Zyellowrabbit2010
<p>lm0: <Winbond W83627DHG Hardware Monitor> at port 0x290-0x297 on isa0<br />hw.sensors.lm0.volt0: 0.76 VDC (VCore)<br />hw.sensors.lm0.volt1: 6.55 VDC (+12V)<br />hw.sensors.lm0.volt2: 3.31 VDC (+3.3V)<br />hw.sensors.lm0.volt3: 3.31 VDC (+3.3V)<br />hw.sensors.lm0.volt4: -22.93 VDC (-12V)<br /> ^<sup>^^</sup>^^^^^^^</p> DragonFlyBSD - Bug #2797 (In Progress): vkernels with & without machdep.pmap_mmu_optimizehttps://bugs.dragonflybsd.org/issues/27972015-02-28T00:09:38Zyellowrabbit2010
<p>Hello,</p>
<p>I tried vkernel64 according to vkernel(7) with & without machdep.pmap_mmu_optimize.</p>
<p>With machdep.pmap_mmu_optimize=0 vkernel boots with many <br /><code>ept_copyout: could not fault in vm map, gpa: 804928000</code> (addresses are changing)</p>
<p>With machdep.pmap_mmu_optimize=1 box paniced (no dump, keyboard hangs --- I can't type anything)<br /><pre>
panic: assertion "origpte == 0 || (origpte & pmap->pmap_bit[PG_MANAGED_IDX])
failed in pmap_enter at /usr/src/sys/platform/pc64/x86_64/pmap.c:4122
trace beginning at frame
panic() at panic+0x21f
panic() at panic+0x21f
pmap_enter() at pmap_enter+0x297
vm_fault() at vm_fault+0x5ab
vmx_vmrun() at vmx_vm_run+0xebe
vmx_vmrun() at vmx_vm_run+0x1f
CPU0 stopping CPUs: 0x0000000e
Stopped
Stopped at Debugger+0x38: movb $0,0x125d681(%rip)
db> panic: kqueue: checkloop failed i=0
cpuid = 0
</pre></p>
<p>===================<br /><code>DragonFly fly.home.net 4.1-DEVELOPMENT DragonFly v4.1.0.876.g2deaaa-DEVELOPMENT</code></p>
<p>===================<br /><pre>
CPU: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz (3400.03-MHz K8-class CPU)
Origin = "GenuineIntel" Id = 0x306a9 Stepping = 9
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0x77bae3ff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSAVE,AVX,F16C,RDRND>
AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
AMD Features2=0x1<LAHF>
Structured Extended Features=0x281<GSFSBASE,SMEP,ENHMOVSB>
Thermal and PM Features=0x77<SENSOR,TURBO,ARAT,PLN,ECMD,PTM>
MONITOR/MWAIT Features=0x3<CST,INTBRK>
real memory = 7995148288 (7624 MB)
avail memory = 7503593472 (7155 MB)
</pre></p> DragonFlyBSD - Bug #2585 (New): Dfly 3.4.3 on ESXi 5.1, HP Smart Array P410 passthrough recognise...https://bugs.dragonflybsd.org/issues/25852013-09-25T17:22:37Zyggdrasildragonflybsd@schukraft.org
<p>Just installed 3.4.3 in an ESXi on Proliant DL180G6. I wanted to use 3 disks attached to the Smart Array P410 in RAID5 mode solely for Dfly/HAMMER for backup purposes, so I configured it as passthrough in ESXi, rebooted and installed Dfly. Neither during installation, nor afterwards could I access the RAID5 array on the P410. ciss0 gets created, but seems to be malfunctioning. During boot, Dfly waits for some time after the line<br />ciss0: PERFORMANT Transport<br />before continuing.<br />Could <a class="issue tracker-1 status-4 priority-4 priority-default" title="Bug: dfly 2.4.1 does not like HP DL360G4p and Smart Array 6400 with MSA20 (Feedback)" href="https://bugs.dragonflybsd.org/issues/1579">#1579</a> be related?</p>
<p>All the best</p> DragonFlyBSD - Bug #2360 (In Progress): Wishlist: virtio driver importhttps://bugs.dragonflybsd.org/issues/23602012-05-02T18:28:25Zvsrinivasvsrinivas@ops101.org
<p>Tim Bisson ported the FreeBSD virtio-bhyve drivers to DragonFly (<a class="external" href="https://github.com/bissont/virtio_bhyve">https://github.com/bissont/virtio_bhyve</a>). It'd be nice if we could import them into DragonFly.</p>
<p>Status ===<br />I have started working on integration in the 'virtual' branch of my DragonFly tree:</p>
<p><a class="external" href="https://github.com/vsrinivas/DragonFlyBSD/commits/virtual">https://github.com/vsrinivas/DragonFlyBSD/commits/virtual</a></p>
<p>Todo:<br />x 1. Move drivers into appropriate location in source tree + rewrite makefiles</p> DragonFlyBSD - Bug #2324 (New): natacotrol support > 2TB not working even after the ftigeot patchhttps://bugs.dragonflybsd.org/issues/23242012-03-03T09:00:05Zzennygarbytrash@gmail.com
<p>natacontrol does not support above 2TB even after applying the patch (<a class="external" href="http://leaf.dragonflybsd.org/mailarchive/users/2012-02/msg00084.html">http://leaf.dragonflybsd.org/mailarchive/users/2012-02/msg00084.html</a>)</p> DragonFlyBSD - Bug #2287 (New): HAMMER(ROOT) Illegal UNDO TAIL signature at 300000001967c000https://bugs.dragonflybsd.org/issues/22872012-01-23T02:55:24Zy0n3t4n1
<p>Hello.</p>
<p>After having experienced a few panics, the root filesystem is<br />no longer able to be mounted, even in read-only mode:</p>
(booted from a USB stick)
<ol>
<li>mount -thammer -o ro /dev/da0s1d /mnt<br /><abbr title="ROOT">HAMMER</abbr> recovery check seqno=3364b54c<br /><abbr title="ROOT">HAMMER</abbr> Illegal UNDO TAIL signature at 300000001967c000<br /><abbr title="ROOT">HAMMER</abbr> recovery failure during seqno fwdscan<br /><abbr title="ROOT">HAMMER</abbr> recovery complete<br />Failed to recover HAMMER filesystem on mount<br />hammer: mount on /mnt: Input/output error</li>
</ol>
<p>I haven't tried `hammer recover' yet, as I have no idea what it does.<br />Is there anything I can do to recover from this situation? This is<br />a machine dedicated to testing DragonFly stability, so I can install<br />from scratch in the worst case.</p>
<p>The error message looks similar to the one described in issue1984,<br />but in this case even R/O mount fails.</p>
<p>The current kernel is built from 4f459, and it occasionally panics<br />even under almost no CPU or disk load. It could be a hardware failure,<br />but I couldn't find any indication of it as far as I watched the console<br />while it booted with the USB stick.<br />The previous kernel was built from 190f1b64, and it survived 10 days<br />without panic under pbulk load.</p>
<p>Best Regards,<br />YONETANI Tomokazu.</p> DragonFlyBSD - Bug #2252 (New): snd_hda not useable if loaded via /boot/loader.confhttps://bugs.dragonflybsd.org/issues/22522011-12-05T19:58:43Zxbit
<p>When loading snd_hda from /boot/loader.conf it is loaded, but cannot be used and configured. At least audio/moc does not work, it is unable to use the OSS interface. But after unloading and loading snd_hda again the sound card is useable.</p>
<p>As a workaround I added "/sbin/kldload snd_hda" to /etc/rc.local and then the soundcard is useable form audio/moc as OSS device.</p>
<p>snd_hda was the only sound kernel module that has been loaded via /boot/loader.conf.</p>
<p>Kernel configuration is GENERIC x86_64 (v2.12.0.23.gec4cf).</p> DragonFlyBSD - Bug #1920 (New): system hangshttps://bugs.dragonflybsd.org/issues/19202010-11-22T16:59:00Zzhtwroot@zta.lk
<p>System hangs once in a while leaving on the console these messages:</p>
<p>====<br />pfr_unroute_kentry: delete failed<br />pfr_unroute_kentry: delete failed<br />pfr_unroute_kentry: delete failed<br />pfr_unroute_kentry: delete failed<br />pfr_unroute_kentry: delete failed<br />pfr_unroute_kentry: delete failed<br />pfr_unroute_kentry: delete failed<br />pfr_unroute_kentry: delete failed</p>
<p>panic: IP header no in one mbuf<br />mp_lock = ffffffff; cpuid=1<br />Trace beginning at frame 0xffffffe03d9b0a60<br />panic() at panic+0x239<br />panic() at panic+0x239<br />ip_input() at ip_input+0x153<br />ip_input_handler() at ip_input_handler+0xd<br />netmsg_service_lookp() at netmsg_service_loop_0x6f<br />Debugger("panic")</p>
<p>CPU1 stopping CPU: 0x00000001<br />stopped<br />Stopped at Debugger+0x39 movh $0,0x387060(%rid)
====</p>
<p>I couldn't grub this from the screen and copied it by hands, so there can be typos.</p>
<ol>
<li>uname -a<br />DragonFly chinua.zzz.umc8.ru 2.8-RELEASE DragonFly v2.8.2.38.gb1139-RELEASE <a class="issue tracker-1 status-5 priority-3 priority-lowest closed" title="Bug: K&R -> ANSI cleanup status (Closed)" href="https://bugs.dragonflybsd.org/issues/2">#2</a>:<br />Mon Nov 22 10:06:11 MSK 2010 <br /><a class="email" href="mailto:root@chinua.zzz.umc8.ru">root@chinua.zzz.umc8.ru</a>:/usr/obj/usr/src/sys/X86_64_GENERIC_SMP x86_64</li>
</ol>
<p>The dmesg.boot is in attach</p> DragonFlyBSD - Bug #1185 (New): need a tool to merge changes into /etchttps://bugs.dragonflybsd.org/issues/11852008-12-20T07:47:08Zwa1ter
<p>I run mergemaster occasionally because it catches files that<br />make upgrade misses. Today it misses about half a dozen or<br />so, including aliases, ftpusers, /usr/Makefile, and maybe a<br />few others I can't remember.</p>
<p>Thanks.</p> DragonFlyBSD - Bug #604 (In Progress): 1.8.1-RELEASE - clock runs fast on mainboard ASUS P5A-Bhttps://bugs.dragonflybsd.org/issues/6042007-04-18T18:55:03Zyeti
<p>After a fresh install of 1.8.1-RELEASE on a system with ASUS P5A-B<br />mainboard (ALI chipset), the clock runs twice as fast as normal.</p>
<p>Booting with ACPI disabled solved this problem.</p>
<p>The clock problem on some ATI chipsets was a problem in Linux some<br />kernels ago too. The solution was triggered by clock=pit as bootarg if I<br />remember right... maybe having a peek into Linux's code helps.</p>