Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - initialization error: (6 Items)
   
initialization error  
Hello.

I get the following initialization error in my driver : 

Oct 07 10:28:40    2    14     0 Unable to init devnp-men-z087_nobugs_g.so: Operation not permitted

with the following segmentation error :

Thread [2] (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.)	
	12 _btext()  0xb8213d59	
	11 _fini()  0xb8216e5d	
	10 fini()  0xb033fd68	
	9 _dlclose()  0xb0342327	
	8 dlclose()  0xb03423c5	
	7 nw_dlclose()  0x080c95cc	
	6 nw_dlload_module()  0x080c9a3a	
	5 init_load()  0x080a2e49	
	4 load_drivers()  0x080a2f47	
	3 receive_loop_uni()  0x080d3cea	
	2 thread_init()  0x080c9d8b	
	1 <symbol is not available> 0xb031fa20	

Here is the stack of initialized DLLs :

dlopen("NULL",2048)
dlsym(0xb03788ac,output_for_percent_s_NULL)=0xb03789d0
dlopen("NULL",2048)
dlsym(0xb03788ac,iofunc_notify_trigger_strict)=0xb033a1a0
dlsym(0xb03788ac,iofunc_notify_remove_strict)=0xb033a0d0
dlopen("devnp-men-z087_nobugs_g.so",3072)
load_object: attempt load of devnp-men-z087_nobugs_g.so
load_elf32: found DT_TEXTREL, mapping a private copy of text sections!
load_elf32: loaded lib at addr b8200000(text) b820e558(data)
dlsym(0x8138000,_btext)=0x805ab50
Library loaded; type 'add-sym devnp-men-z087_nobugs_g.so 0x805ab50' in gdb to load symbols
load_object: attempt load of libmen-oss.so.1
load_elf32: loaded lib at addr b820f000(text) b8212d40(data)
load_object: attempt load of libmen-chameleon.so.1
load_elf32: loaded lib at addr b8213000(text) b8218190(data)
load_object: attempt load of libsmb2.so.1
load_elf32: loaded lib at addr b8219000(text) b821dbc8(data)
load_object: attempt load of libc.so.2
load_elf32: loaded lib at addr b821e000(text) b8223810(data)
dlsym(0x8138000,iopkt_lsm_entry)=NULL
dlsym(0x8138000,iopkt_drvr_entry)=0xb820e690

Can you please help ?

I had a look in io-pkt sources, but i was not able to find where this EPERM error comes from...

Thanks 
Guillaume.
Re: initialization error  
Check out the 'How do I debug a driver using gdb?' section
of this page:

http://community.qnx.com/sf/wiki/do/viewPage/projects.networking/wiki/Drivers_wiki_page

You should be able to step through and see exactly
where it's being raised.

-seanb

On Wed, Oct 07, 2009 at 04:29:59AM -0400, Guillaume Varlet wrote:
> Hello.
> 
> I get the following initialization error in my driver : 
> 
> Oct 07 10:28:40    2    14     0 Unable to init devnp-men-z087_nobugs_g.so: Operation not permitted
> 
> with the following segmentation error :
> 
> Thread [2] (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.)	
> 	12 _btext()  0xb8213d59	
> 	11 _fini()  0xb8216e5d	
> 	10 fini()  0xb033fd68	
> 	9 _dlclose()  0xb0342327	
> 	8 dlclose()  0xb03423c5	
> 	7 nw_dlclose()  0x080c95cc	
> 	6 nw_dlload_module()  0x080c9a3a	
> 	5 init_load()  0x080a2e49	
> 	4 load_drivers()  0x080a2f47	
> 	3 receive_loop_uni()  0x080d3cea	
> 	2 thread_init()  0x080c9d8b	
> 	1 <symbol is not available> 0xb031fa20	
> 
> Here is the stack of initialized DLLs :
> 
> dlopen("NULL",2048)
> dlsym(0xb03788ac,output_for_percent_s_NULL)=0xb03789d0
> dlopen("NULL",2048)
> dlsym(0xb03788ac,iofunc_notify_trigger_strict)=0xb033a1a0
> dlsym(0xb03788ac,iofunc_notify_remove_strict)=0xb033a0d0
> dlopen("devnp-men-z087_nobugs_g.so",3072)
> load_object: attempt load of devnp-men-z087_nobugs_g.so
> load_elf32: found DT_TEXTREL, mapping a private copy of text sections!
> load_elf32: loaded lib at addr b8200000(text) b820e558(data)
> dlsym(0x8138000,_btext)=0x805ab50
> Library loaded; type 'add-sym devnp-men-z087_nobugs_g.so 0x805ab50' in gdb to load symbols
> load_object: attempt load of libmen-oss.so.1
> load_elf32: loaded lib at addr b820f000(text) b8212d40(data)
> load_object: attempt load of libmen-chameleon.so.1
> load_elf32: loaded lib at addr b8213000(text) b8218190(data)
> load_object: attempt load of libsmb2.so.1
> load_elf32: loaded lib at addr b8219000(text) b821dbc8(data)
> load_object: attempt load of libc.so.2
> load_elf32: loaded lib at addr b821e000(text) b8223810(data)
> dlsym(0x8138000,iopkt_lsm_entry)=NULL
> dlsym(0x8138000,iopkt_drvr_entry)=0xb820e690
> 
> Can you please help ?
> 
> I had a look in io-pkt sources, but i was not able to find where this EPERM error comes from...
> 
> Thanks 
> Guillaume.
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post39478
> 
RE: initialization error  
Thanks Sean.

