git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Segfault in xdl_merge is back

From
Linus Torvalds <torvalds@osdl.org>
Date
Dec 27, 2006, 06:49 UTC
Message-ID
<Pine.LNX.4.64.0612262245250.4473@woody.osdl.org>
In-Reply-To
<20061227041644.GA22449@spearce.org>
On Tue, 26 Dec 2006, Shawn Pearce wrote:
> 
> I'm suspecting this is actually some sort of memory corruption in
> the heap (due to a bad malloc/free) as the bug seems to rear its
> head only based on the data we are allocating/have allocated.

Can you try to reproduce it under Linux and use "valgrind" to run the thing that SIGSEGV's? That tends to be a pretty good way to debug bad allocations..

So instead of bisecting it on cygwin, try to use the build that broke on Linux too (ie undo the 5caf9232 "fix") and when you can reproduce it under Linux, compiel withour -O2 and with debug information, and gdb will be a lot more useful, but also run it with valgrind..

		Linus
Previous: Shawn PearceNext: Shawn Pearce
Message 2 of 15 in “Segfault in xdl_merge is back”
  1. Shawn PearceDec 27, 2006
  2. Linus TorvaldsDec 27, 2006
  3. Shawn PearceDec 27, 2006
  4. Johannes SchindelinDec 27, 2006
  5. Alexandre JulliardDec 27, 2006
  6. xdl_merge(): fix a segmentation fault when refining conflictsJohannes Schindelin, Dec 28, 2006
  7. Junio C HamanoDec 28, 2006
  8. Shawn PearceDec 29, 2006
  9. Johannes SchindelinDec 30, 2006
  10. Jakub NarebskiDec 30, 2006
  11. Johannes SchindelinDec 31, 2006
  12. Jakub NarebskiJan 2, 2007
  13. Johannes SchindelinJan 2, 2007
  14. Junio C HamanoJan 2, 2007
  15. Johannes SchindelinJan 2, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.