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

Help needed: Tests failed While replacing char array with strbuf in bulk-checkin.c

From
Ssaikrishna.sripada <saikrishna.sripada@students.iiit.ac.in>
Date
Mar 3, 2014, 21:11 UTC
Message-ID
<d7af2c2bcb07168ecddedf76ca776cd0@students.iiit.ac.in>

Hi , I am trying do complete the microproject 4, inorder to apply to GSOC. I have made the below changes:

https://gist.github.com/anhsirksai/9334565

Post my changes compilation is succes in the source directory. But when I ran the tests[make in t/ directory] my tests are failing saying

"
  free(): invalid pointer: 0x3630376532353636 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x2b5f3b540b96]
/home/saikrishna/Desktop/libcloud-0.14.1/sai/git/git[0x4fb829]
/home/saikrishna/Desktop/libcloud-0.14.1/sai/git/git[0x47d425]
/home/saikrishna/Desktop/libcloud-0.14.1/sai/git/git[0x4064ad]
/home/saikrishna/Desktop/libcloud-0.14.1/sai/git/git[0x405a04]
/home/saikrishna/Desktop/libcloud-0.14.1/sai/git/git[0x404cbd]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x2b5f3b4e376d]
/home/saikrishna/Desktop/libcloud-0.14.1/sai/git/git[0x405109]
"

Can some one please help me with the memory allacation and strbuf_release()

Thanks, --sai krishna

Next: Eric Sunshine
Message 1 of 2 in “Help needed: Tests failed While replacing char array with strbuf in bulk-checkin.c”
  1. saikrishna.sripadaMar 3, 2014
  2. Eric SunshineMar 3, 2014

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.