You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ctfmerge gets a segmentation fault when merging large set of objects on Ubuntu 12.04 X86_64 machine #92
The machine I am building on is a Ubuntu 12.0.4 X86_64 version and the CTF tools are built 64 bit. There is a large set of object files around 200+ which are compiled,linked to create a kernel module. The ctfconvert builds the .SUNW_ctf sections for each object file but when merging ctfmerge blows up, gets a segmentation fault. The command is ctfmerge -L VERSION -g -o module.ko.debug <list of object .o's>. I enabled the debugs in the environment i.e CTFMERGE_DEBUG_LEVEL 7 and CTFMERGE_DEBUG_PARSE 1 and have the following snapshot before the crash
Average: 0.35
DEBUG: 354588416: entering first barrier
DEBUG: 346195712: entering second barrier
DEBUG: 346195712: phase 1 complete
DEBUG: 371373824: entering second barrier
DEBUG: 354588416: doing work in first barrier
DEBUG: clearing slot 0 (0) (saving 5)
DEBUG: clearing slot 1 (1) (saving 5)
DEBUG: clearing slot 2 (2) (saving 5)
DEBUG: clearing slot 3 (3) (saving 5)
DEBUG: clearing slot 4 (4) (saving 5)
DEBUG: 362981120: entering second barrier
DEBUG: phase one done: donequeue has 75 items
DEBUG: 354588416: ninqueue is 149, 75 on queue
DEBUG: 354588416: entering second barrier
The crash backtrace
(gdb) bt
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:45 #1 0x00000000004029a5 in barrier_wait (bar=0x6333e0) at barrier.c:107 #2 0x0000000000403388 in worker_thread (wq=0x633280) at ctfmerge.c:547 #3 0x00007ffff7498e9a in start_thread (arg=0x7ffff5eca700) at pthread_create.c:308 #4 0x00007ffff71c53fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #5 0x0000000000000000 in ?? ()
(gdb) frame 1 #1 0x00000000004029a5 in barrier_wait (bar=0x6333e0) at barrier.c:107
I have a patch for the above said issue which involves creating a uniq name for the named-semaphore instead of a standard name. How do I submit the patch for review/commit ?
Thanks for this you can send me the paych direct.
On 16 Dec 2014 00:01, "qwkslvr" notifications@github.com wrote:
I have a patch for the above said issue which involves creating a uniq
name for the named-semaphore instead of a standard name. How do I submit
the patch for review/commit ?
—
Reply to this email directly or view it on GitHub #92 (comment).
Hi,
Sorry, I haven't submitted patches to github before. What's the recommended way? Do I send it to some email address? or just attach to this thread?
Create dynamic semaphore names based on gettimeofday() so that parallel builds don't fail. Saved the name of the semaphore created in struct barrier
Create a new function called barrier_destroy() which cleans up the semaphores created.
Call barrier_destroy() when the program exits.
I tried doing git push, but It doesn't allow me to do. I get a
"error: The requested URL returned error: 403 while accessing https://github.com/dtrace4linux/linux.git/info/refs
fatal: HTTP request failed"
And I can't attach the patches here.
What's the email address I send this to?
hello qwkslvr - apologies for not replying. I havent merged your
contribution yet into my tree. I was working on some nuisance reliability
issues in the 3.16 kernel, but havent finished. My last part was to
review/understand your changes (they look very reasonable given the
research you have done).
You didn't respond to my queries. So, pasting the patch here.
diff --git a/cmd/ctfconvert/barrier.c b/cmd/ctfconvert/barrier.c
index 94bb78d..6b8a423 100644
--- a/cmd/ctfconvert/barrier.c
+++ b/cmd/ctfconvert/barrier.c
@@ -53,6 +53,11 @@ barrier_init(barrier_t *bar, int nthreads)
bar->bar_nthr = nthreads;
}
Activity
qwkslvr commentedon Dec 16, 2014
I have a patch for the above said issue which involves creating a uniq name for the named-semaphore instead of a standard name. How do I submit the patch for review/commit ?
dtrace4linux commentedon Dec 16, 2014
Hi
Thanks for this you can send me the paych direct.
On 16 Dec 2014 00:01, "qwkslvr" notifications@github.com wrote:
qwkslvr commentedon Dec 16, 2014
Hi,
Sorry, I haven't submitted patches to github before. What's the recommended way? Do I send it to some email address? or just attach to this thread?
qwkslvr commentedon Jan 5, 2015
Trying again. Can anyone tell me how to submit patches?
dtrace4linux commentedon Jan 5, 2015
You can just do a diff -c on your tree vs the original and send it to me or
this mail thread, or do a "git push" from your tree.
tx
On 5 January 2015 at 19:08, qwkslvr notifications@github.com wrote:
qwkslvr commentedon Jan 5, 2015
Just to summarize the changes, What I have done
I tried doing git push, but It doesn't allow me to do. I get a
"error: The requested URL returned error: 403 while accessing https://github.com/dtrace4linux/linux.git/info/refs
fatal: HTTP request failed"
And I can't attach the patches here.
What's the email address I send this to?
qwkslvr commentedon Jan 6, 2015
Hope this works. I am trying to attach the patch to this email.
Let me know if you got it.
On Mon, Jan 5, 2015 at 1:31 PM, dtrace4linux notifications@github.com
wrote:
dtrace4linux commentedon Jan 15, 2015
hello qwkslvr - apologies for not replying. I havent merged your
contribution yet into my tree. I was working on some nuisance reliability
issues in the 3.16 kernel, but havent finished. My last part was to
review/understand your changes (they look very reasonable given the
research you have done).
just backlogged on non-dtrace stuff.
On 15 January 2015 at 21:45, qwkslvr notifications@github.com wrote:
qwkslvr commentedon Jan 28, 2015
Ok, thanks. Let me know if you run into issues with the patch or have any questions for me. Would be interested in getting the patch committed soon.
dtrace4linux commentedon Feb 21, 2015
gmail seems to have corrupted the diff output - can you send me the
relevant files you changed, and I will merge them in.
thanks
On 28 January 2015 at 22:22, qwkslvr notifications@github.com wrote:
qwkslvr commentedon Feb 23, 2015
I would love to, just tell me how. How do I attach the patch?
dtrace4linux commentedon Feb 23, 2015
you can mail me at crispeditor/at/gmail.com
thanks
On 23 February 2015 at 04:49, qwkslvr notifications@github.com wrote: