Re: FVWM: FvwmForm

From: Thomas A. Gardiner <gardiner_at_pas.rochester.edu>
Date: Tue, 11 Jan 2000 13:02:08 -0500 (EST)

On Tue, 11 Jan 2000, Dan Espen wrote:

>"Thomas A. Gardiner" <gardiner_at_pas.rochester.edu> writes:
>> Previously...
>>
>> On Tue, 11 Jan 2000, Dan Espen wrote:
>>
>> >"Thomas A. Gardiner" <gardiner_at_pas.rochester.edu> writes:
>> >> Hi,
>> >>
>> >> I'm getting a segmentation fault from FvwmForm which only occurs when the
>> >> number of items grows to become comparable to the MAX_ITEMS definition in
>> >> FvwmForm.c.
>> >>
>> >> In fact changing this
>> >>
>> >> /* tba: use dynamic buffer expanding */
>> >> #define MAX_LINES 16
>> >> #define MAX_ITEMS 64
>> >>
>> >> to this
>> >>
>> >> /* tba: use dynamic buffer expanding */
>> >> #define MAX_LINES 26
>> >> #define MAX_ITEMS 84
>> >>
>> >> gets rid of the problem. So, the problem must be occuring in the dynamic
>> >> memory allocation. (This idea is born out from using gdb.)
>> >> Is anyone familiar enough with this code to be able to
>> >> track down this bug without having to learn it in it's entirety (sp?) like
>> >> I would? If not, I will try to take a stab at it.
>> >>
>> >> Tom
>> >>
>> >> Oh yeah... This occurs with both fvwm2.2.2 and fvwm2.2.4 .
>> >
>> >In the 2.3.x series, all of the limits in FvwmForm are removed.
>>
>> So then do you, Dan, suggest that I simply use my down and dirty hack for
>> now and wait for the 2.3.x series since the memory managment issue is
>> apparently managed in a different way?
>
>Yes.
>
>The changes to FvwmForm are too extensive to put into the 2.2.x series.
>Just making the hard coded numbers larger should suffice for the 2.2.x
>series.
>
>Right now we don't have a definite plan for 2.2.5 but if you like you can
>send me the numbers you needed to increase and if we do create a 2.2.5
>I'll try to get them in.

Dan, the numbers in this e-mail above. The problem occurs when using an
AnotherLevel option to include a form for accessing the possible
screensaver options for which there are some 70 or so...

Tom


--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Jan 11 2000 - 12:07:59 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:50 BST