Leon Brocard sent the following bits through the ether:
> I have a weird bug where concatenation is sometimes failing
Well, this bug is still here. I saw some patches fly by but which of
them is the right patch and can it be applied please? ;-)
Leon
--
Leon Brocard.
Mike Lambert wrote:
> Unfortunately, I fail to see why this actually fixes any bug.
> string_grow should unmake_COW itself.
The problem is that unmake_COW will always resize the allocation down
to bufused (plus the padding added by mem_allocate). This means that
the buflen test could pass, and
> > I have a weird bug where concatenation is sometimes failing, and I
> > have no idea why. See the attached pasm. I fully expect both works and
> > weird to output "foo", "bar", "quux" with various levels of spacing,
> > but weird doesn't output quux.
>
> Patch below should fix the problem. This
Leon Brocard (via RT) wrote:
> I have a weird bug where concatenation is sometimes failing, and I
> have no idea why. See the attached pasm. I fully expect both works and
> weird to output "foo", "bar", "quux" with various levels of spacing,
> but weird doesn't output quux.
Patch below should fi
> I have a weird bug where concatenation is sometimes failing, and I
> have no idea why.
> ...
While trying to find shortest code which reproduces this, I found
probably related bug where string is overwritten by a constant in
memory.
set S0, ""
set S1, "ABCDEFGHIJK"
set S2, "123456789012"
co
On Fri, Aug 30, 2002 at 08:35:43AM +, [EMAIL PROTECTED] wrote:
> # New Ticket Created by Leon Brocard
> # Please include the string: [perl #16874]
> # in the subject line of all future correspondence about this issue.
> # http://rt.perl.org/rt2/Ticket/Display.html?id=16874 >
>
>
> Hi.
>
> I have a weird bug where concatenation is sometimes failing, and I
> have no idea why. See the attached pasm. I fully expect both works and
> weird to output "foo", "bar", "quux" with various levels of spacing,
> but weird doesn't output quux.
> ...
If I add just one print-command to that code,
# New Ticket Created by Leon Brocard
# Please include the string: [perl #16874]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt2/Ticket/Display.html?id=16874 >
Hi.
I have a weird bug where concatenation is sometimes failing, and I
have no idea wh