Comments (1)
Thanks Apurba for these two fixes. The second fix is suboptimal, so have
put in the same fix i did for x86_64; the first one I could not reproduce
on my 12.04 VM, but I have put it in anyhow.
Thanks for pointing out the latter issue - I was wondering why it was core
dumping during the usdt test.
On 10 December 2012 05:43, Apurba [email protected] wrote:
building on 32 bit ubuntu 12.04 complains about unavailable values at
intr.c:694 and generates core dump at dt_module.c:992.I am not an expert, but the below patch works for me.
The code seems to declare gate_t as gate64 or gate32, but this block uses
gate64 fields which are not available on my 32 bit machine. If I patch
--- a/driver/intr.c
+++ b/driver/intr.c
@@ -694,10 +694,14 @@ dtrace_write_idt_entry2(int vec)info[0].vector = vec;
info[0].address = gate_offset(*val);
- // AN we do not have these for 32 bits +#ifndef __i386 info[0].cs =
gate_segment(*val); info[0].flags = val->dpl; if (val->type ==
GATE_INTERRUPT) info[0].flags |= 1 << 2; +#endif +It works.
I am also seeing coredumps from dt_module.c as dm_aslen seems to be 0, so
when it enters the for loop, the first run with 0 gives problems,
introducing a length check prevents this issue.--- a/libdtrace/dt_module.c
+++ b/libdtrace/dt_module.c
@@ -992,9 +992,12 @@ asmap[i]->st_size);_/
}
} else {
Elf32_Sym *_asmap = dmp->dm_asmap;
- for (i = 0; i < dmp->dm_aslen-1; i++) {
- // AN no values for dmp->dm_aslen
- if (dmp->dm_aslen > 0) {
- for (i = 0; i < dmp->dm_aslen-1; i++) { asmap[i]->st_size =
asmap[i+1]->st_value - asmap[i]->st_value;- }
- }
- }
I am running with the latest code and the last commit was commit 21b573221b5732
21b573221b5732—
Reply to this email directly or view it on GitHubhttps://github.com//issues/44.
from linux.
Related Issues (20)
- Fedora 18 VM freeze on executing dtrace HOT 2
- /home/aschipor/Desktop/linux-master/build-3.13.0-37-generic/driver/ctf_hash.c:1:1: error: expected identifier or '(' before '.' token ../common/ctf/ctf_hash.c ^ HOT 1
- Build errors on Linux 4.7 HOT 2
- Question: Why aren't there any release tarballs here? HOT 2
- build error on SUSE Linux Enterprise Server HOT 2
- Dtrace is not collecting any data for NodeJS HOT 8
- make all failing HOT 6
- ..
- no build support for RPM or ARCH based distro's -_-
- implicit declaration of function copy_from_user, redefinition of 'struct in6_addr' HOT 3
- make all fails on Ubuntu 17.10 - field 'pr_altstack' has incomplete type HOT 4
- KP on Ubuntu 14.04 with std 3.13.0-145-generic
- Make load crashes RHEL 6.9 kernel
- Ubuntu building problems
- When I install dtrace on CentOS7,I can't pass it.
- unable to load on ubuntu 16.04(amazon image)
- make all falling on centos HOT 1
- 🥰
- make all failing on Kernel v5.9 because `proc_create` kernel api is changed HOT 1
- Broken link: libusdt (@chrisa github blog)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linux.