My code did not segfault on the previous GPU, and the segfaults appear to be occurring in the directfb libraries themselves, not in the code.&nbsp; It seems as if the compiler might be optimizing out things that should not be optimized out, but I&#39;m not entirely sure how to read that.&nbsp; They also seem to be occuring randomly.&nbsp; I can run it four times, and three of the times it&#39;ll segfault, the fourth it&#39;ll work fine.<br>
<br>I did a little reasearch last night...&nbsp; I&#39;m wondering if directfb doesn&#39;t support my GPU. It appears to only do NV_ARCH_30 and lower.<br><br>--Russell<br><br><div class="gmail_quote">On Sun, Jun 29, 2008 at 9:22 AM, Les &lt;<a href="mailto:hlhowell@pacbell.net">hlhowell@pacbell.net</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, Russel,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Segfaults are probably your best indication of the problem.<br>
Generically a segmentation fault occurs when you access memory allocated<br>
to another process. &nbsp;You can tramp all over your own processes memory<br>
and not necessarily generate a segfault. &nbsp;Since you are seeing the<br>
problem when the size of the field changes, probably there is a fixed<br>
array somewhere in your code that is inappropriately sized for the<br>
larger screen sizes. &nbsp;Also, if the Video processor is only sensing 64M,<br>
it may be doing something weird as well.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;To trouble shoot this problem I would probably first check the video<br>
processor to make sure it is properly seated in its socket. &nbsp;Next I<br>
would go carefully through the code looking for hard sized arrays or<br>
fixed malloc sizes. &nbsp;Check the #defines carefully to see what they have<br>
and what comments you may have added about display sizes. &nbsp;Then look at<br>
any pointer use to make sure that it is cordoned off from exceeding the<br>
array sizes in use.<br>
<br>
After that you will need some software to monitor memory. &nbsp;Several forms<br>
exist, and I haven&#39;t used any in years, so I cannot recommend one for<br>
you. &nbsp;But if you check the archives, you will find some references last<br>
year if I remember correctly.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Also because Nvidia is proprietary, the group here has no vision into<br>
their code or processes. &nbsp;And if your code is producing segfaults, that<br>
needs to be cleaned up before submitting bug reports anyway.<br>
<br>
REgards,<br>
Les H<br>
<div><div></div><div class="Wj3C7c">On Sat, 2008-06-28 at 17:48 -0700, Russell Miller wrote:<br>
&gt; I have been having this problem for a while. &nbsp;I was told on the fedora<br>
&gt; IRC channel that &quot;this has nothing to do with fedora&quot; and to stop my<br>
&gt; blathering, but I think that it is something that perhaps the<br>
&gt; community should at least be aware of and perhaps even hopefully can<br>
&gt; help me to solve.<br>
&gt;<br>
&gt; I am having an odd problem with nvidiafb. &nbsp;I have written a program to<br>
&gt; do a mandelbrot set over framebuffer, just to learn how to make<br>
&gt; mandelbrot sets and how to use the framebuffer. &nbsp;The program worked<br>
&gt; fine on some old hardware I had - an older nvidia AGP card. &nbsp;But after<br>
&gt; I upgraded to a 6200, along with a Dual-core X2-based motherboard,<br>
&gt; suddenly it stops working. &nbsp;More accurately, the framebuffer works<br>
&gt; fine at 1280x1024 until I start the program, at which time the image<br>
&gt; moves rapidly across the screen, reminiscent of an old TV that has<br>
&gt; lost its horizontal sync. &nbsp;This does not happen at 640x480, and going<br>
&gt; up in resolution the side-to-side motion gets progressively faster.<br>
&gt;<br>
&gt; Obviously, this is useless for my purposes.<br>
&gt;<br>
&gt; I worked with the directfb people to try to rule out directfb being<br>
&gt; the culprit. &nbsp;After I managed to get this working under VESA (with no<br>
&gt; acceleration, obviously, so it&#39;s almost useless), that pretty much<br>
&gt; ruled out directfb being the problem. &nbsp;So I&#39;m having to think that for<br>
&gt; some reason the nvidiafb driver is just not playing nice with my card.<br>
&gt;<br>
&gt; I should also note that it seems to detect an &quot;NV22&quot; card, with 64M of<br>
&gt; memory. &nbsp;I have an NV44 card with 256M of memory. &nbsp;Oddly enough, it<br>
&gt; seems to get that number from the PCI device ID, and really doesn&#39;t<br>
&gt; seem to care what it actually *is*.<br>
&gt;<br>
&gt; I&#39;ll paste some lspci output, etc., in hopes that it is useful.<br>
&gt;<br>
&gt; lspci for this card:<br>
&gt; 03:00.0 VGA compatible controller: nVidia Corporation NV44A [GeForce<br>
&gt; 6200] (rev a1)<br>
&gt;<br>
&gt; dmesg output on module being loaded:<br>
&gt; nvidiafb: Device ID: 10de0221<br>
&gt; nvidiafb: CRTC0 analog not found<br>
&gt; nvidiafb: CRTC1 analog found<br>
&gt; nvidiafb: EDID found from BUS1<br>
&gt; i2c-adapter i2c-2: unable to read EDID block.<br>
&gt; i2c-adapter i2c-2: unable to read EDID block.<br>
&gt; i2c-adapter i2c-2: unable to read EDID block.<br>
&gt; nvidiafb: CRTC 0appears to have a CRT attached<br>
&gt; nvidiafb: Using CRT on CRTC 0<br>
&gt; nvidiafb: MTRR set to ON<br>
&gt; Console: switching to colour frame buffer device 160x64<br>
&gt; nvidiafb: PCI nVidia NV22 framebuffer (64MB @ 0xC0000000)<br>
&gt;<br>
&gt; I should also note that a program that worked JUST FINE on the old<br>
&gt; hardware using the directfb libraries now randomly segfaults.<br>
&gt;<br>
&gt; --Russell<br>
</div></div>&gt; --<br>
&gt; fedora-list mailing list<br>
&gt; <a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>
&gt; To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>
<font color="#888888"><br>
--<br>
fedora-list mailing list<br>
<a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>
To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>
</font></blockquote></div><br>