bugWeeChat - Bugs: bug #39090, attempt to malloc() value close to...


bug #39090: attempt to malloc() value close to 2^64 when scrolling with mouse

Submitter:  Joel Taylor <otters>
Submitted:  Tue 28 May 2013 02:56:05 AM UTC
Category:  display Severity:  3 - Normal
Item Group:  other Status:  Need Info
Privacy:  Public Assigned to:  flashcode
Originator Name:  Open/Closed:  Open
Release:  * 0.4.1 IRC nick:  otters
* Mandatory Fields

Add a New Comment (Rich Markup)

( Jump to the original submission )

Sun 15 Dec 2013 02:39:01 PM UTC, comment #6: 

Did you try with scripts loaded? If yes, please unload them all (scripts can crash WeeChat or produce weird behavior, so it's better to test without them).

Moreover, if you have a crash, please enable core files and send a trace using gdb (see user's guide for more info).

For now I have not enough info to fix the problem, I'm not even able to reproduce it (and I don't have OS X to test).

Sebastien Helleu <flashcode>
Group administrator
Sun 15 Dec 2013 02:33:52 PM UTC, comment #5: 

I can confirm this issue on weechat 0.4.2 on Mac OS X 10.9 compiled using `brew install weechat --with-aspell --with-lua --with-perl --with-ruby --with-guile`.

Copied and pasted buffer after mouse scrolling: https://gist.github.com/anonymous/8cb4dbb989b239fe6b19

Let me know if there's any other info I can provide.

beardtree <beardtree>
Sat 20 Jul 2013 05:56:09 AM UTC, comment #4: 

Did you test with latest devel version, to check if problem is still there?

Sebastien Helleu <flashcode>
Group administrator
Fri 31 May 2013 09:39:55 AM UTC, comment #3: 


I wonder if the fix for bug #39094 would fix this one too. It was a problem of freed memory still used by WeeChat, and it can cause such weird problem, or even crashes.

Could you please test with latest git/devel version and tell me if that's better?

Sebastien Helleu <flashcode>
Group administrator
Tue 28 May 2013 04:12:06 PM UTC, comment #2: 

Yes, disabled all scripts and the problem still happens.

Joel Taylor <otters>
Tue 28 May 2013 09:32:43 AM UTC, comment #1: 


Can you try to unload ALL scripts, and test again? To be sure the problem is not caused by a script.

By the way, I am unable to reproduce the problem in my weechat.

Sebastien Helleu <flashcode>
Group administrator
Tue 28 May 2013 02:56:05 AM UTC, original submission:  

When scrolling up in a buffer using my mouse:

weechat-curses(1196) malloc: *** mmap(size=18446744073690892192) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

gets dumped into the current display (screenshot: http://puu.sh/32IKt.png). If I force weechat to redraw, it goes away. It doesn't look like anything sinister is happening when this error occurs: weechat functions properly and memory usage looks fine.

Pretty sure it's happening when the top of the userlist the client received when I joined passes the halfway point in the current buffer.

The error happens in all the rooms I'm in with more than about 200 users, across multiple networks.

Joel Taylor <otters>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by beardtree (Posted a comment)
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by otters (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.





    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-05-28 flashcode CategoryNone display
        Item GroupNone other
        StatusNone Need Info
        Assigned toNone flashcode

    Back to the top

    Powered by Savane 3.11