But the problem is that I have some errors building io-pkt :

F:/QNX/QNX641/host/win32/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -g -O -Wno-pointer-sign -Wp,-
include
qnx.h   -fno-builtin-log -fno-builtin-printf  -D_KERNEL -D_KERNEL_OPT -DLKM -DSIMPLE_MALLOC_BSD -DRANDOM_BSD -DMAXUSERS=
32 -
DKMEMSTATS -Wpointer-arith -Wmissing-prototypes -Werror -Wall -Wno-uninitialized   -I. -Ig:/Guillaume/QNX/io-pkt/trunk/
sys -
Ig:/Guillaume/QNX/io-pkt/trunk/sys/sys-nto -Ig:/Guillaume/QNX/io-pkt/trunk/sys/target/x86 -Ig:/Guillaume/QNX/io-pkt/
trunk/sy
s/../lib/socket/public -Ig:/Guillaume/QNX/io-pkt/trunk/sys/../lib/socket/inc -Ig:/Guillaume/QNX/io-pkt/trunk/sys/target 
-IF:
/QNX/QNX641/target/qnx6/usr/include -g       -DVARIANT_v4 -DBUILDENV_qss  g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c
cc1: warnings being treated as errors
g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c: In function 'ifa_ifwithaddr':
g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c:1178: error: implicit declaration of function 'satosin'
g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c:1178: error: invalid type argument of '->' (have 'int')
g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c:1178: error: 'INADDR_BROADCAST' undeclared (first use in this function)
g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c:1178: error: (Each undeclared identifier is reported only once
g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c:1178: error: for each function it appears in.)
cc: F:/QNX/QNX641/host/win32/x86/usr/lib/gcc/i386-pc-nto-qnx6.4.0/4.3.3/cc1 caught signal 1
make.exe[3]: *** [if.o] Error 1
make.exe[3]: Leaving directory `g:/Guillaume/QNX/io-pkt/trunk/sys/target/x86/o.v4'
make.exe[2]: *** [install] Error 2
make.exe[2]: Leaving directory `g:/Guillaume/QNX/io-pkt/trunk/sys/target/x86'
make.exe[1]: *** [install] Error 2
make.exe[1]: Leaving directory `g:/Guillaume/QNX/io-pkt/trunk/sys/target'
f:\WindRiver\workbench-2.4\x86-win32\bin\make.exe: *** [install] Error 2
"F:/QNX/QNX641/host/win32/x86/usr/bin/bash.exe"-2.04$

Best regards,
Guillaume Varlet

-----Message d'origine-----
De : Sean Boudreau [mailto:community-noreply@qnx.com] 
Envoyé : mercredi 7 octobre 2009 23:56
À : drivers-networking
Objet : Re: initialization error


Check out the 'How do I debug a driver using gdb?' section
of this page:

http://community.qnx.com/sf/wiki/do/viewPage/projects.networking/wiki/Drivers_wiki_page

You should be able to step through and see exactly
where it's being raised.

-seanb

On Wed, Oct 07, 2009 at 04:29:59AM -0400, Guillaume Varlet wrote:
> Hello.
> 
> I get the following initialization error in my driver : 
> 
> Oct 07 10:28:40    2    14     0 Unable to init devnp-men-z087_nobugs_g.so: Operation not permitted
> 
> with the following segmentation error :
> 
> Thread [2] (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.)	
> 	12 _btext()  0xb8213d59	
> 	11 _fini()  0xb8216e5d	
> 	10 fini()  0xb033fd68	
> 	9 _dlclose()  0xb0342327	
> 	8 dlclose()  0xb03423c5	
> 	7 nw_dlclose()  0x080c95cc	
> 	6 nw_dlload_module()  0x080c9a3a	
> 	5 init_load()  0x080a2e49	
> 	4 load_drivers()  0x080a2f47	
> 	3 receive_loop_uni()  0x080d3cea	
> 	2 thread_init()  0x080c9d8b	
> 	1 <symbol is not available> 0xb031fa20	
> 
> Here is the stack of initialized DLLs :
> 
> dlopen("NULL",2048)
> dlsym(0xb03788ac,output_for_percent_s_NULL)=0xb03789d0
> dlopen("NULL",2048)
> dlsym(0xb03788ac,iofunc_notify_trigger_strict)=0xb033a1a0
> dlsym(0xb03788ac,iofunc_notify_remove_strict)=0xb033a0d0
> dlopen("devnp-men-z087_nobugs_g.so",3072)
> load_object: attempt load of devnp-men-z087_nobugs_g.so
> load_elf32: found DT_TEXTREL, mapping a private copy of text sections!
> load_elf32: loaded lib at addr b8200000(text) b820e558(data)
> dlsym(0x8138000,_btext)=0x805ab50
> Library loaded; type 'add-sym...
View Full Message
RE: initialization error  
I found the error.
I was totaly my fault...

Thank you very much for your help.
Guillaume 


Re: RE: initialization error  
What was the fix.  I am getting the same error when I call cout
RE: RE: initialization error  
Actually, the value returned by xxx_entry() was equal to EPERM, due to a false returned value in the initialization 
functions.
It shall be equal to EOK to get initialization performed.

Guillaume Varlet


-----Message d'origine-----
De : Kevin Loll [mailto:community-noreply@qnx.com] 
Envoyé : mercredi 10 mars 2010 16:38
À : drivers-networking
Objet : Re: RE: initialization error

What was the fix.  I am getting the same error when I call cout



_______________________________________________

Networking Drivers
http://community.qnx.com/sf/go/post49170