Re :Re: Run is not working (Help)
Brought to you by:
bagder
From: Shilpi C. <shi...@re...> - 2009-01-09 12:29:51
|
Hello Daniel,Please find the result of the gdb debugger below.[root@meramailsms mail2sms-1.3.5]# gdb sendmsg.c GNU gdb Red Hat Linux (6.3.0.0-1.132.EL4rh)Copyright 2004 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you arewelcome to change it and/or distribute copies of it under certain conditions.Type "show copying" to see the conditions.There is absolutely no warranty for GDB. Type "show warranty" for details.This GDB was configured as "x86_64-redhat-linux-gnu"..."/root/Installables/Mail2SMS/mail2sms-1.3.5/sendmsg.c": not in executable format: File format not recognized(gdb) startNo symbol table loaded. Use the "file" command.(gdb) fileNo executable file now.Using host libthread_db library "/lib64/tls/libthread_db.so.1".No symbol file now.(gdb) nThe program is not being run.(gdb) startNo symbol table loaded. Use the "file" command.(gdb) [root@meramailsms mail2sms-1.3.5]# vi config.h [root@meramailsms mail2sms-1.3.5]# [root@meramailsms mail2sms-1.3.5]# gdb mail2smsGNU gdb Red Hat Linux (6.3.0.0-1.132.EL4rh)Copyright 2004 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you arewelcome to change it and/or distribute copies of it under certain conditions.Type "show copying" to see the conditions.There is absolutely no warranty for GDB. Type "show warranty" for details.This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/tls/libthread_db.so.1".(gdb) startBreakpoint 1 at 0x402e10: file main.c, line 74.Starting program: /root/Installables/Mail2SMS/mail2sms-1.3.5/mail2sms main (argc=1, argv=0x7fbffff978) at main.c:7474 {(gdb) n83 char defaultconfig = TRUE; /* get the default config file(s) */(gdb) n74 {(gdb) n77 char *home = getenv("HOME");(gdb) n74 {(gdb) n80 int i=1;(gdb) n74 {(gdb) n77 char *home = getenv("HOME");(gdb) n91 AddConfigFile(CONFIG_DEFAULT, GLOBAL_CONFIG);(gdb) n77 char *home = getenv("HOME");(gdb) n91 AddConfigFile(CONFIG_DEFAULT, GLOBAL_CONFIG);(gdb) n82 char outstdout = FALSE;(gdb) n91 AddConfigFile(CONFIG_DEFAULT, GLOBAL_CONFIG);(gdb) n102 if (home && *home)(gdb) n94 *filename= '\0';(gdb) n102 if (home && *home)(gdb) n103 strncat(filename, home, 255);(gdb) n112 if (strlen(filename) < 245)(gdb) n113 strcat(filename, "/.mail2sms");(gdb) n118 AddConfigFile(CONFIG_DEFAULT, filename);(gdb) n120 for(; i<argc; i++) {(gdb) n195 configs = next;(gdb) n185 if(defaultconfig ||(gdb) n188 readconfig(configs->filename, MAX_INCLUDE_DEPTH);(gdb) n=== 2009-01-09 16:59:08 mail2sms 1.3.5 started ===CONFIG: RUN: $program CONFIG: PROGRAM: /usr/local/bin/smsurl.sh 192 free(configs->filename);(gdb) Not getting why it's calling "free(configs->filename);" after the run.Please suggest. I am not very much expert in c++ programing.Thanks,ShilpiOn Fri, 9 Jan 2009 11:25:48 +0100 (CET) Daniel Stenberg wrote On Fri, 9 Jan 2009, Shilpi Chakraborty wrote: > Hello,I have installed postfix, procmail and mail2sms in the same server. > Now the flow from postfix to procmail to mail2sms is working fine and I am > getting proper output.But now I want to send sms and thats why I want > to execute a shell script through "run" by passing the proper arguments to > the script.I have just added,run: "/usr/local/bin/smsurl.sh $phone > $message"phone: 919910102141But in the logfile I am not getting any error. > But still run is not doing it's job. How can I figure out what is the > problem. Run mail2sms manually from a command line and use a debugger to debug what's happening. -- / daniel.haxx.se ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Mail2sms-talk mailing list Mai...@li... https://lists.sourceforge.net/lists/listinfo/mail2sms-talk Shilpi Chakraborty Mobile No: 09910102141 |