[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trouble sending sms from perl
From: |
Pawel Kot |
Subject: |
Re: Trouble sending sms from perl |
Date: |
Mon, 11 Nov 2002 12:57:56 +0100 (CET) |
On Sun, 10 Nov 2002, Konstantinos Agouros wrote:
> I modified the code (cvs-checkout from 1 hour ago) of gn_sms_send in the
> following way:
>
> API gn_error gn_sms_send(GSM_Data *data, GSM_Statemachine *state)
> {
> gn_error error = GN_ERR_NONE;
> char *testmsg;
>
> if (!data->SMS) return GN_ERR_INTERNALERROR;
> dprintf("GSM-SMS 1 data %x %x\n",data, data->RawSMS);
> // data->RawSMS = malloc(sizeof(*data->RawSMS));
> dprintf("Size is %d\n", sizeof(GSM_SMSMessage));
So you got everything till this point. And then it segfaults. What about
testing malloc with lower value?
> testmsg = (char *)malloc(10356);
> dprintf("Test\n");
> fflush(stderr);
>
> When I call this from my perl module the Test-Printf is never reached. As it
> seems any call to malloc causes a core dump. I am not quite sure where to
> search for this. It might be perl it might be gnokii. If You guys have an idea
> ok otherwise I have to ask the perl-xs-mailinglist.
pkot
--
mailto:address@hidden :: mailto:address@hidden
http://kt.linuxnews.pl/ :: Kernel Traffic po polsku