1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] Segmentation Error at startup with database
7 <LINK REL=
"Index" HREF=
"index.html" >
8 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Segmentation%20Error%20at%20startup%20with%20database%0A%20%20load&In-Reply-To=40cd6acf.73526%40achurch.org">
9 <META NAME=
"robots" CONTENT=
"index,nofollow">
10 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
11 <LINK REL=
"Previous" HREF=
"004457.html">
12 <LINK REL=
"Next" HREF=
"004459.html">
14 <BODY BGCOLOR=
"#ffffff">
15 <H1>[IRCServices] Segmentation Error at startup with database
18 <A HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Segmentation%20Error%20at%20startup%20with%20database%0A%20%20load&In-Reply-To=40cd6acf.73526%40achurch.org"
19 TITLE=
"[IRCServices] Segmentation Error at startup with database
20 load">mamfelt at acm.org
22 <I>Mon Jun
14 08:
23:
45 PDT
2004</I>
24 <LI>Previous message:
<A HREF=
"004457.html">[IRCServices] Segmentation Error at startup with database load
26 <LI>Next message:
<A HREF=
"004459.html">[IRCServices] bug
28 <LI> <B>Messages sorted by:
</B>
29 <a href=
"date.html#4458">[ date ]
</a>
30 <a href=
"thread.html#4458">[ thread ]
</a>
31 <a href=
"subject.html#4458">[ subject ]
</a>
32 <a href=
"author.html#4458">[ author ]
</a>
37 <PRE>Thanks for your answer.
39 As it has been about
15 or
16 years since I have done any serious assembly
40 programming, and GNU is very new to me, I am a bit curious about why this
41 particular solution is chosen.
43 What I usedto do years ago was define a struct, similiar to the way device
44 drivers are/were added (maybe they do that differently today too) - in
45 which one of the fields would be a pointer to a function. As I think of it,
46 it is still pretty standard to include a pointer to a function to ioctl.
48 Would there be any interest in my looking a different way of doing this? Or
49 will you prefer to do some inline assembly (ala SPARC)?
51 If interested I can send your cc
"assembly
" output to see what the compiler
52 is turning it into. I havent made a real study of xlC and/or gcc assembly
53 conventions. But I am certainly willing.
55 It is certainly frustrating to see everything there, but just not being
58 At
11:
02 AM
6/
14/
2004, you wrote:
59 ><i> This looks like the GCC __builtin_apply() bug I reported to the GCC
60 </I>><i>team a while back (
<A HREF=
"http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8028">http://gcc.gnu.org/bugzilla/show_bug.cgi?id=
8028</A>). The
61 </I>><i>configure script should detect and work around this, though; I'm not sure
62 </I>><i>why not. I'll take a closer look at this report and see if I can figure
63 </I>><i>the problem out.
65 </I>><i> >I am wondering what the constant
64 means in:
66 </I>><i> >extsyms.c:
68 </I>><i> >static void *__dblocal_##func##_stub(void) { \
69 </I>><i> > __dblocal_##func##_stub0(); \
70 </I>><i> > __builtin_return(__builtin_apply((void *)__dblocal_##func, \
71 </I>><i> > __builtin_apply_args(),
64)); \
74 </I>><i> This is more suited to the -coding list, but
64 is the argument space
75 </I>><i>reserved for the called function--I use
64 as an arbitrary value larger
76 </I>><i>than anything that will actually be passed. See the GCC documentation for
77 </I>><i>details on how __builtin_apply() works.
79 Thanks again. Should I be posting to the -coding list - rather than here?
82 ><i> --Andrew Church
83 </I>><i> <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org
</A>
84 </I>><i> <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
86 </I>><i>------------------------------------------------------------------
87 </I>><i>To unsubscribe or change your subscription options, visit:
88 </I>><i><A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">http://www.ircservices.za.net/mailman/listinfo/ircservices
</A>
98 <LI>Previous message:
<A HREF=
"004457.html">[IRCServices] Segmentation Error at startup with database load
100 <LI>Next message:
<A HREF=
"004459.html">[IRCServices] bug
102 <LI> <B>Messages sorted by:
</B>
103 <a href=
"date.html#4458">[ date ]
</a>
104 <a href=
"thread.html#4458">[ thread ]
</a>
105 <a href=
"subject.html#4458">[ subject ]
</a>
106 <a href=
"author.html#4458">[ author ]
</a>