stumped....

Gerald Carter gcarter at valinux.com
Mon Jul 17 14:26:56 GMT 2000


Has anyone every seen a call to malloc() result in a 
seg fault?  Very confused...


(gdb) bt
#0  chunk_alloc (ar_ptr=0x4015ed60, nb=5688) at malloc.c:2814
#1  0x400c95ce in __libc_malloc (bytes=5680) at malloc.c:2696
#2  0x80a15b5 in prs_init (ps=0xbfffe940, size=5680, align=4 '\004',
io=0) at rpc_parse/parse_prs.c:83
#3  0x8054fa2 in spoolss_closeprinter (hnd=0xbfffe990) at
rpc_client/cli_spoolss.c:474
#4  0x80506ed in cmd_spoolss_open_printer_ex (info=0x81139e0, argc=1,
argv=0x8146568) at rpcclient/cmd_spoolss.c:287
#5  0x804ae9b in do_command (info=0x81139e0, line=0xbfffeef4 "spoolopen
Apple") at lib/cmd_interp.c:359
#6  0x804b24c in process (info=0x81139e0, cmd_str=0x0) at
lib/cmd_interp.c:492
#7  0x804ca29 in command_main (argc=5, argv=0xbffff974) at
lib/cmd_interp.c:1348
#8  0x804aa35 in main (argc=5, argv=0xbffff974) at
rpcclient/rpcclient.c:42


The actual offending line is here......

#2  0x80a15b5 in prs_init (ps=0xbfffe940, size=5680, align=4 '\004',
io=0) at rpc_parse/parse_prs.c:83
83	if((ps->data_p = (char *)malloc((size_t)size)) == NULL) {







jerry
----------------------------------------------------------------------
   /\  Gerald (Jerry) Carter                     Professional Services
 \/    http://www.valinux.com  VA Linux Systems    gcarter at valinux.com
       http://www.samba.org       SAMBA Team           jerry at samba.org
       http://www.eng.auburn.edu/~cartegw

       "...a hundred billion castaways looking for a home."
                                - Sting "Message in a Bottle" ( 1979 )


More information about the samba-technical mailing list